Page MenuHomePhabricator

22664 on Mediawiki 1.6.10 throws T_BOOLEAN_AND error
Closed, DeclinedPublic

Description

Author: multiverse.org

Description:
I obtain the latest ConfirmEdit like so:

svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ConfirmEdit/
A ConfirmEdit/MathCaptcha.php
A ConfirmEdit/ConfirmEdit.i18n.php
A ConfirmEdit/FancyCaptcha.i18n.php
A ConfirmEdit/ConfirmEdit.php
A ConfirmEdit/FancyCaptcha.php
A ConfirmEdit/captcha.py
A ConfirmEdit/MathCaptcha
Checked out revision 22664.

I make no customizations.

I make the appropriate change in LocalSettings.php:

require_once( "{$IP}/extensions/ConfirmEdit/ConfirmEdit.php" );

I point Firefox 2.0.0.4 to the wiki's main page and get the following error message:

Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting '(' in /home/.petula/multiverse/public_html/wiki/extensions/ConfirmEdit/ConfirmEdit.php on line 320

With my limited knowledge of PHP, I toyed around with parens to no avail. I conducted extensive research to try to resolve this myself. It seems MediaWiki has changed something underneath this extension. I have not tried to see if this extension works on earlier versions of MediaWiki.


Version: unspecified
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz10114

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:48 PM
bzimport set Reference to bz10114.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Current versions of extensions may not be compatible with older versions of MediaWiki. Please do not reopen unless you can confirm it doesn't work on trunk (which it obviously does since it's running on Wikipedia).