]> granicus.if.org Git - php/commit
Fix bug #55451
authorLauri Kenttä <lauri.kentta@gmail.com>
Wed, 3 Aug 2016 08:29:12 +0000 (11:29 +0300)
committerNikita Popov <nikic@php.net>
Sun, 7 Aug 2016 16:48:36 +0000 (18:48 +0200)
commite616bc8694f5a2d536462a77d629eca614626c3e
tree1a34071a20e09bd5c596963667665f5e25d440a4
parent56d7e98ddf8ccf18d41771482bc5434d3c615c35
Fix bug #55451

Make substr_compare ignore the length if it's NULL. This allows to
use the last parameter (case_insensitivity) with the default length.
NEWS
ext/standard/string.c
ext/standard/tests/strings/bug55451.phpt [new file with mode: 0644]
ext/standard/tests/strings/substr_compare.phpt