Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40175 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70011 invoked from network); 30 Aug 2008 22:50:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2008 22:50:56 -0000 Authentication-Results: pb1.pair.com header.from=dafneves@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=dafneves@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.166.179 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dafneves@gmail.com X-Host-Fingerprint: 64.233.166.179 py-out-1112.google.com Received: from [64.233.166.179] ([64.233.166.179:9439] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/F4-27196-AAEC9B84 for ; Sat, 30 Aug 2008 18:50:19 -0400 Received: by py-out-1112.google.com with SMTP id a25so774030pyi.16 for ; Sat, 30 Aug 2008 15:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=TQTjH4WojcfLVarhI8S3YC/QabkrdpI/W+/QnPNfngU=; b=FFnyAnkcP6qj6qDU7P/J5inVqCY7NTxEQbBJ3SvJIMWsk4+codhffqknijUcuUnFic UfZQT813pB8/9fUf9AYl+7LxObZ/m+tFYzu+Qojq2FxscPpixi6yNQquF9Jmv278b4VM g09djermzDHWvlv8UNvFlGCgG99mYPWKyXVH4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=n/tC65s10iWZ6ACBD9UehFrPlv/UdNkJDDJGEOYf6PSIFE+GaLWSw1PHl00pzLicbT s67KGkMw+ChUE01pgiT8SUvHRufO7UIZgOryYV7YuauDJgzsxPY69lJLx2nq3tlGmSvG VveMJzo5k0OQByimvwGeUGxEs14H2Pvb4qzoo= Received: by 10.65.61.5 with SMTP id o5mr8834611qbk.44.1220136615896; Sat, 30 Aug 2008 15:50:15 -0700 (PDT) Received: by 10.65.242.4 with HTTP; Sat, 30 Aug 2008 15:50:15 -0700 (PDT) Message-ID: <87ae45950808301550n392cee6ft245c7be188b30e7b@mail.gmail.com> Date: Sat, 30 Aug 2008 23:50:15 +0100 To: "Rasmus Lerdorf" Cc: "=?ISO-8859-1?Q?Cristian_Rodr=EDguez?=" , internals@lists.php.net In-Reply-To: <48B9B55A.6050707@lerdorf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ae45950808301302o24f164daj4377a360f3ed1a2c@mail.gmail.com> <48B9B3F8.2060409@suse.de> <48B9B55A.6050707@lerdorf.com> Subject: Re: [PHP-DEV] __call() magic method From: dafneves@gmail.com ("Diogo Neves") Exactly... Is that normal workings or more like a bugie one? On Sat, Aug 30, 2008 at 10:02 PM, Rasmus Lerdorf wrote= : > Cristian Rodr=EDguez wrote: >> >> Diogo Neves escribi=F3: >>> >>> Hi all, >>> >>> I'm emailling to ask why __call isn't called when you call a private >>> method from outside of function... >> >> Please provide example code ;-) > > He means this: > > class foo { > private function bar() { } > function __call($f,$a) { > echo "called $f"; > } > } > $a =3D new foo; > $a->bar(); > --=20 Thanks by your attention, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt