Marcus Boerger wrote:
Hello Andrey,


Can you take a look also at http://bugs.php.net/bug.php?id=29421


We 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?

Ugh? What kind of comparison?

regards
marcus


thanks andrey

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to