[3 Nov 5:38pm UTC] christoph at ziegenberg dot de
as described in the more important bug #39361 i compared strstr() and
mb_strstr() produces the following error when using an empty haystack:
Warning: mb_strstr() [function.mb-strstr]:
Empty haystack in X on line Y
but strstr() doesn't.
no error message - because haystack does not contain needle, so the
function should return false, as described in the documentation. the
different behavior produces a lot of errors when using function
overloading (although i know using it is not a good idea... ;).
Warning: mb_strstr() [function.mb-strstr]: Empty haystack in X on line
[3 Nov 7:56pm UTC] firstname.lastname@example.org
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
dupe of 39361
[3 Nov 8:19pm UTC] christoph at ziegenberg dot de
No, that is not the same bug!
Bug #39361 is about that the ini settings for function overloading are
"cached" and still active when changing the directory.
Bug #39364 is about the different behavior of mb_strstr() and strstr().
I found bug number one when checking the second one, but that not the
same bug... so which one did you fix?
[3 Nov 8:38pm UTC] email@example.com
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.
According to this, fixed version has already been available.
Can I use the fixed version of PHP5.2 instead of the currently included one?