ID: 34481 Updated by: [EMAIL PROTECTED] Reported By: BastianBalthazarBux at pnpitalia dot it Status: Bogus Bug Type: Feature/Change Request Operating System: linux PHP Version: 5.0.5 New Comment:
#34480 (the bugreport before yours) Previous Comments: ------------------------------------------------------------------------ [2005-09-12 16:38:42] BastianBalthazarBux at pnpitalia dot it Still not found the correct bug could someone point to that ? Thanks again. ------------------------------------------------------------------------ [2005-09-12 16:19:05] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. . ------------------------------------------------------------------------ [2005-09-12 16:13:56] BastianBalthazarBux at pnpitalia dot it 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34481&edit=1