rfc:newinis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rfc:newinis [2009/02/22 06:32] – Recommended changes to php.ini-production. ericstewartrfc:newinis [2013/10/29 17:31] – -> Implemented nikic
Line 1: Line 1:
 ====== Request for Comments: New INI's for PHP ====== ====== Request for Comments: New INI's for PHP ======
-  * Version: 1.1 +  * Version: 1.2 
-  * Date: 2009-02-09+  * Date: 2009-02-22
   * Author: Eric Lee Stewart <ericleestewart.at.gmail.com>   * Author: Eric Lee Stewart <ericleestewart.at.gmail.com>
-  * Status: Under Discussion+  * Status: Implemented in PHP 5.3
   * First Published at: http://wiki.php.net/rfc/newinis   * First Published at: http://wiki.php.net/rfc/newinis
  
Line 588: Line 588:
 ; Development Value: On ; Development Value: On
 ; Production Value: Off ; Production Value: Off
-http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors+http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
 track_errors = Off track_errors = Off
  
Line 1768: Line 1768:
  
 </code> </code>
- 
 ===== Development INI ===== ===== Development INI =====
  
Line 1783: Line 1782:
  
 ; PHP attempts to find and load this configuration from a number of locations. ; PHP attempts to find and load this configuration from a number of locations.
-; The following is a summary of it'search order:+; The following is a summary of its search order:
 ; 1. SAPI module specific location. ; 1. SAPI module specific location.
 ; 2. The PHPRC environment variable. (As of PHP 5.2.0) ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
Line 1790: Line 1789:
 ; 5. The web server's directory (for SAPI modules), or directory of PHP ; 5. The web server's directory (for SAPI modules), or directory of PHP
 ; (otherwise in Windows) ; (otherwise in Windows)
-; 6. Windows directory (C:\windows or C:\winnt), or --with-config-file-path +; 6. The directory from the --with-config-file-path compile time option, or the 
-compile time option.+; Windows directory (C:\windows or C:\winnt)
 ; See the PHP docs for more specific information. ; See the PHP docs for more specific information.
 ; http://www.php.net/manual/en/configuration.file.php ; http://www.php.net/manual/en/configuration.file.php
Line 1838: Line 1837:
  
 ; php.ini-production contains settings which hold security, performance and ; php.ini-production contains settings which hold security, performance and
-; best practices at it'core. But please be aware, these settings may break+; best practices at its core. But please be aware, these settings may break
 ; compatibility with older or less security conscience applications. We ; compatibility with older or less security conscience applications. We
 ; recommending using the production ini in production and testing environments. ; recommending using the production ini in production and testing environments.
  
-; php.ini-development is very similar to it'production variant, except it's+; php.ini-development is very similar to its production variant, except it's
 ; much more verbose when it comes to errors. We recommending using the ; much more verbose when it comes to errors. We recommending using the
 ; development version only in development environments as errors shown to ; development version only in development environments as errors shown to
Line 1858: Line 1857:
 ;   Default Value: On ;   Default Value: On
 ;   Development Value: Off ;   Development Value: Off
-;   Production Value: On+;   Production Value: Off
  
 ; display_errors ; display_errors
Line 1873: Line 1872:
 ;   Default Value: E_ALL & ~E_NOTICE ;   Default Value: E_ALL & ~E_NOTICE
 ;   Development Value: E_ALL | E_STRICT ;   Development Value: E_ALL | E_STRICT
-;   Production Value: E_ALL ~E_DEPRECATED+;   Production Value: E_ALL ~E_DEPRECATED
  
 ; html_errors ; html_errors
Line 2005: Line 2004:
 ; data to the client. If your application's output exceeds this setting, PHP ; data to the client. If your application's output exceeds this setting, PHP
 ; will send that data in chunks of roughly the size you specify. ; will send that data in chunks of roughly the size you specify.
-; Turning on this setting and managing it'maximum buffer size can yield some+; Turning on this setting and managing its maximum buffer size can yield some
 ; interesting side-effects depending on your application and web server. ; interesting side-effects depending on your application and web server.
 ; You may be able to send headers and cookies after you've already sent output ; You may be able to send headers and cookies after you've already sent output
Line 2017: Line 2016:
 ;   On = Enabled and buffer is unlimited. (Use with caution) ;   On = Enabled and buffer is unlimited. (Use with caution)
 ;   Off = Disabled ;   Off = Disabled
-;   Integer = Enables the buffer and sets it'maximum size in bytes.+;   Integer = Enables the buffer and sets its maximum size in bytes.
 ; Default Value: Off ; Default Value: Off
 ; Development Value: 4096 ; Development Value: 4096
Line 2091: Line 2090:
 ; Default Value: On (Suppress warnings) ; Default Value: On (Suppress warnings)
 ; Development Value: Off (Issue warnings) ; Development Value: Off (Issue warnings)
-; Production Value: On (Suppress warnings)+; Production Value: Off (Issue warnings)
 ; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference ; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
 allow_call_time_pass_reference = Off allow_call_time_pass_reference = Off
Line 2269: Line 2268:
 ; Default Value: E_ALL & ~E_NOTICE ; Default Value: E_ALL & ~E_NOTICE
 ; Development Value: E_ALL | E_STRICT ; Development Value: E_ALL | E_STRICT
-; Production Value: E_ALL ~E_DEPRECATED+; Production Value: E_ALL ~E_DEPRECATED
 ; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting ; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
 error_reporting = E_ALL | E_STRICT error_reporting = E_ALL | E_STRICT
Line 2342: Line 2341:
 ; Development Value: On ; Development Value: On
 ; Production Value: Off ; Production Value: Off
-http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors+http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
 track_errors = On track_errors = On
  
Line 2566: Line 2565:
 ; Directory in which the loadable extensions (modules) reside. ; Directory in which the loadable extensions (modules) reside.
 ; http://www.php.net/manual/en/ini.core.php#ini.extension-dir ; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
-extension_dir = "./"+extension_dir = "./"
  
 ; Whether or not to enable the dl() function.  The dl() function does NOT work ; Whether or not to enable the dl() function.  The dl() function does NOT work
Line 2572: Line 2571:
 ; disabled on them. ; disabled on them.
 ; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl ; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl
-enable_dl = On+enable_dl = Off
  
 ; cgi.force_redirect is necessary to provide security running PHP as a CGI under ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
Line 2595: Line 2594:
 ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
 ; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting ; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
-; this to 1 will cause PHP CGI to fix it'paths to conform to the spec.  A setting+; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
 ; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts ; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
 ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
Line 2688: Line 2687:
 ;   extension=msql.so ;   extension=msql.so
 ; ;
-Note that it should be the name of the module onlyno directory information +... or with a path: 
-needs to go here Specify the location of the extension with the +
-extension_dir directive above.+  extension=/path/to/extension/msql.so 
 +
 +; If you only provide the name of the extension, PHP will look for it in it's 
 +default extension directory.
 ; ;
 ; Windows Extensions ; Windows Extensions
Line 2946: Line 2948:
  
 ; Maximum number of links.  -1 means no limit. ; Maximum number of links.  -1 means no limit.
-; http://us2.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links+; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links
 mysqli.max_links = -1 mysqli.max_links = -1
  
Line 2953: Line 2955:
 ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
 ; at MYSQL_PORT. ; at MYSQL_PORT.
-; http://us2.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port+; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port
 mysqli.default_port = 3306 mysqli.default_port = 3306
  
 ; Default socket name for local MySQL connects.  If empty, uses the built-in ; Default socket name for local MySQL connects.  If empty, uses the built-in
 ; MySQL defaults. ; MySQL defaults.
-; http://us2.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket+; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket
 mysqli.default_socket = mysqli.default_socket =
  
 ; Default host for mysql_connect() (doesn't apply in safe mode). ; Default host for mysql_connect() (doesn't apply in safe mode).
-; http://us2.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host+; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host
 mysqli.default_host = mysqli.default_host =
  
 ; Default user for mysql_connect() (doesn't apply in safe mode). ; Default user for mysql_connect() (doesn't apply in safe mode).
-; http://us2.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user+; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user
 mysqli.default_user = mysqli.default_user =
  
Line 2974: Line 2976:
 ; and reveal this password!  And of course, any users with read access to this ; and reveal this password!  And of course, any users with read access to this
 ; file will be able to reveal the password as well. ; file will be able to reveal the password as well.
-; http://us2.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw+; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw
 mysqli.default_pw = mysqli.default_pw =
  
Line 2984: Line 2986:
 ; Connection: Enables privileged connections using external ; Connection: Enables privileged connections using external
 ; credentials (OCI_SYSOPER, OCI_SYSDBA) ; credentials (OCI_SYSOPER, OCI_SYSDBA)
-; http://us2.php.net/manual/en/oci8.configuration.php#ini.oci8.privileged-connect+; http://www.php.net/manual/en/oci8.configuration.php#ini.oci8.privileged-connect
 ;oci8.privileged_connect = Off ;oci8.privileged_connect = Off
  
 ; Connection: The maximum number of persistent OCI8 connections per ; Connection: The maximum number of persistent OCI8 connections per
 ; process. Using -1 means no limit. ; process. Using -1 means no limit.
-; http://us2.php.net/manual/en/oci8.configuration.php#ini.oci8.max-persistent+; http://www.php.net/manual/en/oci8.configuration.php#ini.oci8.max-persistent
 ;oci8.max_persistent = -1 ;oci8.max_persistent = -1
  
Line 2995: Line 2997:
 ; maintain an idle persistent connection. Using -1 means idle ; maintain an idle persistent connection. Using -1 means idle
 ; persistent connections will be maintained forever. ; persistent connections will be maintained forever.
-; http://us2.php.net/manual/en/oci8.configuration.php#ini.oci8.persistent-timeout+; http://www.php.net/manual/en/oci8.configuration.php#ini.oci8.persistent-timeout
 ;oci8.persistent_timeout = -1 ;oci8.persistent_timeout = -1
  
Line 3002: Line 3004:
 ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
 ; pings completely. ; pings completely.
-; http://us2.php.net/manual/en/oci8.configuration.php#ini.oci8.ping-interval+; http://www.php.net/manual/en/oci8.configuration.php#ini.oci8.ping-interval
 ;oci8.ping_interval = 60 ;oci8.ping_interval = 60
  
Line 3020: Line 3022:
 ; Tuning: This option enables statement caching, and specifies how ; Tuning: This option enables statement caching, and specifies how
 ; many statements to cache. Using 0 disables statement caching. ; many statements to cache. Using 0 disables statement caching.
-; http://us2.php.net/manual/en/oci8.configuration.php#ini.oci8.statement-cache-size+; http://www.php.net/manual/en/oci8.configuration.php#ini.oci8.statement-cache-size
 ;oci8.statement_cache_size = 20 ;oci8.statement_cache_size = 20
  
 ; Tuning: Enables statement prefetching and sets the default number of ; Tuning: Enables statement prefetching and sets the default number of
 ; rows that will be fetched automatically after statement execution. ; rows that will be fetched automatically after statement execution.
-; http://us2.php.net/manual/en/oci8.configuration.php#ini.oci8.default-prefetch+; http://www.php.net/manual/en/oci8.configuration.php#ini.oci8.default-prefetch
 ;oci8.default_prefetch = 100 ;oci8.default_prefetch = 100
  
 ; Compatibility. Using On means oci_close() will not close ; Compatibility. Using On means oci_close() will not close
 ; oci_connect() and oci_new_connect() connections. ; oci_connect() and oci_new_connect() connections.
-; http://us2.php.net/manual/en/oci8.configuration.php#ini.oci8.old-oci-close-semantics+; http://www.php.net/manual/en/oci8.configuration.php#ini.oci8.old-oci-close-semantics
 ;oci8.old_oci_close_semantics = Off ;oci8.old_oci_close_semantics = Off
  
 [PostgresSQL] [PostgresSQL]
 ; Allow or prevent persistent links. ; Allow or prevent persistent links.
-; http://us2.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent+; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent
 pgsql.allow_persistent = On pgsql.allow_persistent = On
  
 ; Detect broken persistent links always with pg_pconnect(). ; Detect broken persistent links always with pg_pconnect().
 ; Auto reset feature requires a little overheads. ; Auto reset feature requires a little overheads.
-; http://us2.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent+; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent
 pgsql.auto_reset_persistent = Off pgsql.auto_reset_persistent = Off
  
 ; Maximum number of persistent links.  -1 means no limit. ; Maximum number of persistent links.  -1 means no limit.
-; http://us2.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent+; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent
 pgsql.max_persistent = -1 pgsql.max_persistent = -1
  
 ; Maximum number of links (persistent+non persistent).  -1 means no limit. ; Maximum number of links (persistent+non persistent).  -1 means no limit.
-; http://us2.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links+; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links
 pgsql.max_links = -1 pgsql.max_links = -1
  
 ; Ignore PostgreSQL backends Notice message or not. ; Ignore PostgreSQL backends Notice message or not.
 ; Notice message logging require a little overheads. ; Notice message logging require a little overheads.
-; http://us2.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice+; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice
 pgsql.ignore_notice = 0 pgsql.ignore_notice = 0
  
 ; Log PostgreSQL backends Noitce message or not. ; Log PostgreSQL backends Noitce message or not.
 ; Unless pgsql.ignore_notice=0, module cannot log notice message. ; Unless pgsql.ignore_notice=0, module cannot log notice message.
-; http://us2.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice+; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice
 pgsql.log_notice = 0 pgsql.log_notice = 0
  
 [Sybase-CT] [Sybase-CT]
 ; Allow or prevent persistent links. ; Allow or prevent persistent links.
-; http://us2.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent+; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent
 sybct.allow_persistent = On sybct.allow_persistent = On
  
 ; Maximum number of persistent links.  -1 means no limit. ; Maximum number of persistent links.  -1 means no limit.
-; http://us2.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent+; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent
 sybct.max_persistent = -1 sybct.max_persistent = -1
  
 ; Maximum number of links (persistent + non-persistent).  -1 means no limit. ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
-; http://us2.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links+; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links
 sybct.max_links = -1 sybct.max_links = -1
  
 ; Minimum server message severity to display. ; Minimum server message severity to display.
-; http://us2.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity+; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity
 sybct.min_server_severity = 10 sybct.min_server_severity = 10
  
 ; Minimum client message severity to display. ; Minimum client message severity to display.
-; http://us2.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity+; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity
 sybct.min_client_severity = 10 sybct.min_client_severity = 10
  
 ; Set per-context timeout ; Set per-context timeout
-; http://us2.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout+; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout
 ;sybct.timeout= ;sybct.timeout=
  
Line 3090: Line 3092:
 [bcmath] [bcmath]
 ; Number of decimal digits for all bcmath functions. ; Number of decimal digits for all bcmath functions.
-; http://us2.php.net/manual/en/bc.configuration.php#ini.bcmath.scale+; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
 bcmath.scale = 0 bcmath.scale = 0
  
 [browscap] [browscap]
-; http://us2.php.net/manual/en/misc.configuration.php#ini.browscap+; http://www.php.net/manual/en/misc.configuration.php#ini.browscap
 ;browscap = extra/browscap.ini ;browscap = extra/browscap.ini
  
 [Session] [Session]
 ; Handler used to store/retrieve data. ; Handler used to store/retrieve data.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.save-handler+; http://www.php.net/manual/en/session.configuration.php#ini.session.save-handler
 session.save_handler = files session.save_handler = files
  
Line 3128: Line 3130:
 ; where MODE is the octal representation of the mode. Note that this ; where MODE is the octal representation of the mode. Note that this
 ; does not overwrite the process's umask. ; does not overwrite the process's umask.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.save-path+; http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
 ;session.save_path = "/tmp" ;session.save_path = "/tmp"
  
 ; Whether to use cookies. ; Whether to use cookies.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.use-cookies+; http://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
 session.use_cookies = 1 session.use_cookies = 1
  
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.cookie-secure+; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
 ;session.cookie_secure = ;session.cookie_secure =
  
Line 3146: Line 3148:
  
 ; Name of the session (used as cookie name). ; Name of the session (used as cookie name).
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.name+; http://www.php.net/manual/en/session.configuration.php#ini.session.name
 session.name = PHPSESSID session.name = PHPSESSID
  
 ; Initialize session on request startup. ; Initialize session on request startup.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.auto-start+; http://www.php.net/manual/en/session.configuration.php#ini.session.auto-start
 session.auto_start = 0 session.auto_start = 0
  
 ; Lifetime in seconds of cookie or, if 0, until browser is restarted. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime+; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
 session.cookie_lifetime = 0 session.cookie_lifetime = 0
  
 ; The path for which the cookie is valid. ; The path for which the cookie is valid.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.cookie-path+; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path
 session.cookie_path = / session.cookie_path = /
  
 ; The domain for which the cookie is valid. ; The domain for which the cookie is valid.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.cookie-domain+; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-domain
 session.cookie_domain = session.cookie_domain =
  
 ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly+; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
 session.cookie_httponly =  session.cookie_httponly = 
  
 ; Handler used to serialize data.  php is the standard serializer of PHP. ; Handler used to serialize data.  php is the standard serializer of PHP.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.serialize-handler+; http://www.php.net/manual/en/session.configuration.php#ini.session.serialize-handler
 session.serialize_handler = php session.serialize_handler = php
  
Line 3182: Line 3184:
 ; Development Value: 1 ; Development Value: 1
 ; Production Value: 1 ; Production Value: 1
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.gc-probability+; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
 session.gc_probability = 1 session.gc_probability = 1
  
Line 3196: Line 3198:
 ; Development Value: 1000 ; Development Value: 1000
 ; Production Value: 1000 ; Production Value: 1000
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.gc-divisor+; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
 session.gc_divisor = 1000 session.gc_divisor = 1000
  
 ; After this number of seconds, stored data will be seen as 'garbage' and ; After this number of seconds, stored data will be seen as 'garbage' and
 ; cleaned up by the garbage collection process. ; cleaned up by the garbage collection process.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime+; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
 session.gc_maxlifetime = 1440 session.gc_maxlifetime = 1440
  
Line 3225: Line 3227:
 ; Development Value: On ; Development Value: On
 ; Production Value: Off ; Production Value: Off
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42+; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42
 session.bug_compat_42 = On session.bug_compat_42 = On
  
Line 3234: Line 3236:
 ; Development Value: On ; Development Value: On
 ; Production Value: Off ; Production Value: Off
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn+; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn
 session.bug_compat_warn = On session.bug_compat_warn = On
  
Line 3240: Line 3242:
 ; HTTP_REFERER has to contain this substring for the session to be ; HTTP_REFERER has to contain this substring for the session to be
 ; considered as valid. ; considered as valid.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.referer-check+; http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check
 session.referer_check = session.referer_check =
  
 ; How many bytes to read from the file. ; How many bytes to read from the file.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.entropy-length+; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
 session.entropy_length = 0 session.entropy_length = 0
  
 ; Specified here to create the session id. ; Specified here to create the session id.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.entropy-file+; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file
 ;session.entropy_file = /dev/urandom ;session.entropy_file = /dev/urandom
 session.entropy_file = session.entropy_file =
  
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.entropy-length+; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
 ;session.entropy_length = 16 ;session.entropy_length = 16
  
 ; Set to {nocache,private,public,} to determine HTTP caching aspects ; Set to {nocache,private,public,} to determine HTTP caching aspects
 ; or leave this empty to avoid sending anti-caching headers. ; or leave this empty to avoid sending anti-caching headers.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.cache-limiter+; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
 session.cache_limiter = nocache session.cache_limiter = nocache
  
 ; Document expires after n minutes. ; Document expires after n minutes.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.cache-expire+; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-expire
 session.cache_expire = 180 session.cache_expire = 180
  
Line 3273: Line 3275:
 ; - User may access your site with the same session ID ; - User may access your site with the same session ID
 ;   always using URL stored in browser's history or bookmarks. ;   always using URL stored in browser's history or bookmarks.
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid+; http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
 session.use_trans_sid = 0 session.use_trans_sid = 0
  
Line 3280: Line 3282:
 ;    (MD5 128 bits) ;    (MD5 128 bits)
 ;    (SHA-1 160 bits) ;    (SHA-1 160 bits)
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.hash-function+; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-function
 session.hash_function = 0 session.hash_function = 0
  
Line 3292: Line 3294:
 ; Development Value: 5 ; Development Value: 5
 ; Production Value: 5 ; Production Value: 5
-; http://us2.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character+; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
 session.hash_bits_per_character = 5 session.hash_bits_per_character = 5
  
Line 3303: Line 3305:
 ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
 ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
-; http://us2.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags+; http://www.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags
 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
  
Line 3360: Line 3362:
 [Assertion] [Assertion]
 ; Assert(expr); active by default. ; Assert(expr); active by default.
-; http://us2.php.net/manual/en/info.configuration.php#ini.assert.active+; http://www.php.net/manual/en/info.configuration.php#ini.assert.active
 ;assert.active = On ;assert.active = On
  
 ; Issue a PHP warning for each failed assertion. ; Issue a PHP warning for each failed assertion.
-; http://us2.php.net/manual/en/info.configuration.php#ini.assert.warning+; http://www.php.net/manual/en/info.configuration.php#ini.assert.warning
 ;assert.warning = On ;assert.warning = On
  
 ; Don't bail out by default. ; Don't bail out by default.
-; http://us2.php.net/manual/en/info.configuration.php#ini.assert.bail+; http://www.php.net/manual/en/info.configuration.php#ini.assert.bail
 ;assert.bail = Off ;assert.bail = Off
  
 ; User-function to be called if an assertion fails. ; User-function to be called if an assertion fails.
-; http://us2.php.net/manual/en/info.configuration.php#ini.assert.callback+; http://www.php.net/manual/en/info.configuration.php#ini.assert.callback
 ;assert.callback = 0 ;assert.callback = 0
  
 ; Eval the expression with current error_reporting().  Set to true if you want ; Eval the expression with current error_reporting().  Set to true if you want
 ; error_reporting(0) around the eval(). ; error_reporting(0) around the eval().
-; http://us2.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval+; http://www.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval
 ;assert.quiet_eval = 0 ;assert.quiet_eval = 0
  
 [COM] [COM]
 ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
-; http://us2.php.net/manual/en/com.configuration.php#ini.com.typelib-file+; http://www.php.net/manual/en/com.configuration.php#ini.com.typelib-file
 ;com.typelib_file = ;com.typelib_file =
  
 ; allow Distributed-COM calls ; allow Distributed-COM calls
-; http://us2.php.net/manual/en/com.configuration.php#ini.com.allow-dcom+; http://www.php.net/manual/en/com.configuration.php#ini.com.allow-dcom
 ;com.allow_dcom = true ;com.allow_dcom = true
  
 ; autoregister constants of a components typlib on com_load() ; autoregister constants of a components typlib on com_load()
-; http://us2.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib+; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib
 ;com.autoregister_typelib = true ;com.autoregister_typelib = true
  
 ; register constants casesensitive ; register constants casesensitive
-; http://us2.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive+; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive
 ;com.autoregister_casesensitive = false ;com.autoregister_casesensitive = false
  
 ; show warnings on duplicate constant registrations ; show warnings on duplicate constant registrations
-; http://us2.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose+; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose
 ;com.autoregister_verbose = true ;com.autoregister_verbose = true
  
 [mbstring] [mbstring]
 ; language for internal character representation. ; language for internal character representation.
-; http://us2.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language+; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language
 ;mbstring.language = Japanese ;mbstring.language = Japanese
  
Line 3409: Line 3411:
 ; Some encoding cannot work as internal encoding. ; Some encoding cannot work as internal encoding.
 ; (e.g. SJIS, BIG5, ISO-2022-*) ; (e.g. SJIS, BIG5, ISO-2022-*)
-; http://us2.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding+; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding
 ;mbstring.internal_encoding = EUC-JP ;mbstring.internal_encoding = EUC-JP
  
 ; http input encoding. ; http input encoding.
-; http://us2.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input+; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input
 ;mbstring.http_input = auto ;mbstring.http_input = auto
  
 ; http output encoding. mb_output_handler must be ; http output encoding. mb_output_handler must be
 ; registered as output buffer to function ; registered as output buffer to function
-; http://us2.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output+; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output
 ;mbstring.http_output = SJIS ;mbstring.http_output = SJIS
  
Line 3426: Line 3428:
 ; Note: Do _not_ use automatic encoding translation for ; Note: Do _not_ use automatic encoding translation for
 ;       portable libs/applications. ;       portable libs/applications.
-; http://us2.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation+; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation
 ;mbstring.encoding_translation = Off ;mbstring.encoding_translation = Off
  
 ; automatic encoding detection order. ; automatic encoding detection order.
 ; auto means ; auto means
-; http://us2.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order+; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order
 ;mbstring.detect_order = auto ;mbstring.detect_order = auto
  
 ; substitute_character used when character cannot be converted ; substitute_character used when character cannot be converted
 ; one from another ; one from another
-; http://us2.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character+; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character
 ;mbstring.substitute_character = none; ;mbstring.substitute_character = none;
  
Line 3447: Line 3449:
 ; 2: Overload str*() functions ; 2: Overload str*() functions
 ; 4: Overload ereg*() functions ; 4: Overload ereg*() functions
-; http://us2.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload+; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload
 ;mbstring.func_overload = 0 ;mbstring.func_overload = 0
  
Line 3454: Line 3456:
  
 [gd] [gd]
-; Tell the jpeg decode to libjpeg warnings and try to create+; Tell the jpeg decode to ignore warnings and try to create
 ; a gd image. The warning will then be displayed as notices ; a gd image. The warning will then be displayed as notices
 ; disabled by default ; disabled by default
-; http://us2.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning+; http://www.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning
 ;gd.jpeg_ignore_warning = 0 ;gd.jpeg_ignore_warning = 0
  
Line 3466: Line 3468:
 ; is used. For the decode settings you can distinguish between motorola and ; is used. For the decode settings you can distinguish between motorola and
 ; intel byte order. A decode setting cannot be empty. ; intel byte order. A decode setting cannot be empty.
-; http://us2.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode+; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
 ;exif.encode_unicode = ISO-8859-15 ;exif.encode_unicode = ISO-8859-15
  
-; http://us2.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola+; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola
 ;exif.decode_unicode_motorola = UCS-2BE ;exif.decode_unicode_motorola = UCS-2BE
  
-; http://us2.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel+; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel
 ;exif.decode_unicode_intel    = UCS-2LE ;exif.decode_unicode_intel    = UCS-2LE
  
-; http://us2.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis+; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis
 ;exif.encode_jis = ;exif.encode_jis =
  
-; http://us2.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola+; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola
 ;exif.decode_jis_motorola = JIS ;exif.decode_jis_motorola = JIS
  
-; http://us2.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel+; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel
 ;exif.decode_jis_intel    = JIS ;exif.decode_jis_intel    = JIS
  
 [Tidy] [Tidy]
 ; The path to a default tidy configuration file to use when using tidy ; The path to a default tidy configuration file to use when using tidy
-; http://us2.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config+; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config
 ;tidy.default_config = /usr/local/lib/php/default.tcfg ;tidy.default_config = /usr/local/lib/php/default.tcfg
  
Line 3492: Line 3494:
 ; WARNING: Do not use this option if you are generating non-html content ; WARNING: Do not use this option if you are generating non-html content
 ; such as dynamic images ; such as dynamic images
-; http://us2.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output+; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output
 tidy.clean_output = Off tidy.clean_output = Off
  
 [soap] [soap]
 ; Enables or disables WSDL caching feature. ; Enables or disables WSDL caching feature.
-; http://us2.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled+; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
 soap.wsdl_cache_enabled=1 soap.wsdl_cache_enabled=1
  
 ; Sets the directory name where SOAP extension will put cache files. ; Sets the directory name where SOAP extension will put cache files.
-; http://us2.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir+; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
 soap.wsdl_cache_dir="/tmp" soap.wsdl_cache_dir="/tmp"
  
 ; (time to live) Sets the number of second while cached file will be used  ; (time to live) Sets the number of second while cached file will be used 
 ; instead of original one. ; instead of original one.
-; http://us2.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl+; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
 soap.wsdl_cache_ttl=86400 soap.wsdl_cache_ttl=86400
  
Line 3519: Line 3521:
  
 </code> </code>
 +
 ===== Changelog ===== ===== Changelog =====
  
Line 3524: Line 3527:
  
 version 1.1 First revision based on comments mainly from the internals list. version 1.1 First revision based on comments mainly from the internals list.
 +
 +version 1.2 A few minor changes based mainly on comments from the internals list.
rfc/newinis.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1