PHP 4.0 Bug #7701 Updated: loads include files twice

From: Date: Sat, 30 Dec 2000 17:18:06 +0000
Subject: PHP 4.0 Bug #7701 Updated: loads include files twice
Groups: php.dev 
Request: Send a blank email to php-dev+get-42684@lists.php.net to get a copy of this message
ID: 7701 Updated by: jmoore Reported By: fmoreira@imediata.pt Old-Status: Open Status: Assigned Bug Type: IIS related Assigned To: Comments: Ill try to recreate this one and get to the bottom of it. James Previous Comments: --------------------------------------------------------------------------- [2000-11-08 17:21:55] fmoreira@imediata.pt 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 --------------------------------------------------------------------------- [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

« previous php.dev (#42684) next »