Re: Sorting Bug / Wrong behavior?
| From: | Andrey Hristov | Date: | Tue, 10 Aug 2004 22:01:58 +0000 |
| Subject: | Re: Sorting Bug / Wrong behavior? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12082@lists.php.net to get a copy of this message | ||
Marcus Boerger wrote:
Hello Andrey,Ugh? What kind of comparison?Can you take a look also at http://bugs.php.net/bug.php?id=29421We don't affect those. We simply correct the sorting to something understandable when it comes to edge cases with zero. We don't touch any other automatic typeconversion related behavior as mentioned in that but. php -r 'var_dump(array_search("baz",array("foo",TRUE ,"bar")));' The above returns int(1) because php -r 'var_dump((bool)"baz");' returns bool(true). Maybe we need a builtin search function that uses idetentity comparison?
regards marcusthanks andrey