PHP 4.0 Bug #7701 Updated: loads include files twice

From: Date: Sun, 28 Jan 2001 20:55:56 +0000
Subject: PHP 4.0 Bug #7701 Updated: loads include files twice
Groups: php.dev 
Request: Send a blank email to php-dev+get-45203@lists.php.net to get a copy of this message
ID: 7701 Updated by: jmoore Reported By: fmoreira@imediata.pt Status: Assigned Bug Type: IIS related Assigned To: jmoore Comments: lets actually assign this this time and see if I remember to do it ;) Previous Comments: --------------------------------------------------------------------------- [2000-12-30 12:18:06] jmoore@php.net Ill try to recreate this one and get to the bottom of it. James --------------------------------------------------------------------------- [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 (#45203) next »