Re: Re: PHP 4.0 Bug #4294 Updated: return in script called from php.ini stops engine (2/2)
| From: | Andi Gutmans | Date: | Sat, 19 Aug 2000 14:41:11 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #4294 Updated: return in script called from php.ini stops engine (2/2) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-29656@lists.php.net to get a copy of this message | ||
At 04:33 PM 8/19/00 +0200, André Langhorst wrote:
Yes but the global scope is now only the real global scope. prepend/append/require/include have their own scope now. It is especially useful as you can return values from require() and include(). Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/As of PHP 4.0.2 (recent CVS's), return would work fine inside auto-prepended/auto-appended files. This bug can be closed. In earlier versions, 'return' inside auto-append/auto-prepend files was basically undefined, and (usually) behaved like an exit() call.is it intended that it behaves like an exit() call from the global scope?