#20431 [NEW]: function generated include blocks access to $HTTP_GET_VARS[]

From: Date: Thu, 14 Nov 2002 19:29:22 +0000
Subject: #20431 [NEW]: function generated include blocks access to $HTTP_GET_VARS[]
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24911@lists.php.net to get a copy of this message
From: remi2402@hotmail.com Operating system: Windows XP Pro PHP version: 4.2.3 PHP Bug Type: Scripting Engine problem Bug description: function generated include blocks access to $HTTP_GET_VARS[] My script uses multiple includes and the file names all have the same syntax. So instead of writing each individual include, I created an array which contains all the filenames function LoadSections($sections) { foreach ($sections as $key => $value) { include "mod.section." . $value . ".php"; } } All the files load well except that I cannot access HTTP_GET_VARS and the isset() function always return false. NB My includes work fine when loaded individually -- Edit bug report at http://bugs.php.net/?id=20431&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20431&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20431&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20431&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20431&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20431&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20431&r=support Expected behavior: http://bugs.php.net/fix.php?id=20431&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20431&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20431&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20431&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20431&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20431&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20431&r=isapi

« previous php.bugs (#24911) next »