Last modified: 2014-03-11 11:40:39 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 T64486, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62486 - __DIR__ incompatible with PHP 5.2.17
__DIR__ incompatible with PHP 5.2.17
Status: RESOLVED DUPLICATE of bug 62101
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
REL1_19-branch
All All
: Unprioritized critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-10 15:25 UTC by Maxim Neaga
Modified: 2014-03-11 11:40 UTC (History)
2 users (show)

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


Attachments

Description Maxim Neaga 2014-03-10 15:25:56 UTC
The Compatibility ( http://www.mediawiki.org/wiki/Compatibility ) page states that MediaWiki 1.19.x branch is compatible with PHP 5.2.3+

The core extensions ConfirmEdit, Gadgets and Renameuser use the __DIR__ magic constant that is available in PHP 5.3.0+ only.

Had to use the following command as a temporary fix:

    find . -type f -exec sed -i 's/__DIR__/dirname(__FILE__)/g' {} \;
Comment 1 Andre Klapper 2014-03-10 15:46:03 UTC
I am afraid this needs three separate bug reports against each extension (under the "MediaWiki extensions" product) - in the bottom corner there is a "Clone" button that could save some time.

I assume you checked this against the REL1_19 branches of these three extensions?
Comment 2 Maxim Neaga 2014-03-10 15:51:30 UTC
I downloaded the archive from the Download page:
http://www.mediawiki.org/wiki/Download

Those extensions are included in the core package by default, so I suppose that whoever compiles that archive will need to either downgrade the modules to the versions compatible with 5.2.3+ or the Compatibility page will need to be updated to state the version correctly.
Comment 3 Andre Klapper 2014-03-10 22:46:21 UTC
Split into https://bugzilla.wikimedia.org/buglist.cgi?bug_id=62502,62503,62504 - to follow up there
Comment 4 Liangent 2014-03-11 11:40:39 UTC

*** This bug has been marked as a duplicate of bug 62101 ***

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


Navigation
Links