ID: 24747 User updated by: tagg_maiwald at yahoo dot com Reported By: tagg_maiwald at yahoo dot com Status: Bogus Bug Type: Strings related Operating System: Win 98 PHP Version: 4.3.2 New Comment:
The stripos() function, documented as cvs 5.0, works just fine in 4.3.1 and 4.3.2 when the provided haystack is not an empty string. Previous Comments: ------------------------------------------------------------------------ [2003-07-21 21:34:21] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php stripos is only available in php5. ------------------------------------------------------------------------ [2003-07-21 21:26:55] tagg_maiwald at yahoo dot com 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 this bug report at http://bugs.php.net/?id=24747&edit=1