Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46561 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36118 invoked from network); 28 Dec 2009 23:04:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Dec 2009 23:04:09 -0000 X-Host-Fingerprint: 75.72.251.154 c-75-72-251-154.hsd1.mn.comcast.net Received: from [75.72.251.154] ([75.72.251.154:15393] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/58-26502-869393B4 for ; Mon, 28 Dec 2009 18:04:08 -0500 Message-ID: To: internals@lists.php.net Date: Mon, 28 Dec 2009 17:04:06 -0600 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 References: <78.83.26502.F1DD83B4@pb1.pair.com> <4B38DDD3.8010108@hexon.cx> In-Reply-To: <4B38DDD3.8010108@hexon.cx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 75.72.251.154 Subject: Re: [PHP-DEV] is_array on objects with ArrayAccess or Iterator implementations From: cpriest@warpmail.net (Clint Priest) Unfortunately $x instanceOf ArrayAccess doesn't return true when $x is indeed an array. Jille Timmermans wrote: > Op 28-12-2009 17:30, Clint Priest schreef: >> Has there been any discussion or decision about whether is_array() >> should return true for objects which implement ArrayAccess or is there >> another function already available which checks for either being the >> case? >> > How about $x instanceOf ArrayAccess ? > > -- Jille