#23395 [Ver->Ctl]: for loop = infinite loop in RC2
ID: 23395
Updated by: edink@php.net
Reported By: sprice at wisc dot edu
-Status: Verified
+Status: Critical
Bug Type: Scripting Engine problem
Operating System: Mac OS X.2.5
PHP Version: 4.3.2RC2
Previous Comments:
------------------------------------------------------------------------
[2003-04-29 09:49:24] edink@php.net
*= operator seems to be broken on windows as well where the example
prints 0.
The following commit seems to be the cause.
http://cvs.php.net/diff.php/Zend/zend_operators.c?r1=1.129.2.1&r2=1.129.2.2&ty=u
------------------------------------------------------------------------
[2003-04-29 09:33:35] edink@php.net
I can confirm that:
sapi/cli/php -r '$i=1; $i *= 10; print $i;'
prints
-2123890688
on Mac OS X 10.2.5.
GNU Bison version 1.28
flex version 2.5.4
GCC 3.1 (Apple)
------------------------------------------------------------------------
[2003-04-29 09:16:18] sprice at wisc dot edu
$i = $i * 10; works just fine. Then when I go back to
$i *= 10; it breaks again.
------------------------------------------------------------------------
[2003-04-29 08:48:33] sprice at wisc dot edu
I tried this on another OS X.2.5 Server machine that I
administer with the same result. Both installations
were compiled, etc. independently. The first was 10.2.5
client tho.
------------------------------------------------------------------------
[2003-04-29 01:23:31] derick@php.net
I can not reproduce this at all.
------------------------------------------------------------------------
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/23395
--
Edit this bug report at http://bugs.php.net/?id=23395&edit=1
Thread (10 messages)