Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61121 invoked from network); 5 Jun 2011 20:02:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2011 20:02:18 -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 209.85.160.42 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: 209.85.160.42 mail-pw0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:62826] helo=mail-pw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/BC-26000-9C0EBED4 for ; Sun, 05 Jun 2011 16:02:18 -0400 Received: by pwj3 with SMTP id 3so1875252pwj.29 for ; Sun, 05 Jun 2011 13:02:15 -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:from:date :message-id:subject:to:cc:content-type; bh=4iyAqSQLs4wMLLZ9369fkynNjdzGWPC/wrlF6pNtQQU=; b=SdcQ8gfM37smqBOxWrrF+lfsU1EvuQ6tSrQLZ12BSocLZc9iXXglln2jNOq46hAL+4 ef5Q3mLxSmtmDJhusBdOwqlp7G41gAeuukRW1NmwK1yDXVgC9ikl2erU+os5K0UwSsUi bNj89icJcCwLdJjtmJ9eEJr/xe5E8RJlLo858= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=vApUA+2caxwPujJNUaW3qYQU1c6BO8MI1SWq8fjajXLBXRPyJyAyPGmoKSl7UIm4Ro x+DM2OYIoLp3ViuHtBb/iwg6PdemxTjEUp9TBtWL94pHTBmu1Idnsfb6+z+iDbkMYP+e HGKuaZ7pGSGXAzxigwnGU96IiHSu/wIuMA6wk= Received: by 10.142.147.19 with SMTP id u19mr653115wfd.119.1307304135106; Sun, 05 Jun 2011 13:02:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.246.21 with HTTP; Sun, 5 Jun 2011 13:01:55 -0700 (PDT) In-Reply-To: <887FE7CFF6F8DE4BB3A9535F53AFD06A49305FDB@il-ex2.zend.net> References: <887FE7CFF6F8DE4BB3A9535F53AFD06A49305FDB@il-ex2.zend.net> Date: Sun, 5 Jun 2011 17:01:55 -0300 Message-ID: To: Zeev Suraski Cc: internals Content-Type: multipart/alternative; boundary=000e0cd3098e96224a04a4fc769d Subject: Re: [PHP-DEV] $arr = array('Hello', 'world'); $arr(); From: felipensp@gmail.com (Felipe Pena) --000e0cd3098e96224a04a4fc769d Content-Type: text/plain; charset=UTF-8 Hi, 2011/6/5 Zeev Suraski > > -----Original Message----- > > class Hello { > > public function world($x) { > > echo "Hello, $x\n"; return $this; > > } > > } > > > > $f = array(new Hello, 'foo'); > > $f(); > > Am I the only one who doesn't understand what this one is supposed to do..? > > If you are refering to the 'foo' method and the lack of arg, it's was a typo... The right one: