Bug #9884 Updated: Using a return in an included file causes a major abnormality.

From: Date: Thu, 11 Jul 2002 07:23:48 +0000
Subject: Bug #9884 Updated: Using a return in an included file causes a major abnormality.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13834@lists.php.net to get a copy of this message
ID: 9884 Updated by: sniper@php.net Reported By: ceo@phester.org -Status: Analyzed +Status: Closed Bug Type: Scripting Engine problem Operating System: NT/Freebsd PHP Version: 4.1.0 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2001-12-14 15:02:00] yohgaki@php.net I guess status should be analyzed. ------------------------------------------------------------------------ [2001-11-29 05:13:59] zeev@php.net The fix was reverted, so the bug is reopened. We'll have to try and find a better solution, if one exists. ------------------------------------------------------------------------ [2001-07-15 12:19:54] zeev@php.net Fixed in CVS ------------------------------------------------------------------------ [2001-03-29 07:00:18] stas@php.net reopened - double function definition still there. ------------------------------------------------------------------------ [2001-03-29 06:26:35] stas@php.net Using return stops _running_ the script. However, in PHP 4, scrips are _compiled_ in full before running. That means, all functions, which are defined on the compile stage, will be defined no matter what happened when the script was run. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/9884 -- Edit this bug report at http://bugs.php.net/?id=9884&edit=1

« previous php.bugs (#13834) next »