Page MenuHomePhabricator

Fatal error: Only variables can be passed by reference in includes/Parser.php on line 1340
Closed, ResolvedPublic

Description

Author: rele

Description:
On PHP 5.1 a fatal error occurs when I call importDump.php on the pages.xml.

$next_line = array_shift(array_splice( $a, $k + 1, 1) );

Because array_shift() requires a reference as parameter, no value.

So

$arrTemp = array_splice( $a, $k + 1, 1);
$next_line = array_shift( $arrTemp);

does work.

Keep up the good work,
René


Version: 1.5.x
Severity: normal
URL: http://test.leuksman.com/index.php?title=3489&action=edit

Details

Reference
bz3489