Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79787 invoked from network); 8 May 2013 08:45:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2013 08:45:02 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.171 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.210.171 mail-ia0-f171.google.com Received: from [209.85.210.171] ([209.85.210.171:40951] helo=mail-ia0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/A2-06696-5101A815 for ; Wed, 08 May 2013 04:45:01 -0400 Received: by mail-ia0-f171.google.com with SMTP id r13so1710863iar.16 for ; Wed, 08 May 2013 01:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=02vGeRkflzAeVF2k+yhrUyq5rUUaBZiFP6MJVAVEuSs=; b=Rl3lYCVc2NUlny+3S3ADQ/LoPzcfY/DPD5RaP5luxp5U2aMu79+/lJASXcGcfyEdcG ahdH64WOuw8g8MzEZ7nOdQNiHmDFI0BqOwjaYSiCDsRlbcFSA3YyVcTS6zHvMNN7BWFd +4RsJbwW44ovWeh54wB+b/+QioMdELo06xfKzkQ++mzKU/IYqMegLlwU3ZEbMysfo34H Krpdvd7IkIXODcocc/Mhv9tWUK4ittg94Gled+C74aoejcb8RVk2rvdhYcUSHLMdkFxT UA19xaRxMgrID+9uPu/6wUaepJGBMwvLFLvmycthJmcviPxid/bO11MNoU1iprAucmEk +dHQ== MIME-Version: 1.0 X-Received: by 10.50.212.3 with SMTP id ng3mr2141511igc.43.1368002578717; Wed, 08 May 2013 01:42:58 -0700 (PDT) Received: by 10.50.209.3 with HTTP; Wed, 8 May 2013 01:42:58 -0700 (PDT) Received: by 10.50.209.3 with HTTP; Wed, 8 May 2013 01:42:58 -0700 (PDT) In-Reply-To: References: <1367681473.95445.YahooMailNeo@web120904.mail.ne1.yahoo.com> Date: Wed, 8 May 2013 10:42:58 +0200 Message-ID: To: pierre@pcservice.co.za Cc: Oleku Konko , "php-internals@lists.php.net" , PHP Development , Nikita Popov Content-Type: multipart/alternative; boundary=14dae93409f7c1a61304dc30eb3a Subject: Re: [PHP-DEV] Scalar Type Casting Magic Methods From: tyra3l@gmail.com (Ferenc Kovacs) --14dae93409f7c1a61304dc30eb3a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2013.05.08. 7:38, "Pierre du Plessis" ezt =C3=ADrt= a: > > The __toArray can be useful if you want to perform array functions on the > object (E.G array_filter), otherwise I think it would be very useful if the > array functions can accept an object implementing ArrayAccess as well > instead of just an array yeah, I also think that ArrayObjects should be accepted where array is expected. --14dae93409f7c1a61304dc30eb3a--