Re: Can someone tell me ...
| From: | Sven Peter | Date: | Thu, 25 Aug 2005 13:26:51 +0000 |
| Subject: | Re: Can someone tell me ... | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18429@lists.php.net to get a copy of this message | ||
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