From: BastianBalthazarBux at pnpitalia dot it
Operating system: linux
PHP version: 5.0.5
PHP Bug Type: Feature/Change Request
Bug description: "Only variables can be passed by reference" new error
condition
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 bug report at http://bugs.php.net/?id=34481&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34481&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34481&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34481&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34481&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34481&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34481&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34481&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34481&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34481&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34481&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34481&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34481&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34481&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34481&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34481&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34481&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34481&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34481&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34481&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34481&r=mysqlcfg