]> granicus.if.org Git - php/commit
correct fix to the natcmp_ex
authorAnatol Belski <ab@php.net>
Mon, 15 Sep 2014 10:54:46 +0000 (12:54 +0200)
committerAnatol Belski <ab@php.net>
Mon, 15 Sep 2014 10:58:46 +0000 (12:58 +0200)
commit172ca172d135fc3ade5a08b5b3ef8cedcdc5018d
tree3f7823ec6fe5963c80c68a0ace0323020b139ea4
parent836fd73cce8d0550baf5477bfb0ea0edbfae455a
correct fix to the natcmp_ex

Till now the actualy length diff between the strings was under
circumstances returned. Whereby for a compare function only return
values of (1, 0, -1) make sense. Thus the old behavior isn't
present anymore, natcmp_ex now behaves as a standard compare function.
ext/standard/strnatcmp.c
ext/standard/tests/strings/strnatcasecmp_variation1.phpt