Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12074 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84653 invoked by uid 1010); 10 Aug 2004 18:49:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80094 invoked from network); 10 Aug 2004 18:48:25 -0000 Received: from unknown (HELO jan.prima.de) (83.97.50.139) by pb1.pair.com with SMTP; 10 Aug 2004 18:48:25 -0000 Received: from BAUMBART (p508E9E77.dip.t-dialin.net [::ffff:80.142.158.119]) (IDENT: HydraIRC, AUTH: LOGIN tobi) by jan.prima.de with esmtp; Tue, 10 Aug 2004 18:45:36 +0000 Date: Tue, 10 Aug 2004 20:48:18 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <367824714.20040810204818@marcus-boerger.de> To: Andrey Hristov CC: Andi Gutmans , internals@lists.php.net In-Reply-To: <410A152A.8090400@hristov.com> References: <5.1.0.14.2.20040729232013.02f38418@127.0.0.1> <410A152A.8090400@hristov.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Sorting Bug / Wrong behavior? From: helly@php.net (Marcus Boerger) Hello Andrey, Friday, July 30, 2004, 11:30:18 AM, you wrote: > Andi Gutmans wrote: >> I talked to John about this yesterday. I'll take a closer look at this >> within the coming days to see if this makes sense and how it affects BC >> in general (if at all). >> > 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? regards marcus