[PHP-DEV] PHP 4.0 Bug #7701 Updated: loads include files twice From: fmoreira <email protected>
Date: 11/08/00

ID: 7701
User Update by: fmoreira <email protected>
Status: Open
Bug Type: IIS related
Description: loads include files twice

after trying include_once the same error ocurrs

"Fatal error: Cannot redeclare imagens_carregar() in include/funcoes.php on line 18"

imagens_carregar() is the first function in the included file

Previous Comments:
---------------------------------------------------------------------------

[2000-11-08 16:24:15] fmoreira <email protected>
sometimes... I can't especify how or the circumstances that make it happen.

when I load the PHP script (that has an 'include' statement) it loads twice the include file...

mod0.php:

"if(!$fs)
    include("funcoes.php");"

funcoes.php:

"
$fs=1;
..."

the $fs variable was a way I used to check if the problem is in the script or in the script engine...

IF THE BROWSER RELOADS THE PAGE, IT OPENS CORRECTLY...
IF THE BROWSER RELOADS THE PAGE AGAIN, HAPPENS THE ERROR AGAIN...

I'm using the phpisapi.dll with no extensions

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=7701

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>