Bug #16150: include_once Broken?

From: Date: Mon, 18 Mar 2002 18:30:02 +0000
Subject: Bug #16150: include_once Broken?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2783@lists.php.net to get a copy of this message
From: dcourey@wizardcomputer.com Operating system: Apache/1.3.23 (Unix) PHP/4.1.2 m PHP version: 4.1.2 PHP Bug Type: Scripting Engine problem Bug description: include_once Broken? It seems that the "include_once" function no longer works? <?php include_once("http://www.mySite.com/getUserID"); include_once("http://www.mySite.com/getUserID"); ?> "getUserID" contains something to the effect of... <?php function getID() { //create empty array $id = array(); ....... return ($id); } ?> Upon execution of the second "include_once" you'll receive an error.... Fatal error: Cannot redeclare getID() in http://www.mySite.com/getUserID on line 2 -- Edit bug report at http://bugs.php.net/?id=16150&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16150&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16150&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16150&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16150&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16150&r=support Expected behavior: http://bugs.php.net/fix.php?id=16150&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16150&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16150&r=submittedtwice

« previous php.bugs (#2783) next »