Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67142 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68658 invoked from network); 25 Apr 2013 09:07:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2013 09:07:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.175 as permitted sender) X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.210.175 mail-ia0-f175.google.com Received: from [209.85.210.175] ([209.85.210.175:42910] helo=mail-ia0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/03-50361-962F8715 for ; Thu, 25 Apr 2013 05:07:54 -0400 Received: by mail-ia0-f175.google.com with SMTP id i38so2471764iae.6 for ; Thu, 25 Apr 2013 02:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:reply-to:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=43lWb7zRON7wdBU5CibzgYfoCVtwqAOhwoqNrCB5Lrc=; b=uq44xNfmJA7BpgZSozTzMs0IluJM1ken069Ln9wlUzPikwp3Nd3jzmbgCyNVafA91z wYBlc8j46ztl6uw3ermpUn5vpuPQYC1lDw9ob4cBFC2/LMdd+SGz7dlrKCfGMZe0MEUV RN4y2Ss3beZjApjkl2JOCe6QbgXVGTkUq72n4KeVPZAxBxjzQPbO539X9gnLNQ83y9Vk XSg4HZKhKCEsK0aWjLLOb/JqWDiYpSk+rsaoXra9BXHn9YkExAb185JhLCXJml4nQ1mc YzmnX97/ty074lHx0ioPdCH4cCOQmM/vCoZmshhrUCIjiLRLp0eA+jxdGUbUa+VJjxeV /Lxw== X-Received: by 10.42.145.137 with SMTP id f9mr21372768icv.52.1366880871495; Thu, 25 Apr 2013 02:07:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.22.170 with HTTP; Thu, 25 Apr 2013 02:07:31 -0700 (PDT) Reply-To: RQuadling@GMail.com In-Reply-To: References: Date: Thu, 25 Apr 2013 10:07:31 +0100 Message-ID: To: Anthony Ferrara Cc: Richard Bradley , Rasmus Schultz , PHP internals Content-Type: multipart/alternative; boundary=90e6ba6e8b50cbc3d204db2bc00d Subject: Re: [PHP-DEV] vsprintf() From: rquadling@gmail.com (Richard Quadling) --90e6ba6e8b50cbc3d204db2bc00d Content-Type: text/plain; charset=UTF-8 On 24 April 2013 17:39, Anthony Ferrara wrote: > Richard, > > > Oh! Another magic method opportunity ... >> >> /** >> * Operates just like __toString(), but returns an array. >> */ >> public function __toArray(); >> >> >> (ducking) > > > I know you're joking, but this has been brought up before (and I intend to > bring it up again): https://wiki.php.net/rfc/object_cast_to_types > > I'm only half joking. -- Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : http://bit.ly/9O8vFY --90e6ba6e8b50cbc3d204db2bc00d--