#30394 [NoF->Ver]: Assignment operators yield wrong result with __get/__set
| From: | tony2001@php.net | Date: | Wed, 23 Mar 2005 21:51:35 +0000 |
| Subject: | #30394 [NoF->Ver]: Assignment operators yield wrong result with __get/__set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75771@lists.php.net to get a copy of this message | ||
ID: 30394
Updated by: tony2001@php.net
Reported By: php at hartwerk dot com
-Status: No Feedback
+Status: Verified
Bug Type: Zend Engine 2 problem
Operating System: Linux
-PHP Version: 5.0.2
+PHP Version: 5.0.4RC2
New Comment:
With clean 5.0.x-CVS I get:
2
Fatal error: Unsupported operand types in index.php on line 23
with the code below.
HEAD works just fine.
Previous Comments:
------------------------------------------------------------------------
[2005-02-17 01:00:34] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-02-09 02:00:50] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-11-04 16:10:03] tony2001@php.net
It's 5.0.x specific bug.
------------------------------------------------------------------------
[2004-11-04 16:06:31] thekid@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Works fine with 5.1-CVS, outputting "2 - 3"
------------------------------------------------------------------------
[2004-10-15 18:46:51] php at hartwerk dot com
An easier work-around would be $c->a = $c->a + max( 0, 1 ), but
work-arounds do not solve bugs..
------------------------------------------------------------------------
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/30394
--
Edit this bug report at http://bugs.php.net/?id=30394&edit=1