Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52960 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57511 invoked from network); 5 Jun 2011 19:55:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2011 19:55:04 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:50048] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/FB-26000-71FDBED4 for ; Sun, 05 Jun 2011 15:55:04 -0400 Received: by vwl1 with SMTP id 1so2695850vwl.29 for ; Sun, 05 Jun 2011 12:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=H15SmUJhEee7N8HjZfol+avtTZLCkhEkrwnd65UPk1k=; b=sRkV6UfzSQ8icUkEE1HUsat5N0Y6yG6gMDM2i22wHOo14Og9WFIx+kZhNoe0fj6reS SNRc5vudw6w+uozRgYKr9oJbWIvZX3j4J2JJRSEsiDuQHAOIhbx4oZNDanf1ZU+4kKeR D/xEix/vlpi1vmmEOd6+iEETCdPPE84+GitK4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WfVu/gQqh5IMxBaqDGeYszJNFdLOskzq5k660lm3ct/SmAS9UNBCEFh+RoFGbVwKP7 gPAl9kWJKUCaGV/2BPHINMeRXftxOHzTO9lUEjA3mPSKKhtEzoKzrkWlgVDq5NKst0jK EJMKwOncZ3txhoWznHWVnzd+PhbVdPS5I7dgc= MIME-Version: 1.0 Received: by 10.52.111.71 with SMTP id ig7mr3626806vdb.209.1307303700898; Sun, 05 Jun 2011 12:55:00 -0700 (PDT) Received: by 10.52.168.163 with HTTP; Sun, 5 Jun 2011 12:55:00 -0700 (PDT) In-Reply-To: <887FE7CFF6F8DE4BB3A9535F53AFD06A49305FDB@il-ex2.zend.net> References: <887FE7CFF6F8DE4BB3A9535F53AFD06A49305FDB@il-ex2.zend.net> Date: Sun, 5 Jun 2011 21:55:00 +0200 Message-ID: To: Zeev Suraski Cc: Felipe Pena , internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] $arr = array('Hello', 'world'); $arr(); From: pierre.php@gmail.com (Pierre Joye) On Sun, Jun 5, 2011 at 9:52 PM, Zeev Suraski wrote: >> -----Original Message----- >> class Hello { >> =A0 =A0public function world($x) { >> =A0 =A0 =A0 echo "Hello, $x\n"; return $this; >> =A0 =A0} >> } >> >> $f =3D array(new Hello, 'foo'); >> $f(); > > Am I the only one who doesn't understand what this one is supposed to do.= .? Hello::World(), like what you do in call user func, or similar to. --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org