]> granicus.if.org Git - php/commit
Remove unnecessary haystack length check in stripos()
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 25 Aug 2019 14:31:15 +0000 (16:31 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 25 Aug 2019 14:31:15 +0000 (16:31 +0200)
commit6e3135070c13293c2f5f4d8a22ec282fd00f3f21
tree21e26d93f3585bf3a2fb7ca82a4fcd8e1db748cd
parent4346d1b0e66e99809ba7ad9592198f79f673e744
Remove unnecessary haystack length check in stripos()

This falls out naturally from the following condition, because
either the needle length will be zero as well, or the needle
will be longer than the (empty) haystack.
ext/standard/string.c