Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42471 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21082 invoked from network); 4 Jan 2009 15:20:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2009 15:20:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=kkooporation@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kkooporation@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.200.175 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kkooporation@googlemail.com X-Host-Fingerprint: 209.85.200.175 wf-out-1314.google.com Received: from [209.85.200.175] ([209.85.200.175:50168] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/57-07052-9A3D0694 for ; Sun, 04 Jan 2009 10:20:10 -0500 Received: by wf-out-1314.google.com with SMTP id 26so7837022wfd.26 for ; Sun, 04 Jan 2009 07:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=TpcpcME7kEx0auLXp2+h8uSDPoyn4a8l1eoHoR37Hgw=; b=Wsug08ytDbTvyVq+Xd5LwIpyjwCVDLtWsIaBfpZl4WqqnjGUaMFDKCrweWufAiKLCS IjXwQaU1WrO7bBFV0epFAqeyWHFLmmWr1sAT71zxGYYv7GFUNaJBLh80eEiuu6Tiyq4O c2ktVomi0jS3+FENrbbJNfEYhmRhRZah5Rh0I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=HdhhMgHjhCiMOy6QHR8IXAuckeypqWyHrY+5Gh510XIGjbOfy3gptWBT/tJwCNtiNK phUmDFfZHgRbuhST/A67jilVj2un0gMvqtfIEdGgAE4NsRPFwD+Eq+ol3h9eP00bjwuF OgfCzdJ+G3D6losr+neLdkr6x1FmfLQrUokVQ= Received: by 10.142.172.12 with SMTP id u12mr8241231wfe.248.1231082406787; Sun, 04 Jan 2009 07:20:06 -0800 (PST) Received: by 10.143.6.8 with HTTP; Sun, 4 Jan 2009 07:20:06 -0800 (PST) Message-ID: Date: Sun, 4 Jan 2009 16:20:06 +0100 Sender: kkooporation@googlemail.com To: "=?UTF-8?Q?Johannes_Schl=C3=BCter?=" Cc: "Marcus Boerger" , "=?UTF-8?Q?David_Z=C3=BClke?=" , "PHP Internals" In-Reply-To: <1231077571.6023.28.camel@goldfinger> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_137402_22095097.1231082406784" References: <08AA10DA-2704-415C-8A8C-893C89990DC1@bitextender.com> <868073456.20081231173818@marcus-boerger.de> <1230920192.6125.141.camel@goldfinger> <145582992.20090103154744@marcus-boerger.de> <1231077571.6023.28.camel@goldfinger> X-Google-Sender-Auth: c2de96a16d3079dd Subject: Re: [PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness From: kureal@kkooporation.de ("Kenan R Sulayman") ------=_Part_137402_22095097.1231082406784 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Johannes, foo = "foo"; $o->foo(); //Example 1 $o->bar = function(){}; $o->bar(); //Example 2 ?> The example 1 must not work, because PHP tries to call $o->foo() as a function, but not $o->foo as description for the function. To make example 2 working, the declaration has to be changed. Thanks, -- (c) Kenan Sulayman Freelance Designer and Programmer Life's Live Poetry http://MyJurnal.tk/ ------=_Part_137402_22095097.1231082406784--