Skip to content

Commit 3a238cc

Browse files
committed
post_max_size = 8M session.upload_progress.enabled=0 fatal_error_backtraces=0 ; php 8.5 only
1 parent 5b2bf02 commit 3a238cc

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎php82-apache2/conf/php.ini‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ session.hash_bits_per_character = 6
1313
; The defaults for timezone is Europe/Amsterdam and the PHP_MEMORY_LIMIT=128m
1414
; Override them when starting your container if necessary
1515
date.timezone = ${TZ}
16-
memory_limit = ${PHP_MEMORY_LIMIT}
16+
; see below
17+
;memory_limit = ${PHP_MEMORY_LIMIT}
1718
disable_functions = exec,passthru,shell_exec,system,popen,show_source,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
1819
enable_dl = Off
1920
allow_url_fopen = Off
21+
22+
; partial mitigation for https://www.php.net/archive/2026.php#2026-10-21-5
23+
memory_limit = -1
24+
post_max_size = 8M
25+
session.upload_progress.enabled = 0

‎php85-apache2/conf/php.ini‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ session.hash_bits_per_character = 6
1313
; The defaults for timezone is Europe/Amsterdam and the PHP_MEMORY_LIMIT=128m
1414
; Override them when starting your container if necessary
1515
date.timezone = ${TZ}
16-
memory_limit = ${PHP_MEMORY_LIMIT}
16+
; see below
17+
;memory_limit = ${PHP_MEMORY_LIMIT}
1718
disable_functions = exec,passthru,shell_exec,system,popen,show_source,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
1819
enable_dl = Off
1920
allow_url_fopen = Off
21+
22+
; partial mitigation for https://www.php.net/archive/2026.php#2026-10-21-5
23+
memory_limit = -1
24+
post_max_size = 8M
25+
session.upload_progress.enabled = 0
26+
fatal_error_backtraces = 0

0 commit comments

Comments
 (0)