The ext/standard/tests/array/natcasesort_variation3.phpt still fails.
The problematic code:
$a=array(.0001, .0021, .09);
The float 0.09 is greater than 0.0021, but 9 is less than 21.
I'm not sure that should be fixed, the code or the test.
Probably natsort() shouldn't care about float numbers at all.
Rasmus Lerdorf wrote:
Hannes Magnusson wrote:
On Wed, Apr 8, 2009 at 20:10, Rasmus Lerdorf <ras...@php.net> wrote:
rasmus Wed Apr 8 18:10:46 2009 UTC
Added files: (Branch: PHP_5_3)
/php-src/ext/standard strnatcmp.c var_unserializer.c
Fixed bug #44929 - Better handling of leading zeros
This commit breaks float sorting, see
Hrm.. I ran 'make test' several times. That test passed here. I'll
take a closer look.
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php