Date: 04/29/01
- Next message: a.vdvelden <email protected>: "[PHP-DEV] Bug #10549: Performance problem with Openlink ODBC drivers"
- Previous message: jmoore <email protected>: "[PHP-DEV] Bug #10420 Updated: Corrupt JPEG data: premature end of data segment gd-jpeg: JPEG library reports"
- In reply to: zeev <email protected>: "[PHP-DEV] Bug #10540 Updated: ini_set doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> wrote:
>ID: 10540
>Updated by: zeev
>Reported By: jonas <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] jonas <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: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: a.vdvelden <email protected>: "[PHP-DEV] Bug #10549: Performance problem with Openlink ODBC drivers"
- Previous message: jmoore <email protected>: "[PHP-DEV] Bug #10420 Updated: Corrupt JPEG data: premature end of data segment gd-jpeg: JPEG library reports"
- In reply to: zeev <email protected>: "[PHP-DEV] Bug #10540 Updated: ini_set doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

