Bug #10540: ini_set doesn't work
| From: | jonas at understroem dot dk | Date: | Sat, 28 Apr 2001 20:43:31 +0000 |
| Subject: | Bug #10540: ini_set doesn't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52798@lists.php.net to get a copy of this message | ||
From: jonas@understroem.dk
Operating system: SuSE Linux 7.1
PHP version: 4.0 Latest CVS (28/04/2001)
PHP Bug Type: PHP options/info functions
Bug description: ini_set doesn't work
ini_set does not seem to work with register_globals and
magic_quotes. Example: You call a file and include the
query string "test=hmm". Here is the code for the file:
<?php
ini_set("register_globals", "0");
echo "register_globals setting:
".ini_get("register_globals")."<br/>";
echo "\$test value: $test";
?>
This will generate the following output:
register_globals setting: 0
$test value: hmm
Notice that the value "hmm" is still there even though
register_globals is off according to the ini_get line.
--
Edit Bug report at: http://bugs.php.net/?id=10540&edit=1