Re: [PHP-DEV] Bug in 5.3 __invoke() magic method?

2010-09-29 Thread Nathan Nobbe
On Wed, Sep 29, 2010 at 2:56 PM, Stas Malyshev wrote: > Hi! > > > public function __construct() >> { >> $this->a = new A(); >> $this->a(); >> > > Here you are calling method a() of object $this. Such method does not > exist. No bug here. Methods are properties are differen

Re: [PHP-DEV] Bug in 5.3 __invoke() magic method?

2010-09-29 Thread Stas Malyshev
Hi! public function __construct() { $this->a = new A(); $this->a(); Here you are calling method a() of object $this. Such method does not exist. No bug here. Methods are properties are different things. -- Stanislav Malyshev, Software Architect SugarCRM: http://ww

[PHP-DEV] Bug in 5.3 __invoke() magic method?

2010-09-29 Thread Nathan Nobbe
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.