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 Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to