From:             karl at karlaustin dot com
Operating system: RH7.3
PHP version:      5CVS-2003-07-03 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Problem returning new class by ref from function

Description:
------------
Fatal error: Only variables or references can be returned by reference in
/usr/local/php5/lib/php/DB/common.php on line 737

If seems that doing:

return new DB_result($this, $result);

in a function results in the above error, but:

$_tmp = new DB_result($this, $result);
return $_tmp;

Is fine.


-- 
Edit bug report at http://bugs.php.net/?id=24477&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24477&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24477&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24477&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24477&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24477&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24477&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24477&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24477&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24477&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24477&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24477&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24477&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24477&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24477&r=gnused

Reply via email to