#37165 [NEW]: '\n' not same as ord(10)

From: Date: Sat, 22 Apr 2006 13:16:48 +0000
Subject: #37165 [NEW]: '\n' not same as ord(10)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96094@lists.php.net to get a copy of this message
From: plperez at stanford dot edu Operating system: MAC OS X PHP version: 4CVS-2006-04-22 (snap) PHP Bug Type: Scripting Engine problem Bug description: '\n' not same as ord(10) Description: ------------ '\n' not same as ord(10) Reproduce code: --------------- if ('\n' != ord(10)) echo "oups"; else echo "ok"; Expected result: ---------------- ok Actual result: -------------- oups -- Edit bug report at http://bugs.php.net/?id=37165&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37165&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37165&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37165&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37165&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37165&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37165&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37165&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37165&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37165&r=support Expected behavior: http://bugs.php.net/fix.php?id=37165&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37165&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37165&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37165&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37165&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37165&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37165&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37165&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37165&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37165&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37165&r=mysqlcfg

« previous php.bugs (#96094) next »