Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40171 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37822 invoked from network); 30 Aug 2008 20:02:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2008 20:02:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=dafneves@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dafneves@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.166.180 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.180 py-out-1112.google.com Received: from [64.233.166.180] ([64.233.166.180:59347] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/3F-27196-467A9B84 for ; Sat, 30 Aug 2008 16:02:44 -0400 Received: by py-out-1112.google.com with SMTP id a25so756047pyi.16 for ; Sat, 30 Aug 2008 13:02:42 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=1bcGpbmd1pmgFlvEUACezYNrUj0iGxa8h6ScrwtLm9k=; b=Zy3iCguRnk5vfoq1jxq6C2PItc75gzZdJ6WJXta06aYRADFT3Nh8NTa3Yk9eMv1XXH VpfnRXfBSlK88IwZkoaCkmCHsA+R5R2R9loXUtRg+0vZcGdll+bqrYo/jvjiD4GZJdIe tvq2aFU+Fueo4Lqtpy4AkgDQiBRs2mvHBprXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=SIjZDm99mqimOw/jbBUbwPVPE4Sge4hAJUNPixLaB2oX/5E4nzhPf1055XkOXalWk5 P9rLbQl/CNXeQCXUKFXeUMl3tNEwatF5x9dIO7cuKsY2DaZ14GXjGvoSrlPDPxptBTJQ UaJnkiIBX1gQ9Q4rd3SKUox0NMGVGailZbvec= Received: by 10.65.114.4 with SMTP id r4mr7791707qbm.21.1220126561913; Sat, 30 Aug 2008 13:02:41 -0700 (PDT) Received: by 10.65.242.4 with HTTP; Sat, 30 Aug 2008 13:02:41 -0700 (PDT) Message-ID: <87ae45950808301302o24f164daj4377a360f3ed1a2c@mail.gmail.com> Date: Sat, 30 Aug 2008 21:02:41 +0100 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: __call() magic method From: dafneves@gmail.com ("Diogo Neves") Hi all, I'm emailling to ask why __call isn't called when you call a private method from outside of function... In my opinion, this error should exist, but when you haven't an __call function, because outside the scope of class it only should see public methods, then if it don't exist it should call the __call Fatal error: Call to private method user::print_user() from context '' in /home/diogo/Documents/devspace/mangas.dev/index.php on line 47 Of course my opinion only counts what it counts, not too much I believe :) Anyway, it's the correct beaviour or its bugie? Make my opinion some sense? Is there anyway of implement or own magic method that gets called before any method in a given class? -- Thanks by your attention, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt