Skip to content

Commit 0fbed6f

Browse files
author
Alexandros Ioannides
authored
Compatibility changes for hestia-php (PHP 7.4)
1 parent c4c4559 commit 0fbed6f

File tree

1 file changed

+64
-62
lines changed

1 file changed

+64
-62
lines changed

src/deb/php/php.ini

Lines changed: 64 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@
108108
; Development Value: E_ALL
109109
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
110110

111-
; html_errors
112-
; Default Value: On
113-
; Development Value: On
114-
; Production value: On
115-
116111
; log_errors
117112
; Default Value: Off
118113
; Development Value: On
@@ -289,6 +284,13 @@ implicit_flush = Off
289284
; callback-function.
290285
unserialize_callback_func =
291286

287+
; The unserialize_max_depth specifies the default depth limit for unserialized
288+
; structures. Setting the depth limit too high may result in stack overflows
289+
; during unserialization. The unserialize_max_depth ini setting can be
290+
; overridden by the max_depth option on individual unserialize() calls.
291+
; A value of 0 disables the depth limit.
292+
;unserialize_max_depth = 4096
293+
292294
; When floats & doubles are serialized, store serialize_precision significant
293295
; digits after the floating point. The default value ensures that when floats
294296
; are decoded with unserialize, the data will remain the same.
@@ -307,7 +309,7 @@ serialize_precision = -1
307309
; This directive allows you to disable certain functions for security reasons.
308310
; It receives a comma-delimited list of function names.
309311
; http://php.net/disable-functions
310-
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,passthru,system,proc_open,popen,show_source,
312+
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,passthru,system,proc_open,popen,show_source,
311313

312314
; This directive allows you to disable certain classes for security reasons.
313315
; It receives a comma-delimited list of class names.
@@ -359,6 +361,12 @@ zend.enable_gc = On
359361
; Default: ""
360362
;zend.script_encoding =
361363

364+
; Allows to include or exclude arguments from stack traces generated for exceptions
365+
; Default: Off
366+
; In production, it is recommended to turn this setting on to prohibit the output
367+
; of sensitive information in stack traces
368+
zend.exception_ignore_args = On
369+
362370
;;;;;;;;;;;;;;;;;
363371
; Miscellaneous ;
364372
;;;;;;;;;;;;;;;;;
@@ -511,7 +519,7 @@ ignore_repeated_errors = Off
511519
ignore_repeated_source = Off
512520

513521
; If this parameter is set to Off, then memory leaks will not be shown (on
514-
; stdout or in the log). This has only effect in a debug compile, and if
522+
; stdout or in the log). This is only effective in a debug compile, and if
515523
; error reporting includes E_WARNING in the allowed list
516524
; http://php.net/report-memleaks
517525
report_memleaks = On
@@ -540,11 +548,8 @@ report_memleaks = On
540548
; error message as HTML for easier reading. This directive controls whether
541549
; the error message is formatted as HTML or not.
542550
; Note: This directive is hardcoded to Off for the CLI SAPI
543-
; Default Value: On
544-
; Development Value: On
545-
; Production value: On
546551
; http://php.net/html-errors
547-
;html_errors = On
552+
html_errors = On
548553

549554
; If html_errors is set to On *and* docref_root is not empty, then PHP
550555
; produces clickable error messages that direct to a page describing the error
@@ -598,6 +603,7 @@ syslog.ident = hestia-php
598603
; ascii (all printable ASCII characters and NL)
599604
; no-ctrl (all characters except control characters)
600605
; all (all characters)
606+
; raw (like "all", but messages are not split at newlines)
601607
; http://php.net/syslog.filter
602608
;syslog.filter = ascii
603609

@@ -668,7 +674,7 @@ register_argc_argv = Off
668674
; first used (Just In Time) instead of when the script starts. If these
669675
; variables are not used within a script, having this directive on will result
670676
; in a performance gain. The PHP directive register_argc_argv must be disabled
671-
; for this directive to have any affect.
677+
; for this directive to have any effect.
672678
; http://php.net/auto-globals-jit
673679
auto_globals_jit = On
674680

@@ -906,13 +912,14 @@ default_socket_timeout = 60
906912
;
907913
;extension=bz2
908914
;extension=curl
915+
;extension=ffi
916+
;extension=ftp
909917
;extension=fileinfo
910918
;extension=gd2
911919
;extension=gettext
912920
;extension=gmp
913921
;extension=intl
914922
;extension=imap
915-
;extension=interbase
916923
;extension=ldap
917924
;extension=mbstring
918925
;extension=exif ; Must be after mbstring as it depends on it
@@ -1127,37 +1134,6 @@ odbc.defaultlrl = 4096
11271134
; http://php.net/odbc.defaultbinmode
11281135
odbc.defaultbinmode = 1
11291136

1130-
[Interbase]
1131-
; Allow or prevent persistent links.
1132-
ibase.allow_persistent = 1
1133-
1134-
; Maximum number of persistent links. -1 means no limit.
1135-
ibase.max_persistent = -1
1136-
1137-
; Maximum number of links (persistent + non-persistent). -1 means no limit.
1138-
ibase.max_links = -1
1139-
1140-
; Default database name for ibase_connect().
1141-
;ibase.default_db =
1142-
1143-
; Default username for ibase_connect().
1144-
;ibase.default_user =
1145-
1146-
; Default password for ibase_connect().
1147-
;ibase.default_password =
1148-
1149-
; Default charset for ibase_connect().
1150-
;ibase.default_charset =
1151-
1152-
; Default timestamp format.
1153-
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
1154-
1155-
; Default date format.
1156-
ibase.dateformat = "%Y-%m-%d"
1157-
1158-
; Default time format.
1159-
ibase.timeformat = "%H:%M:%S"
1160-
11611137
[MySQLi]
11621138

11631139
; Maximum number of persistent links. -1 means no limit.
@@ -1188,11 +1164,11 @@ mysqli.default_port = 3306
11881164
; http://php.net/mysqli.default-socket
11891165
mysqli.default_socket =
11901166

1191-
; Default host for mysql_connect() (doesn't apply in safe mode).
1167+
; Default host for mysqli_connect() (doesn't apply in safe mode).
11921168
; http://php.net/mysqli.default-host
11931169
mysqli.default_host =
11941170

1195-
; Default user for mysql_connect() (doesn't apply in safe mode).
1171+
; Default user for mysqli_connect() (doesn't apply in safe mode).
11961172
; http://php.net/mysqli.default-user
11971173
mysqli.default_user =
11981174

@@ -1422,26 +1398,19 @@ session.cookie_samesite =
14221398
; http://php.net/session.serialize-handler
14231399
session.serialize_handler = php
14241400

1425-
; Defines the probability that the 'garbage collection' process is started
1426-
; on every session initialization. The probability is calculated by using
1427-
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
1428-
; and gc_divisor is the denominator in the equation. Setting this value to 1
1429-
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1430-
; the gc will run on any given request.
1401+
; Defines the probability that the 'garbage collection' process is started on every
1402+
; session initialization. The probability is calculated by using gc_probability/gc_divisor,
1403+
; e.g. 1/100 means there is a 1% chance that the GC process starts on each request.
14311404
; Default Value: 1
14321405
; Development Value: 1
14331406
; Production Value: 1
14341407
; http://php.net/session.gc-probability
14351408
session.gc_probability = 0
14361409

14371410
; Defines the probability that the 'garbage collection' process is started on every
1438-
; session initialization. The probability is calculated by using the following equation:
1439-
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1440-
; session.gc_divisor is the denominator in the equation. Setting this value to 100
1441-
; when the session.gc_probability value is 1 will give you approximately a 1% chance
1442-
; the gc will run on any given request. Increasing this value to 1000 will give you
1443-
; a 0.1% chance the gc will run on any given request. For high volume production servers,
1444-
; this is a more efficient approach.
1411+
; session initialization. The probability is calculated by using gc_probability/gc_divisor,
1412+
; e.g. 1/100 means there is a 1% chance that the GC process starts on each request.
1413+
; For high volume production servers, using a value of 1000 is a more efficient approach.
14451414
; Default Value: 100
14461415
; Development Value: 1000
14471416
; Production Value: 1000
@@ -1719,6 +1688,11 @@ zend.assertions = -1
17191688
; Default: 100000
17201689
;mbstring.regex_stack_limit=100000
17211690

1691+
; This directive specifies maximum retry count for mbstring regular expressions. It is similar
1692+
; to the pcre.backtrack_limit for PCRE.
1693+
; Default: 1000000
1694+
;mbstring.regex_retry_limit=1000000
1695+
17221696
[gd]
17231697
; Tell the jpeg decode to ignore warnings and try to create
17241698
; a gd image. The warning will then be displayed as notices
@@ -1886,6 +1860,10 @@ ldap.max_links = -1
18861860
; errors.
18871861
;opcache.mmap_base=
18881862

1863+
; Facilitates multiple OPcache instances per user (for Windows only). All PHP
1864+
; processes with the same cache ID and user share an OPcache instance.
1865+
;opcache.cache_id=
1866+
18891867
; Enables and sets the second level cache directory.
18901868
; It should improve performance when SHM memory is full, at server restart or
18911869
; SHM reset. The default "" disables file based caching.
@@ -1916,6 +1894,24 @@ opcache.validate_root=1
19161894
; optimizations.
19171895
;opcache.opt_debug_level=0
19181896

1897+
; Specifies a PHP script that is going to be compiled and executed at server
1898+
; start-up.
1899+
; http://php.net/opcache.preload
1900+
;opcache.preload=
1901+
1902+
; Preloading code as root is not allowed for security reasons. This directive
1903+
; facilitates to let the preloading to be run as another user.
1904+
; http://php.net/opcache.preload_user
1905+
;opcache.preload_user=
1906+
1907+
; Prevents caching files that are less than this number of seconds old. It
1908+
; protects from caching of incompletely updated files. In case all file updates
1909+
; on your site are atomic, you may increase performance by setting it to "0".
1910+
;opcache.file_update_protection=2
1911+
1912+
; Absolute path used to store shared lockfiles (for *nix only).
1913+
;opcache.lockfile_path=/tmp
1914+
19191915
[curl]
19201916
; A default value for the CURLOPT_CAINFO option. This is required to be an
19211917
; absolute path.
@@ -1939,6 +1935,12 @@ opcache.validate_root=1
19391935
; SSL stream context option.
19401936
;openssl.capath=
19411937

1942-
; Local Variables:
1943-
; tab-width: 4
1944-
; End:
1938+
[ffi]
1939+
; FFI API restriction. Possible values:
1940+
; "preload" - enabled in CLI scripts and preloaded files (default)
1941+
; "false" - always disabled
1942+
; "true" - always enabled
1943+
;ffi.enable=preload
1944+
1945+
; List of headers files to preload, wildcard patterns allowed.
1946+
;ffi.preload=

0 commit comments

Comments
 (0)