Re: [PHP-DEV] A moving instance

2008-01-30 Thread Antony Dovgal
On 30.01.2008 18:30, Lars Strojny wrote: > Hi, > > I've recently stumbled upon the following issue: when calling a > non-static function statically from a non-static class, the instance > magically moves to the called class. It throws a strict warning, but I > wonder if this is enough. The attache

[PHP-DEV] A moving instance

2008-01-30 Thread Lars Strojny
Hi, I've recently stumbled upon the following issue: when calling a non-static function statically from a non-static class, the instance magically moves to the called class. It throws a strict warning, but I wonder if this is enough. The attached example produces "Foo". cu, Lars -- »Die Glorif