ID: 34155
Updated by: [EMAIL PROTECTED]
Reported By: scott at vbulletin dot com
-Status: Open
+Status: Feedback
Bug Type: mbstring related
Operating System: *
PHP Version: 5CVS-2005-08-16 (CVS)
New Comment:
Please provide a list of functions that differ from native functions.
Previous Comments:
------------------------------------------------------------------------
[2005-08-17 13:23:35] scott at vbulletin dot com
I'm reporting inconsitent behaviour, either add the same error message
to strrpos or remove it from mb_strrpos.
Probably add it to strrpos and strripos since the majority fo the
native string functions throw warnings on invalid parameters.
------------------------------------------------------------------------
[2005-08-16 20:56:53] scott at vbulletin dot com
Description:
------------
If you use mbstring.func_overload in php.ini various string functions
will be overloaded with their mb_* equivalents.
The mb functions will trigger warnings when certain parameters are
empty or null unlike their native counterparts.
Reproduce code:
---------------
<?php
var_dump(strrpos('', '/'));
var_dump(mb_strrpos('', '/'));
?>
Expected result:
----------------
bool(false)
bool(false)
Actual result:
--------------
bool(false)
Warning: mb_strrpos(): Empty haystack in
/home/vbulletin/public_html/dev/test.php on line 4
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34155&edit=1