Re: PHP 4.0 Bug #9884 Updated: Using a return in an included file causes a major abnormality.
| From: | Hartmut Holzgraefe | Date: | Thu, 29 Mar 2001 11:40:43 +0000 |
| Subject: | Re: PHP 4.0 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-50206@lists.php.net to get a copy of this message | ||
stas@php.net wrote:
>
> ID: 9884
> Updated by: stas
> Reported By: ceo@phester.org
> Old-Status: Open
> Status: Closed
> Bug Type: Scripting Engine problem
> Assigned To:
> Comments:
>
> 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.
[...]
this does not explain why it is possible to declare two functions
by the same name without getting an error
which of the two hello()'s is going to be called by the main script?
--
Hartmut Holzgraefe hartmut@six.de http://www.six.de
+49-711-99091-77
Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4