Bug #9884 Updated: Using a return in an included file causes a major abnormality.
| From: | zeev@php.net | Date: | Thu, 29 Nov 2001 10:13:59 +0000 |
| Subject: | Bug #9884 Updated: Using a return in an included file causes a major abnormality. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71991@lists.php.net to get a copy of this message | ||
ID: 9884
Updated by: zeev
Reported By: ceo@phester.org
Old Status: Closed
Status: Open
Bug Type: Scripting Engine problem
Operating System: NT/Freebsd
PHP Version: 4.0.4pl1
New Comment:
The fix was reverted, so the bug is reopened. We'll have to try and find a better solution, if
one exists.
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2001-03-20 20:03:16] ceo@phester.org
in my stupidity, i spelt weird.inc wrong... but you guys are smart, so i'll assume you can
correct it.. =) (sorry)
------------------------------------------------------------------------
[2001-03-20 20:00:01] ceo@phester.org
Sorry, i forgot to include the output of test.php, here' you go:
----output----
Hi From weird.inc... 1
------------------------------------------------------------------------
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/?id=9884
Edit this bug report at http://bugs.php.net/?id=9884&edit=1