Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41349 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29806 invoked from network); 23 Oct 2008 20:41:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2008 20:41:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=mark@dynom.nl; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mark@dynom.nl; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain dynom.nl does not designate 85.92.132.6 as permitted sender) X-PHP-List-Original-Sender: mark@dynom.nl X-Host-Fingerprint: 85.92.132.6 smtp1.duximus.nl Linux 2.5 (sometimes 2.4) (4) Received: from [85.92.132.6] ([85.92.132.6:33560] helo=smtp1.duximus.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/C3-44135-461E0094 for ; Thu, 23 Oct 2008 16:41:09 -0400 Received: by smtp1.duximus.nl (Postfix, from userid 501) id D479AB0101B; Thu, 23 Oct 2008 22:40:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on dux03.duximus.nl X-Spam-Level: X-Spam-Status: No, score=-2.5 required=1.8 tests=AWL,BAYES_00 autolearn=ham version=3.1.9 Received: from localhost (dux03.duximus.nl [127.0.0.1]) by smtp1.duximus.nl (Postfix) with ESMTP id B28F6B0109C; Thu, 23 Oct 2008 22:40:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at duximus.nl Received: from smtp1.duximus.nl ([127.0.0.1]) by localhost (dux03.duximus.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LPhXDiLNJn-R; Thu, 23 Oct 2008 22:40:36 +0200 (CEST) Received: from dux05.duximus.nl (unknown [85.92.132.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp1.duximus.nl (Postfix) with ESMTP id 0C44FB01088; Thu, 23 Oct 2008 22:40:36 +0200 (CEST) Received: from localhost ([127.0.0.1] helo=[192.168.0.52]) by dux05.duximus.nl with esmtpa (Exim 4.60) (envelope-from ) id 1Kt6z6-0006pF-Au; Thu, 23 Oct 2008 22:40:44 +0200 Message-ID: <4900E150.1010607@dynom.nl> Date: Thu, 23 Oct 2008 22:40:48 +0200 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Stanislav Malyshev CC: 'PHP Internals' References: <4900DB81.4000805@zend.com> In-Reply-To: <4900DB81.4000805@zend.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] array_key_exists BC break From: mark@dynom.nl (Mark van der Velden) Stanislav Malyshev wrote: > Hi! > > I notice that 5.3 differs from 5.2 in how array_key_exists treats > objects. In 5.2, if the second parameter (array) is allowed to be object > and HASH_OF is applied to it. However, in 5.3 it would produce a warning > requiring an array if object passed to it. Was it intentional? > Maybe the problem is deeper and is in zend_parse_arg_impl where it > should allow objects for 'a' if we can have HASH_OF from them? To my understanding, it's superseded by the function property_exists. Also notice the difference of argument order. As written here: http://docs.php.net/array_key_exists