Re: Bug #10540 Updated: ini_set doesn't work
| From: | Jani Taskinen | Date: | Sun, 29 Apr 2001 10:34:17 +0000 |
| Subject: | Re: Bug #10540 Updated: ini_set doesn't work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52876@lists.php.net to get a copy of this message | ||
Couldn't that ini_set() be modified so that it would give an error if
setting some ini-option isn't allowed?
--Jani
On 28 Apr 2001 zeev@php.net wrote:
>ID: 10540
>Updated by: zeev
>Reported By: jonas@understroem.dk
>Old-Status: Open
>Status: Closed
>Bug Type: PHP options/info functions
>PHP Version: 4.0 Latest CVS (28/04/2001)
>Assigned To:
>Comments:
>
>ini_set() cannot affect the behavior of PHP that takes place before the script execution begins.
>Variable registration occurs before the execution of the script begins (the variables are
>available and accessible right from the 1st line in the script). So by the time you call ini_set(),
>variable registration is already done. Affecting it in any way (global registration, automated
>quotes) is not possible.
>
>Previous Comments:
>---------------------------------------------------------------------------
>
>[2001-04-28 16:43:31] jonas@understroem.dk
>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.
>
>
>---------------------------------------------------------------------------
>
>
>
>ATTENTION! Do NOT reply to this email!
>To reply, use the web interface found at
>http://bugs.php.net/?id=10540&edit=2
>
>
>