Page MenuHomePhabricator

__DIR__ incompatible with PHP 5.2.17
Closed, ResolvedPublic

Description

Author: maxneaga

Description:
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' {} \;

Version: REL1_19-branch
Severity: critical

Details

Reference
bz62486

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:57 AM
bzimport set Reference to bz62486.
bzimport added a subscriber: Unknown Object (MLST).

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?

maxneaga wrote:

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.

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