Forget it. That works the same way in php4.
Sorry for the noise :)
pierre
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 18 Feb 2004 15:44:10 +0100
[EMAIL PROTECTED] (Hartmut Holzgraefe) wrote:
> it works for the first call to getFoo(),
> on any following call include_once
> will ignore "inc.php" as it was already
> included before, and as $foo is a local
> variable to getFoo() it won't exist in
> any but th
Pierre-Alain Joye wrote:
Hello,
Having the scripts pasted below:
include_once fails to declare the variable 'foo'. Replace include_once
by include and it works. I got the same behavior using require and
require_once.
Am I wrong to see that as a bug?
inc.php
testinc.php
---
fun