|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-05-25 18:31 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
The following doesn't work: $i = 0; while($i < 50) { print $i."\n"; $i = $i++; } $i remains stuck on zero. The identical construct in C: int i; i = 0; while(i < 50) { printf("%d\n",i); i = i++; } has the expected behavior (it prints 0 to 49). I know that this is a very obscure case, but I still think it's a bug. My config line: ./configure --with-apache=../apache_1.3.3 --with-gd=/usr/local --with-mysql=/usr/local/mysql --with-ldap=/usr/local --enable-debug=no --enable-track-vars=yes