mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Removed register_globals
This commit is contained in:
parent
bae9248602
commit
febee11285
45 changed files with 138 additions and 463 deletions
|
@ -646,13 +646,12 @@ html_errors = On
|
|||
;arg_separator.input = ";&"
|
||||
|
||||
; This directive determines which super global arrays are registered when PHP
|
||||
; starts up. If the register_globals directive is enabled, it also determines
|
||||
; what order variables are populated into the global space. G,P,C,E & S are
|
||||
; abbreviations for the following respective super globals: GET, POST, COOKIE,
|
||||
; ENV and SERVER. There is a performance penalty paid for the registration of
|
||||
; these arrays and because ENV is not as commonly used as the others, ENV is
|
||||
; is not recommended on productions servers. You can still get access to
|
||||
; the environment variables through getenv() should you need to.
|
||||
; starts up. G,P,C,E & S are abbreviations for the following respective super
|
||||
; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
|
||||
: paid for the registration of these arrays and because ENV is not as commonly
|
||||
; used as the others, ENV is is not recommended on productions servers. You
|
||||
; can still get access to the environment variables through getenv() should you
|
||||
; need to.
|
||||
; Default Value: "EGPCS"
|
||||
; Development Value: "GPCS"
|
||||
; Production Value: "GPCS";
|
||||
|
@ -672,15 +671,6 @@ variables_order = "GPCS"
|
|||
; http://php.net/request-order
|
||||
request_order = "GP"
|
||||
|
||||
; Whether or not to register the EGPCS variables as global variables. You may
|
||||
; want to turn this off if you don't want to clutter your scripts' global scope
|
||||
; with user data.
|
||||
; You should do your best to write your scripts so that they do not require
|
||||
; register_globals to be on; Using form variables as globals can easily lead
|
||||
; to possible security problems, if the code is not very well thought of.
|
||||
; http://php.net/register-globals
|
||||
register_globals = Off
|
||||
|
||||
; This directive determines whether PHP registers $argv & $argc each time it
|
||||
; runs. $argv contains an array of all the arguments passed to PHP when a script
|
||||
; is invoked. $argc contains an integer representing the number of arguments
|
||||
|
@ -699,8 +689,8 @@ register_argc_argv = Off
|
|||
; When enabled, the SERVER and ENV variables are created when they're first
|
||||
; used (Just In Time) instead of when the script starts. If these variables
|
||||
; are not used within a script, having this directive on will result in a
|
||||
; performance gain. The PHP directives register_globals and register_argc_argv
|
||||
; must be disabled for this directive to have any affect.
|
||||
; performance gain. The PHP directive register_argc_argv must be disabled
|
||||
; for this directive to have any affect.
|
||||
; http://php.net/auto-globals-jit
|
||||
auto_globals_jit = On
|
||||
|
||||
|
@ -1524,8 +1514,8 @@ session.gc_maxlifetime = 1440
|
|||
; cd /path/to/sessions; find -cmin +24 | xargs rm
|
||||
|
||||
; PHP 4.2 and less have an undocumented feature/bug that allows you to
|
||||
; to initialize a session variable in the global scope, even when register_globals
|
||||
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
|
||||
; to initialize a session variable in the global scope.
|
||||
; PHP 4.3 and later will warn you, if this feature is used.
|
||||
; You can disable the feature and the warning separately. At this time,
|
||||
; the warning is only displayed, if bug_compat_42 is enabled. This feature
|
||||
; introduces some serious security problems if not handled correctly. It's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue