Re: [PHP-DEV] Can someone tell me ...

2005-08-25 Thread Sven Peter
Hi, Why this crashes: php -r 'class a { function b() { return $this-b(); }} $c = new a(); $c- b();' and this does not? php -r 'function a() { return a(); }' because you forgot to call a(); This also crashes: php -r function a() { return a(); } a(); Sven -- PHP Internals - PHP

[PHP-DEV] Can someone tell me ...

2005-08-24 Thread John Coggeshall
Why this crashes: php -r 'class a { function b() { return $this-b(); }} $c = new a(); $c- b();' and this does not? php -r 'function a() { return a(); }' -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php