PHP 4.0 Bug #7701 Updated: loads include files twice
| From: | fmoreira at imediata dot pt | Date: | Wed, 08 Nov 2000 16:21:55 +0000 |
| Subject: | PHP 4.0 Bug #7701 Updated: loads include files twice | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37441@lists.php.net to get a copy of this message | ||
ID: 7701
User Update by: fmoreira@imediata.pt
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@imediata.pt
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