|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-09-12 16:19 UTC] derick@php.net
  [2005-09-12 16:38 UTC] BastianBalthazarBux at pnpitalia dot it
  [2005-09-12 21:28 UTC] derick@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 21:00:02 2025 UTC | 
Description: ------------ This particular condition of error has been introduced in php-5.0.5, and is *not* present in 5.0.4 the following error broke some apps, notably "horde". Fatal error: Only variables can be passed by reference in pippo.php on line 10 php.ini:allow_call_time_pass_reference = On See reproduce code, until 5.0.4 it was possible to pass the result of a function. It's possible to delay this change of behaviour until 5.1 release ? If not could you point me to a patch that revert this behaviour ? Many thanks Reproduce code: --------------- <?php $var="pippo"; function printme(&$var) { echo "{$var}\n"; } printme(serialize($var)); ?> Expected result: ---------------- s:5:"pippo"; Actual result: -------------- Fatal error: Only variables can be passed by reference in pippo.php on line 10