Browse Source

Update php.ini

Alexandros Ioannides 7 years ago
parent
commit
39c8d313d9
1 changed files with 55 additions and 58 deletions
  1. 55 58
      src/deb/php/php.ini

+ 55 - 58
src/deb/php/php.ini

@@ -15,7 +15,7 @@
 ; 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. The directory from the --with-config-file-path compile time option, or the
 ; 6. The directory from the --with-config-file-path compile time option, or the
-; Windows directory (C:\windows or C:\winnt)
+; Windows directory (usually C:\windows)
 ; See the PHP docs for more specific information.
 ; See the PHP docs for more specific information.
 ; http://php.net/configuration.file
 ; http://php.net/configuration.file
 
 
@@ -58,9 +58,9 @@
 ; An empty string can be denoted by simply not writing anything after the equal
 ; An empty string can be denoted by simply not writing anything after the equal
 ; sign, or by using the None keyword:
 ; sign, or by using the None keyword:
 
 
-;  foo =         ; sets foo to an empty string
-;  foo = None    ; sets foo to an empty string
-;  foo = "None"  ; sets foo to the string 'None'
+; foo =         ; sets foo to an empty string
+; foo = None    ; sets foo to an empty string
+; foo = "None"  ; sets foo to the string 'None'
 
 
 ; If you use constants in your value, and these constants belong to a
 ; If you use constants in your value, and these constants belong to a
 ; dynamically loaded extension (either a PHP extension or a Zend extension),
 ; dynamically loaded extension (either a PHP extension or a Zend extension),
@@ -83,7 +83,7 @@
 ; development version only in development environments, as errors shown to
 ; development version only in development environments, as errors shown to
 ; application users can inadvertently leak otherwise secure information.
 ; application users can inadvertently leak otherwise secure information.
 
 
-; This is php.ini-production INI file.
+; This is the php.ini-production INI file.
 
 
 ;;;;;;;;;;;;;;;;;;;
 ;;;;;;;;;;;;;;;;;;;
 ; Quick Reference ;
 ; Quick Reference ;
@@ -169,7 +169,7 @@
 ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
 ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
 ;user_ini.filename = ".user.ini"
 ;user_ini.filename = ".user.ini"
 
 
-; To disable this feature set this option to empty value
+; To disable this feature set this option to an empty value
 ;user_ini.filename =
 ;user_ini.filename =
 
 
 ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
 ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
@@ -248,7 +248,7 @@ output_buffering = 4096
 ; Production Value: "form="
 ; Production Value: "form="
 ;url_rewriter.tags
 ;url_rewriter.tags
 
 
-; URL rewriter will not rewrites absolute URL nor form by default. To enable
+; URL rewriter will not rewrite absolute URL nor form by default. To enable
 ; absolute URL rewrite, allowed hosts must be defined at RUNTIME.
 ; absolute URL rewrite, allowed hosts must be defined at RUNTIME.
 ; Refer to session.trans_sid_hosts for more details.
 ; Refer to session.trans_sid_hosts for more details.
 ; Default Value: ""
 ; Default Value: ""
@@ -593,6 +593,16 @@ syslog.ident = hestia-php
 ; the message. Only used when error_log is set to syslog.
 ; the message. Only used when error_log is set to syslog.
 ;syslog.facility = user
 ;syslog.facility = user
 
 
+; Set this to disable filtering control characters (the default).
+; Some loggers only accept NVT-ASCII, others accept anything that's not
+; control characters. If your logger accepts everything, then no filtering
+; is needed at all.
+; Allowed values are:
+;   ascii (only base ASCII characters)
+;   no_ctrl (all characters except control characters)
+;   all (all characters)
+;syslog.filter = ascii
+
 ;windows.show_crt_warning
 ;windows.show_crt_warning
 ; Default value: 0
 ; Default value: 0
 ; Development value: 0
 ; Development value: 0
@@ -742,13 +752,13 @@ user_dir =
 
 
 ; Directory in which the loadable extensions (modules) reside.
 ; Directory in which the loadable extensions (modules) reside.
 ; http://php.net/extension-dir
 ; http://php.net/extension-dir
-; extension_dir = "./"
+;extension_dir = "./"
 ; On windows:
 ; On windows:
-; extension_dir = "ext"
+;extension_dir = "ext"
 
 
 ; Directory where the temporary files should be placed.
 ; Directory where the temporary files should be placed.
 ; Defaults to the system default (see sys_get_temp_dir)
 ; Defaults to the system default (see sys_get_temp_dir)
-; sys_temp_dir = "/tmp"
+;sys_temp_dir = "/tmp"
 
 
 ; 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
 ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
 ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
@@ -785,10 +795,9 @@ enable_dl = Off
 
 
 ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
 ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
 ; of the web tree and people will not be able to circumvent .htaccess security.
 ; of the web tree and people will not be able to circumvent .htaccess security.
-; http://php.net/cgi.dicard-path
 ;cgi.discard_path=1
 ;cgi.discard_path=1
 
 
-; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
+; FastCGI under IIS supports the ability to impersonate
 ; security tokens of the calling client.  This allows IIS to define the
 ; security tokens of the calling client.  This allows IIS to define the
 ; security context that the request runs under.  mod_fastcgi under Apache
 ; security context that the request runs under.  mod_fastcgi under Apache
 ; does not currently support this feature (03/17/2002)
 ; does not currently support this feature (03/17/2002)
@@ -928,6 +937,7 @@ default_socket_timeout = 60
 
 
 ;extension=soap
 ;extension=soap
 ;extension=sockets
 ;extension=sockets
+;extension=sodium
 ;extension=sqlite3
 ;extension=sqlite3
 ;extension=tidy
 ;extension=tidy
 ;extension=xmlrpc
 ;extension=xmlrpc
@@ -968,7 +978,7 @@ date.timezone = UTC
 [iconv]
 [iconv]
 ; Use of this INI entry is deprecated, use global input_encoding instead.
 ; Use of this INI entry is deprecated, use global input_encoding instead.
 ; If empty, default_charset or input_encoding or iconv.input_encoding is used.
 ; If empty, default_charset or input_encoding or iconv.input_encoding is used.
-; The precedence is: default_charset < intput_encoding < iconv.input_encoding
+; The precedence is: default_charset < input_encoding < iconv.input_encoding
 ;iconv.input_encoding =
 ;iconv.input_encoding =
 
 
 ; Use of this INI entry is deprecated, use global internal_encoding instead.
 ; Use of this INI entry is deprecated, use global internal_encoding instead.
@@ -995,19 +1005,19 @@ date.timezone = UTC
 ;sqlite3.extension_dir =
 ;sqlite3.extension_dir =
 
 
 [Pcre]
 [Pcre]
-;PCRE library backtracking limit.
+; PCRE library backtracking limit.
 ; http://php.net/pcre.backtrack-limit
 ; http://php.net/pcre.backtrack-limit
 ;pcre.backtrack_limit=100000
 ;pcre.backtrack_limit=100000
 
 
-;PCRE library recursion limit.
-;Please note that if you set this value to a high number you may consume all
-;the available process stack and eventually crash PHP (due to reaching the
-;stack size limit imposed by the Operating System).
+; PCRE library recursion limit.
+; Please note that if you set this value to a high number you may consume all
+; the available process stack and eventually crash PHP (due to reaching the
+; stack size limit imposed by the Operating System).
 ; http://php.net/pcre.recursion-limit
 ; http://php.net/pcre.recursion-limit
 ;pcre.recursion_limit=100000
 ;pcre.recursion_limit=100000
 
 
-;Enables or disables JIT compilation of patterns. This requires the PCRE
-;library to be compiled with JIT support.
+; Enables or disables JIT compilation of patterns. This requires the PCRE
+; library to be compiled with JIT support.
 ;pcre.jit=1
 ;pcre.jit=1
 
 
 [Pdo]
 [Pdo]
@@ -1018,13 +1028,8 @@ date.timezone = UTC
 ;pdo_odbc.db2_instance_name
 ;pdo_odbc.db2_instance_name
 
 
 [Pdo_mysql]
 [Pdo_mysql]
-; If mysqlnd is used: Number of cache slots for the internal result set cache
-; http://php.net/pdo_mysql.cache_size
-pdo_mysql.cache_size = 2000
-
 ; 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://php.net/pdo_mysql.default-socket
 pdo_mysql.default_socket=
 pdo_mysql.default_socket=
 
 
 [Phar]
 [Phar]
@@ -1106,8 +1111,6 @@ odbc.defaultlrl = 4096
 ; http://php.net/odbc.defaultbinmode
 ; http://php.net/odbc.defaultbinmode
 odbc.defaultbinmode = 1
 odbc.defaultbinmode = 1
 
 
-;birdstep.max_links = -1
-
 [Interbase]
 [Interbase]
 ; Allow or prevent persistent links.
 ; Allow or prevent persistent links.
 ibase.allow_persistent = 1
 ibase.allow_persistent = 1
@@ -1157,10 +1160,6 @@ mysqli.allow_persistent = On
 ; http://php.net/mysqli.max-links
 ; http://php.net/mysqli.max-links
 mysqli.max_links = -1
 mysqli.max_links = -1
 
 
-; If mysqlnd is used: Number of cache slots for the internal result set cache
-; http://php.net/mysqli.cache_size
-mysqli.cache_size = 2000
-
 ; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
 ; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
 ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
 ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
 ; 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
@@ -1195,12 +1194,10 @@ mysqli.reconnect = Off
 [mysqlnd]
 [mysqlnd]
 ; Enable / Disable collection of general statistics by mysqlnd which can be
 ; Enable / Disable collection of general statistics by mysqlnd which can be
 ; used to tune and monitor MySQL operations.
 ; used to tune and monitor MySQL operations.
-; http://php.net/mysqlnd.collect_statistics
 mysqlnd.collect_statistics = On
 mysqlnd.collect_statistics = On
 
 
 ; Enable / Disable collection of memory usage statistics by mysqlnd which can be
 ; Enable / Disable collection of memory usage statistics by mysqlnd which can be
 ; used to tune and monitor MySQL operations.
 ; used to tune and monitor MySQL operations.
-; http://php.net/mysqlnd.collect_memory_statistics
 mysqlnd.collect_memory_statistics = Off
 mysqlnd.collect_memory_statistics = Off
 
 
 ; Records communication from all extensions using mysqlnd to the specified log
 ; Records communication from all extensions using mysqlnd to the specified log
@@ -1209,29 +1206,23 @@ mysqlnd.collect_memory_statistics = Off
 ;mysqlnd.debug =
 ;mysqlnd.debug =
 
 
 ; Defines which queries will be logged.
 ; Defines which queries will be logged.
-; http://php.net/mysqlnd.log_mask
 ;mysqlnd.log_mask = 0
 ;mysqlnd.log_mask = 0
 
 
 ; Default size of the mysqlnd memory pool, which is used by result sets.
 ; Default size of the mysqlnd memory pool, which is used by result sets.
-; http://php.net/mysqlnd.mempool_default_size
 ;mysqlnd.mempool_default_size = 16000
 ;mysqlnd.mempool_default_size = 16000
 
 
 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
-; http://php.net/mysqlnd.net_cmd_buffer_size
 ;mysqlnd.net_cmd_buffer_size = 2048
 ;mysqlnd.net_cmd_buffer_size = 2048
 
 
 ; Size of a pre-allocated buffer used for reading data sent by the server in
 ; Size of a pre-allocated buffer used for reading data sent by the server in
 ; bytes.
 ; bytes.
-; http://php.net/mysqlnd.net_read_buffer_size
 ;mysqlnd.net_read_buffer_size = 32768
 ;mysqlnd.net_read_buffer_size = 32768
 
 
 ; Timeout for network requests in seconds.
 ; Timeout for network requests in seconds.
-; http://php.net/mysqlnd.net_read_timeout
 ;mysqlnd.net_read_timeout = 31536000
 ;mysqlnd.net_read_timeout = 31536000
 
 
 ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA
 ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA
 ; key.
 ; key.
-; http://php.net/mysqlnd.sha256_server_public_key
 ;mysqlnd.sha256_server_public_key =
 ;mysqlnd.sha256_server_public_key =
 
 
 [OCI8]
 [OCI8]
@@ -1356,13 +1347,14 @@ session.save_handler = files
 ; 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://php.net/session.save-path
 ; http://php.net/session.save-path
-;session.save_path = "/tmp"
+session.save_path = "/tmp"
 
 
 ; Whether to use strict session mode.
 ; Whether to use strict session mode.
-; Strict session mode does not accept uninitialized session ID and regenerate
-; session ID if browser sends uninitialized session ID. Strict mode protects
-; applications from session fixation via session adoption vulnerability. It is
-; disabled by default for maximum compatibility, but enabling it is encouraged.
+; Strict session mode does not accept an uninitialized session ID, and
+; regenerates the session ID if the browser sends an uninitialized session ID.
+; Strict mode protects applications from session fixation via a session adoption
+; vulnerability. It is disabled by default for maximum compatibility, but
+; enabling it is encouraged.
 ; https://wiki.php.net/rfc/strict_sessions
 ; https://wiki.php.net/rfc/strict_sessions
 session.use_strict_mode = 0
 session.use_strict_mode = 0
 
 
@@ -1400,11 +1392,17 @@ session.cookie_path = /
 ; http://php.net/session.cookie-domain
 ; http://php.net/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://php.net/session.cookie-httponly
 ; http://php.net/session.cookie-httponly
 session.cookie_httponly =
 session.cookie_httponly =
 
 
-; Handler used to serialize data.  php is the standard serializer of PHP.
+; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF)
+; Current valid values are "Lax" or "Strict"
+; https://tools.ietf.org/html/draft-west-first-party-cookies-07
+session.cookie_samesite =
+
+; Handler used to serialize data. php is the standard serializer of PHP.
 ; http://php.net/session.serialize-handler
 ; http://php.net/session.serialize-handler
 session.serialize_handler = php
 session.serialize_handler = php
 
 
@@ -1413,7 +1411,7 @@ session.serialize_handler = php
 ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
 ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
 ; and gc_divisor is the denominator in the equation. Setting this value to 1
 ; and gc_divisor is the denominator in the equation. Setting this value to 1
 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
-; the gc will run on any give request.
+; the gc will run on any given request.
 ; Default Value: 1
 ; Default Value: 1
 ; Development Value: 1
 ; Development Value: 1
 ; Production Value: 1
 ; Production Value: 1
@@ -1423,10 +1421,10 @@ session.gc_probability = 0
 ; Defines the probability that the 'garbage collection' process is started on every
 ; Defines the probability that the 'garbage collection' process is started on every
 ; session initialization. The probability is calculated by using the following equation:
 ; session initialization. The probability is calculated by using the following equation:
 ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
 ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
-; session.gc_divisor is the denominator in the equation. Setting this value to 1
-; when the session.gc_divisor value is 100 will give you approximately a 1% chance
-; the gc will run on any give request. Increasing this value to 1000 will give you
-; a 0.1% chance the gc will run on any give request. For high volume production servers,
+; session.gc_divisor is the denominator in the equation. Setting this value to 100
+; when the session.gc_probability value is 1 will give you approximately a 1% chance
+; the gc will run on any given request. Increasing this value to 1000 will give you
+; a 0.1% chance the gc will run on any given request. For high volume production servers,
 ; this is a more efficient approach.
 ; this is a more efficient approach.
 ; Default Value: 100
 ; Default Value: 100
 ; Development Value: 1000
 ; Development Value: 1000
@@ -1496,7 +1494,7 @@ session.sid_length = 26
 session.trans_sid_tags = "a=href,area=href,frame=src,form="
 session.trans_sid_tags = "a=href,area=href,frame=src,form="
 
 
 ; URL rewriter does not rewrite absolute URLs by default.
 ; URL rewriter does not rewrite absolute URLs by default.
-; To enable rewrites for absolute pathes, target hosts must be specified
+; To enable rewrites for absolute paths, target hosts must be specified
 ; at RUNTIME. i.e. use ini_set()
 ; at RUNTIME. i.e. use ini_set()
 ; <form> tags is special. PHP will check action attribute's URL regardless
 ; <form> tags is special. PHP will check action attribute's URL regardless
 ; of session.trans_sid_tags setting.
 ; of session.trans_sid_tags setting.
@@ -1585,7 +1583,7 @@ zend.assertions = -1
 ; http://php.net/assert.active
 ; http://php.net/assert.active
 ;assert.active = On
 ;assert.active = On
 
 
-; Throw an AssertationException on failed assertions
+; Throw an AssertionError on failed assertions
 ; http://php.net/assert.exception
 ; http://php.net/assert.exception
 ;assert.exception = On
 ;assert.exception = On
 
 
@@ -1615,7 +1613,7 @@ zend.assertions = -1
 ; http://php.net/com.allow-dcom
 ; http://php.net/com.allow-dcom
 ;com.allow_dcom = true
 ;com.allow_dcom = true
 
 
-; autoregister constants of a components typlib on com_load()
+; autoregister constants of a component's typlib on com_load()
 ; http://php.net/com.autoregister-typelib
 ; http://php.net/com.autoregister-typelib
 ;com.autoregister_typelib = true
 ;com.autoregister_typelib = true
 
 
@@ -1646,9 +1644,9 @@ zend.assertions = -1
 
 
 ; Use of this INI entry is deprecated, use global input_encoding instead.
 ; Use of this INI entry is deprecated, use global input_encoding instead.
 ; http input encoding.
 ; http input encoding.
-; mbstring.encoding_traslation = On is needed to use this setting.
+; mbstring.encoding_translation = On is needed to use this setting.
 ; If empty, default_charset or input_encoding or mbstring.input is used.
 ; If empty, default_charset or input_encoding or mbstring.input is used.
-; The precedence is: default_charset < intput_encoding < mbsting.http_input
+; The precedence is: default_charset < input_encoding < mbsting.http_input
 ; http://php.net/mbstring.http-input
 ; http://php.net/mbstring.http-input
 ;mbstring.http_input =
 ;mbstring.http_input =
 
 
@@ -1817,9 +1815,8 @@ ldap.max_links = -1
 
 
 ; A bitmask, where each bit enables or disables the appropriate OPcache
 ; A bitmask, where each bit enables or disables the appropriate OPcache
 ; passes
 ; passes
-;opcache.optimization_level=0xffffffff
+;opcache.optimization_level=0x7FFFBFFF
 
 
-;opcache.inherited_hack=1
 ;opcache.dups_fix=0
 ;opcache.dups_fix=0
 
 
 ; The location of the OPcache blacklist file (wildcards allowed).
 ; The location of the OPcache blacklist file (wildcards allowed).