From: tagg_maiwald at yahoo dot com Operating system: Win 98 PHP version: 4.3.2 PHP Bug Type: Strings related Bug description: Fatal error: Call to undefined function: stripos()
Description: ------------ When a string-returning-function or empty string variable is provided as the haystack, PHP reports "Fatal error: Call to undefined function: stripos()". Reproduce code: --------------- if ((1>strlen(mysql_error()))&&(stripos(mysql_error(), "duplicate"))) { echo "is a duplicate record error"; } Expected result: ---------------- The (stripos(mysql_error(), "duplicate"))) sub-boolean should evaluate to FALSE or some integer. Actual result: -------------- Fatal error: Call to undefined function: stripos() -- Edit bug report at http://bugs.php.net/?id=24747&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24747&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24747&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24747&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24747&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24747&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24747&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24747&r=support Expected behavior: http://bugs.php.net/fix.php?id=24747&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24747&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24747&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24747&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24747&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24747&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24747&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24747&r=gnused