Last modified: 2010-01-25 05:02:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24122, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22122 - MediaWiki 1.16alpha Updater doesn't check right php version
MediaWiki 1.16alpha Updater doesn't check right php version
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.16.x
Other All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
: newphp
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-17 00:03 UTC by Bertrand GRONDIN
Modified: 2010-01-25 05:02 UTC (History)
6 users (show)

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


Attachments

Description Bertrand GRONDIN 2010-01-17 00:03:02 UTC
When I was trying to update  my wiki by commande-line :

php maintenance/update.php

I read the following message : 

MediaWiki 1.16alpha Updater

PHP 5.3.1 is not compatible with MediaWiki due to a bug involving
reference parameters to __call. Upgrade to PHP 5.3.2, or downgrade
to PHP 5.3.0 to fix this.
ABORTING (see http://bugs.php.net/bug.php?id=50394 for details)

BUT my PC doesn't use this php version : 
PHP 5.2.12-2 with Suhosin-Patch 0.9.7 (cli) (built: Jan 11 2010 17:30:06) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH


Mediawiki release version : r61149
Comment 1 Niklas Laxström 2010-01-17 00:13:34 UTC
Since r61072 it checks for the actual bug, not version. The error message might be a confusing for those other affected versions.
Comment 2 Sam Reed (reedy) 2010-01-17 00:14:19 UTC
r61072 is from presumably where it's failing.

That would mean your 5.2.12 is also bugged, as it's not done by version.
Comment 3 Sam Reed (reedy) 2010-01-17 00:18:37 UTC
http://www.mediawiki.org/wiki/Manual:Installation_requirements

For the latest version of MediaWiki, PHP version 5.0 or later is required (recommended at least 5.1, PHP versions 5.2.11, 5.2.12 and 5.3.1 are affected by PHP bug 50394 and are discouraged).
Comment 4 Chad H. 2010-01-17 00:19:42 UTC
At least we output the correct version in r61155
Comment 5 Platonides 2010-01-17 13:12:04 UTC
I don't know if it makes much sense to block updating, since 1.15 is equally incompatible. It simply doesn't have the check as the bug was introduced into php after releasing MediaWiki 1.15 release.
Comment 6 Max Semenik 2010-01-17 13:14:59 UTC
But at least it could be helpful if updater warned about possible problems.
Comment 7 Platonides 2010-01-17 13:29:18 UTC
I completely agree. It should warn you.
Comment 8 Tim Starling 2010-01-25 04:50:12 UTC
Since there is not actually any reported bug in PHP 5.2.11 or PHP 5.2.12, I am reverting r61204, and the various documentation changes that people have been making on the wiki that implies PHP 5.2.11 doesn't work.
Comment 9 Tim Starling 2010-01-25 05:02:33 UTC
Fixed in r61480. The bug check is now specific to PHP 5.3.x and will not give confusing error messages for PHP 5.2.x.

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


Navigation
Links