Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41357 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58201 invoked from network); 24 Oct 2008 10:06:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2008 10:06:09 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.78.25 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 74.125.78.25 ey-out-2122.google.com Received: from [74.125.78.25] ([74.125.78.25:58085] helo=ey-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/80-01351-01E91094 for ; Fri, 24 Oct 2008 06:06:09 -0400 Received: by ey-out-2122.google.com with SMTP id 5so235632eyj.59 for ; Fri, 24 Oct 2008 03:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=uv14kLWcyIG04TvK8vukozQgFBwl7sLgYMyBP9ejoo4=; b=CnBfzUtA7jcWqTZPlzdoORb3lyjBasxSThxC6MD7eXccoW5EnVsXhlRCigvYfNArAR QEpuZ4jScX8vF5OckL8fk+9UE/ECb6Zgz1WZqA7SqfvK89piSwDJ05ayJhKrBcrW6/YB I626oPNSWlLEkproQmtZ2BVLFCAA04z5T4E9c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=TcBv6YM/d6I2MskiQknEL7Tq2EhcGkIK+e5JPi/ymLXpzY0a+QOlwSHW2AexCgVIbH O19/joYrGX4PbF3Pd9Qj/wfsFSHxJE/pIMUyF8DUzfMmqI+4D+ex5gGNdBSY/ZxIxOKe po9QrH7SNoJCJzdlSKIGLxWC6H25bQ8RHYme8= Received: by 10.210.81.3 with SMTP id e3mr2107428ebb.15.1224842765118; Fri, 24 Oct 2008 03:06:05 -0700 (PDT) Received: by 10.210.79.1 with HTTP; Fri, 24 Oct 2008 03:06:05 -0700 (PDT) Message-ID: <46ccd1ab0810240306l2e68c1f9l5e1075dbe59bd19d@mail.gmail.com> Date: Fri, 24 Oct 2008 08:06:05 -0200 To: "Stanislav Malyshev" Cc: "Mark van der Velden" , "PHP Internals" In-Reply-To: <4900E95E.7060103@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4900DB81.4000805@zend.com> <4900E150.1010607@dynom.nl> <4900E95E.7060103@zend.com> Subject: Re: [PHP-DEV] array_key_exists BC break From: felipensp@gmail.com ("Felipe Pena") Hi Stas, 2008/10/23 Stanislav Malyshev : > 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 objec= t >>> and HASH_OF is applied to it. However, in 5.3 it would produce a warnin= g >>> 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. > > Ah, ok, missed this note, thanks. In fact, all HASH_OF was removed in standard/array.c, and that's already is mentioned implicitly though, as "The functions next()/current/=85 don't take objects anymore as parameters. For accessing their properties using this way you have to cast the objects to arrays first." --=20 Regards, Felipe Pena.