From: plukyanchuk at rbc dot ru Operating system: Linux PHP version: 5.2.9 PHP Bug Type: Unknown/Other Function Bug description: Linux host.localhost 2.6.18-92.1.13.el5PAE #1 SMP Wed Sep 24 20:07:49 EDT 2008
Description: ------------ strange work with compare long string Reproduce code: --------------- $s='9223372036854775810'; $w='9223372036854775809'; var_dump($w==$s); var_dump($w===$s); $s='000001'; $w='000002'; var_dump($s==$w); var_dump($s===$w); Expected result: ---------------- bool(false) bool(false) bool(false) bool(false) Actual result: -------------- bool(true) bool(false) bool(false) bool(false) -- Edit bug report at http://bugs.php.net/?id=47705&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47705&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47705&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47705&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47705&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47705&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47705&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47705&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47705&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47705&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47705&r=support Expected behavior: http://bugs.php.net/fix.php?id=47705&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47705&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47705&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47705&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47705&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47705&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47705&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47705&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47705&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47705&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47705&r=mysqlcfg