ID: 20431
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows XP Pro
PHP Version: 4.2.3
New Comment:
Your example is including files inside a function so the included files
follow standard variable scope rules. This is why this is marked as a
bogus bug and a support question.
function foo() {
$var = 'blah';
}
foo(); var_dump($var); // NULL
$_GET will still be available as it's an autoglobal while
$HTTP_GET_VARS will not.
Previous Comments:
------------------------------------------------------------------------
[2002-11-14 13:47:03] [EMAIL PROTECTED]
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?
------------------------------------------------------------------------
[2002-11-14 13:36:46] [EMAIL PROTECTED]
Then how come the isset function doesn't work with these includes?
------------------------------------------------------------------------
[2002-11-14 13:30:16] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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