From: languitar at languitarium dot de Operating system: Linux PHP version: 5.0.0b2 (beta2) PHP Bug Type: Unknown/Other Function Bug description: Problems with negative Integers in If-Clauses
Description: ------------ PHP 5 beta 2 seems to do strange things when using a comaprisson wiht negative values in an If-clause. Sometimes the if-part will work as well as the else-part and sometimes the if-part will be used two times. Reproduce code: --------------- $x = -1; if($x == -1){ echo "if"; } else { echo "else"; } Expected result: ---------------- if Actual result: -------------- ifif -- Edit bug report at http://bugs.php.net/?id=26477&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26477&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26477&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26477&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26477&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26477&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26477&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26477&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26477&r=support Expected behavior: http://bugs.php.net/fix.php?id=26477&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26477&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26477&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26477&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26477&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26477&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26477&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26477&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26477&r=float