ID: 2965 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Documentation problem Operating System: Redhat Linux 6.0 PHP Version: 4 Assigned To: hholzgra New Comment:
even if this is the intended behaviour there is one problem left: the loop stops at YZ and therefore you should assume that 'YZ' == 'Z' but echo ('YZ' == 'Z'?1:0); returns 0 Previous Comments: ------------------------------------------------------------------------ [2002-11-30 10:22:44] [EMAIL PROTECTED] 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. PHP follows Perl convention when performing arithmetic operations on character values. Explanation added in PHP-DOCs ------------------------------------------------------------------------ [2002-09-30 19:48:47] [EMAIL PROTECTED] changed to documentation problem and reopened until verified ------------------------------------------------------------------------ [2002-09-30 16:49:59] [EMAIL PROTECTED] it may look strange but it is intended behaviour ------------------------------------------------------------------------ [1999-12-13 10:09:12] [EMAIL PROTECTED] for($i = 'A'; $i <= 'Z' ; $i++) echo "$i<br>\n"; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2965&edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php