Page MenuHomePhabricator

[Regression] PHP version check broken in load.php and api.php
Closed, ResolvedPublic

Description

According to https://3v4l.org/giQf8, PHP versions older than 5.3.0 will throw a syntax error instead of showing the normal error message.

Caused by rMW636cc420c61b: resourceloader: Make ResourceLoader logger aware.

Event Timeline

Legoktm raised the priority of this task from to Needs Triage.
Legoktm updated the task description. (Show Details)
Legoktm added subscribers: Legoktm, Krinkle.

I think we should remove the PHP<5.3 detection from entry points other than index.php. When the wiki is broken to the extend that the php runtime isn't supported, index.php will render a basic error page. The other entry points don't need to support this I think.

Krinkle moved this task from Inbox to Confirmed Problem on the MediaWiki-ResourceLoader board.
Krinkle renamed this task from [Regression] load.php no longer parses on old PHP versions to [Regression] PHP version check broken in load.php and api.php.Nov 12 2015, 10:35 PM

Change 252856 had a related patch set uploaded (by Krinkle):
Remove PHP detection from entry points other than index.php

https://gerrit.wikimedia.org/r/252856

Change 252856 merged by jenkins-bot:
Remove PHP detection from entry points other than index.php

https://gerrit.wikimedia.org/r/252856

Krinkle claimed this task.
Krinkle moved this task from Confirmed Problem to Assigned on the MediaWiki-ResourceLoader board.