|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-21 21:34 UTC] iliaa@php.net
[2003-07-22 08:06 UTC] tagg_maiwald at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 08:00:01 2025 UTC |
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()