Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49801 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44157 invoked from network); 29 Sep 2010 19:44:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2010 19:44:16 -0000 Authentication-Results: pb1.pair.com header.from=quickshiftin@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=quickshiftin@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: quickshiftin@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:34768] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/F1-37853-01793AC4 for ; Wed, 29 Sep 2010 15:44:16 -0400 Received: by fxm11 with SMTP id 11so1019584fxm.29 for ; Wed, 29 Sep 2010 12:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=XoTURnJNk0p6lq+xHxgs8YV3nU6umcGoBZXNV/QjGbQ=; b=dh7WDm6oRbLwtUsMzHzjp19rJCIjFy9f4wvJ75BFE/+/YeRAfurY5f3jhDBQoiKQfn mX+AWlrF9UhhtfVKdDHDtHlw+24MhGTn72dGDrzbS7a/uasDfog+GbbQntIcak5zXE02 gREpg+jn83l1lEWhX8BZYyvIt86kn9WIxuqS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=dff0kDSgE1UTUweezrPqAh9zI5xyPhn3xoWpOSEZHy9X0+7ltGuXAZl+01SCmESnJj FunyHsaM8ndKTA2jGxak3r9oyaD2jHFXDkfNegNFLrWNeHAeYMneuG7c1svDXbcxdqKE n16Qvnb8L6uinsq6D/fh3fOPUQ9nLRXTZ6rIg= MIME-Version: 1.0 Received: by 10.239.161.130 with SMTP id h2mr183841hbd.117.1285789453287; Wed, 29 Sep 2010 12:44:13 -0700 (PDT) Received: by 10.239.189.72 with HTTP; Wed, 29 Sep 2010 12:44:13 -0700 (PDT) Date: Wed, 29 Sep 2010 13:44:13 -0600 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001485f03c929e82d704916b2f95 Subject: Bug in 5.3 __invoke() magic method? From: quickshiftin@gmail.com (Nathan Nobbe) --001485f03c929e82d704916b2f95 Content-Type: text/plain; charset=UTF-8 Hi, Started using 5.3 and stumbled into what appears to be a bug with the __invoke() magic method. It works fine if used in an object for a class defining __invoke() is stored in a local variable, however when storing said object as an instance variable, a fatal is raised. See my example below. a = new A(); $this->a(); } } $a = new A(); $a(); $b = new B(); ?> Output: A Fatal error: Call to undefined method B::a() in /Users/quickshiftin/gitRepos/timberline/ct-rip/test-callable.php on line 17 Expected Output: A A thx, -nathan --001485f03c929e82d704916b2f95--