Page MenuHomePhabricator

PHP 4.4.0 generates warning for reference variables
Closed, ResolvedPublic

Description

Author: mediazilla

Description:
As mentioned in bug 2885, 1.4.7. running on PHP 4.4.0 generates several
non-fatal notices:

Notice: Only variable references should be returned by reference in
C:\MediaWiki\includes\ObjectCache.php on line 369
Notice: Only variables should be assigned by reference in
C:\MediaWiki\includes\Parser.php on line 1225
Notice: Only variables should be assigned by reference in
C:\MediaWiki\includes\Parser.php on line 1045
Notice: Only variables should be assigned by reference in
C:\MediaWiki\includes\Parser.php on line 1140
Notice: Only variables should be assigned by reference in
C:\MediaWiki\includes\Parser.php on line 2540
Notice: Only variables should be assigned by reference in
C:\MediaWiki\includes\Parser.php on line 796
Notice: Only variable references should be returned by reference in
C:\MediaWiki\includes\SkinTemplate.php on line 136


Version: 1.4.x
Severity: minor

Details

Reference
bz2931

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 8:42 PM
bzimport set Reference to bz2931.

river wrote:

workaround: ini_set("display_errors", 0);

brion added a comment.Jul 22 2005, 9:20 AM

Lowering priority. The notices are harmless, not shown by default, and don't occur on the current PHP
stable release (5.0.4).

Marking dependent on bug 2885; or perhaps this should be marked duplicate.

PHP 4.4.0 in fact complains in some places that PHP 5.1.0beta3 does not. Sigh...

Marking tentatively fixed in CVS HEAD.

I haven't exhaustively tested every feature, but so far so good.