From: scratch65535 at att dot net Operating system: v2ksp4 PHP version: 5.2.5 PHP Bug Type: Scripting Engine problem Bug description: Boolean FALSE not handled correctly
Description: ------------ The constant isn't translated when alone. It's translated only when part of an arithmetic expression, or when passed to intval(). This bug appears on two different boxes, both running w2ksp4. One box is running 4.4.7 (the bug has persisted across upgrades since 4.2), the other 5.2.5. Reproduce code: --------------- <?php echo false ; echo (false) ; echo false+false ; echo intval(false) ; echo '"'.false.'"' ; ?> Expected result: ---------------- 0000"0" Actual result: -------------- 00"" -- Edit bug report at http://bugs.php.net/?id=43762&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43762&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43762&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43762&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43762&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43762&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43762&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43762&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43762&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43762&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43762&r=support Expected behavior: http://bugs.php.net/fix.php?id=43762&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43762&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43762&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43762&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43762&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43762&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43762&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43762&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43762&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43762&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43762&r=mysqlcfg