Last modified: 2011-03-04 14:00:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 27781 - Installer does not warn when webserver has PHP 5.1.x only
Installer does not warn when webserver has PHP 5.1.x only
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: 26676
  Show dependency treegraph
Reported: 2011-02-28 11:42 UTC by Raimond Spekking
Modified: 2011-03-04 14:00 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Raimond Spekking 2011-02-28 11:42:53 UTC
Installer does not warn when webserver has PHP 5.1.x only.

I run into this trap after a successfully installation of 1.17 (trunk) on a webserver with PHP 5.1.x only.

Fatal error: Call to undefined function array_fill_keys() in /var/www/html/kunden/ztd/w/includes/resourceloader/ResourceLoader.php on line 516

array_fill_keys() was introduced in PHP 5.2.0
Comment 1 Sam Reed (reedy) 2011-02-28 14:29:59 UTC says we support 5.1 or later (5.2 preferred). Looks like it needs to be 5.2 or later, or fix that method call
Comment 2 Raimond Spekking 2011-03-01 14:25:15 UTC
It seems easily to add an wrapper for this function, see the note in if we want to support PHP 5.1.x.
Comment 3 Chad H. 2011-03-01 14:34:02 UTC
I think we should support 5.1.x for the last time in 1.17, providing a back-compat version (or fixing the array_fill_keys functions to do something else).

For 1.18/trunk, I think we should bump the requirement to 5.2.x (5.3.x preferred, of course).
Comment 4 Chad H. 2011-03-04 14:00:02 UTC
Done in r83216, r83217.

Note You need to log in before you can comment on or make changes to this bug.