]> granicus.if.org Git - php/commit
Don't use >= as sorting condition
authorXinchen Hui <laruence@php.net>
Mon, 19 Jan 2015 06:04:23 +0000 (01:04 -0500)
committerXinchen Hui <laruence@php.net>
Mon, 19 Jan 2015 06:36:56 +0000 (01:36 -0500)
commit020b51b46eceb1a8c2876aac263772ed55ba9a1a
tree9c9822bdfeb1f7cf58463f3b1f30911846a94cbe
parent0706032b7344ee3be3e95911e18966b3d97bfe39
Don't use >= as sorting condition

which could avoid breaking usage like:

usort($a, function($a, $b) { return $a > $b; })
Zend/zend_sort.c
ext/standard/tests/array/usort_variation11.phpt [new file with mode: 0644]