#29533 [Opn->Bgs]: for($x=-11;$x++;$x<=10)
| From: | derick@php.net | Date: | Thu, 05 Aug 2004 10:53:35 +0000 |
| Subject: | #29533 [Opn->Bgs]: for($x=-11;$x++;$x<=10) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64127@lists.php.net to get a copy of this message | ||
ID: 29533
Updated by: derick@php.net
Reported By: indrek at tavid dot ee
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: windows 2000
PHP Version: 4.3.9
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
See http://php.net/for
Previous Comments:
------------------------------------------------------------------------
[2004-08-05 12:50:27] indrek at tavid dot ee
and it's same withh php5
------------------------------------------------------------------------
[2004-08-05 12:48:53] indrek at tavid dot ee
Description:
------------
for breaks when $x after variable value=0
Reproduce code:
---------------
<?php
for($x=-11;$x++;$x<=10){
echo $x.'<br>';
}
?>
Expected result:
----------------
...
-5
-4
-3
-2
-1
0
1
2
3
4
...
Actual result:
--------------
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29533&edit=1