#24747 [Opn->Bgs]: Fatal error: Call to undefined function: stripos()
ID: 24747
Updated by: iliaa@php.net
Reported By: tagg_maiwald at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Win 98
PHP Version: 4.3.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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
Thread (3 messages)