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

From: Date: Thu, 14 Nov 2002 19:47:03 +0000
Subject: #20431 [Bgs]: function generated include blocks access to $HTTP_GET_VARS[]
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24916@lists.php.net to get a copy of this message
ID: 20431 User updated by: remi2402@hotmail.com Reported By: remi2402@hotmail.com Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP Pro PHP Version: 4.2.3 New Comment: I know you bogusified my report, but it doesn't make sense. I'm just telling PHP to write itself what I would normally write. How can this block the isset function and the _GET array? Previous Comments: ------------------------------------------------------------------------ [2002-11-14 13:36:46] remi2402@hotmail.com Then how come the isset function doesn't work with these includes? ------------------------------------------------------------------------ [2002-11-14 13:30:16] derick@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-11-14 13:29:22] remi2402@hotmail.com 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 this bug report at http://bugs.php.net/?id=20431&edit=1

« previous php.bugs (#24916) next »