From: phpbug at zavrazden dot borec dot cz Operating system: Apache 2.0.54-4 PHP version: 4.3.10 PHP Bug Type: Strings related Bug description: strpos returning incorrectly on some long strings
Description: ------------ strpos returned some integer, but haystack didnt contain needle, integer was in mostly higher than strlen of haystack Reproduce code: --------------- please, look at this URL, because of big string used as haystack I couldnt use textarea in bugreport form http://kldr.xhosting.cz/cat_hi.php?path=./strpos failed.php Expected result: ---------------- false Actual result: -------------- 5225 -- Edit bug report at http://bugs.php.net/?id=33470&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33470&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33470&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33470&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33470&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33470&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33470&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33470&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33470&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33470&r=support Expected behavior: http://bugs.php.net/fix.php?id=33470&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33470&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33470&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33470&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33470&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33470&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33470&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33470&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33470&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33470&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33470&r=mysqlcfg