From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.2.3 PHP Bug Type: Unknown/Other Function Bug description: switch case failure
when performing a switch case on large strings, the function seems to fail. for example: $str="000001011110011110000001000001011110011110000001"; switch($str) { case "000001011110011110000001000001000111000111011001": echo "checking: $str - case: 000001011110011110000001000001000111000111011001"; break; case "000001011110011110000001000001011110011110000001": echo "checking: $str - case: 000001011110011110000001000001011110011110000001"; break; } This will show the error. -- Edit bug report at http://bugs.php.net/?id=19834&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19834&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19834&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19834&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19834&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19834&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19834&r=support Expected behavior: http://bugs.php.net/fix.php?id=19834&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19834&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19834&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19834&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19834&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19834&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19834&r=isapi