#34937 [Opn->Csd]: Fatal error when passing object's return-value as parameter by reference
ID: 34937
Updated by: iliaa@php.net
Reported By: fredrik at demomusic dot nu
-Status: Open
+Status: Closed
Bug Type: *Programming Data Structures
Operating System: Linux & WinXP
PHP Version: 5.0.5
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
PHP 5.1 with the fix should be available within a month.
Previous Comments:
------------------------------------------------------------------------
[2005-10-21 17:14:38] fredrik at demomusic dot nu
True, now it works.
I wrote "[21 Oct 1:17pm CEST] fredrik at demomusic dot nu
Problem exists in 5.0.6-dev, Build time Oct 21 2005 10:16:08"
But at the time I did not know that I had to first start (after
switching php-folder) _and then restart_ Apache before the page would
be updated when pressing f5. I found this out just now when tried the
latest snapshot with the reproduce code, which also displays
phpinfo().
Could you provide any information of what parts of the source to make a
patch from? Where lay this bug? How far from 5.0.6 release do you
suspect? In case it is not far I will simply wait till then.
------------------------------------------------------------------------
[2005-10-21 16:37:42] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Works fine for me with latest CVS.
------------------------------------------------------------------------
[2005-10-21 16:24:32] fredrik at demomusic dot nu
Reproduce script:
http://dev.prylbanken.se/phpbug/php505bug34937.php
Source code:
http://dev.prylbanken.se/phpbug/php505bug34937.phps
Output with php 5.0.4:
http://dev.prylbanken.se/phpbug/php505bug34937.php_with_php504.htm
------------------------------------------------------------------------
[2005-10-21 14:20:12] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-10-21 13:17:32] fredrik at demomusic dot nu
Problem exists in 5.0.6-dev, Build time Oct 21 2005 10:16:08
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/34937
--
Edit this bug report at http://bugs.php.net/?id=34937&edit=1
Thread (9 messages)