|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-09-18 11:05 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
line 520: if (needle->type == IS_STRING) { if (strlen(needle->value.str.val)==0) { php3_error(E_WARNING,"Empty delimiter"); RETURN_FALSE; } found = strstr(haystack->value.str.val, needle->value.str.val); stig told me, that php strings should be binary safe, i believe that the strlen in the strpos-function is not. i believe it sould read: .... if (needle->value.str.lenl==0) { .... regards, tc