ID: 10540
Updated by: zeev
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to