From:             sorrentino at ingv dot it
Operating system: Linux Slackware
PHP version:      4.4.2
PHP Bug Type:     Scripting Engine problem
Bug description:  'For' cycle bad work

Description:
------------
cyclyng (with for and while) from 'A' to 'Z' the cycle doesn't stop to 'Z'
but continue, passing from 'AA', 'till 'YZ'

ps.
the bug was submitted here too
<http://bugs.php.net/bug.php?id=15597> 
on date: 18 Feb 2002
php version: 4.1.1
and is still present in php4.4.2 and in php5.2-200606091630

Reproduce code:
---------------
<?
for($i='A'; $i<='Z'; $i++)
        echo $i . ", ";
?>

Expected result:
----------------
A, B, C, ..., Z

Actual result:
--------------
A, B, C, ..., Z, AA, AB, AC, ..., YW, YX, YY, YZ

i can't post a backtrace because the program exit normally, without a
crash :-(

-- 
Edit bug report at http://bugs.php.net/?id=37770&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37770&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37770&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37770&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37770&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37770&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37770&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37770&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37770&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37770&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37770&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37770&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37770&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37770&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37770&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37770&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37770&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37770&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37770&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37770&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37770&r=mysqlcfg

Reply via email to