#23395 [Ctl->Csd]: for loop = infinite loop in RC2

From: Date: Tue, 29 Apr 2003 15:16:25 +0000
Subject: #23395 [Ctl->Csd]: for loop = infinite loop in RC2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38729@lists.php.net to get a copy of this message
ID: 23395 Updated by: wez@php.net Reported By: sprice at wisc dot edu -Status: Critical +Status: Closed Bug Type: Scripting Engine problem Operating System: Mac OS X.2.5 PHP Version: 4.3.2RC2 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. 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

« previous php.bugs (#38729) next »