ID:               31557
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tim at tenkan dot org
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: debian linux
 PHP Version:      4.3.10
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See #20548.


Previous Comments:
------------------------------------------------------------------------

[2005-01-14 19:31:57] tim at tenkan dot org

Description:
------------
if you use -- on a variable inside a loop in global scope, it doesn't
initialize the variable.  ++ does.


Reproduce code:
---------------
<?php
while ($aglobal < 10) {
        $aglobal++;
        $j--;
        $another = $j;
}

print "aglobal $aglobal, j $j, another $another\n";
?>


Expected result:
----------------
aglobal 10, j -10, another -10


Actual result:
--------------
aglobal 10, j , another 



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31557&edit=1

Reply via email to