Disable GC in ini files
authorAthos Ribeiro <athos.ribeiro@canonical.com>
Sat, 20 Jan 2024 12:58:24 +0000 (13:58 +0100)
committerOndřej Surý <ondrej@debian.org>
Thu, 11 Apr 2024 20:30:26 +0000 (22:30 +0200)
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831752
Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/php7.3/+bug/1772915
Forwarded: not-needed
Last-Update: 2024-01-19

This is disabled in the Debian packages due to the strict permissions on
/var/lib/php. Instead, GC is performed through /etc/cron.d/php, which uses the
session.gc_maxlifetime setting.
Last-Update: 2024-01-19

Gbp-Pq: Name 0047-Disable-garbage-collection-routine.patch

php.ini-development
php.ini-production

index 634665c35076945b9ac3a823de11c4b8db068c7c..29bab499c0c417d2fdcd8bc9467e2b7ad33e0af5 100644 (file)
@@ -1442,7 +1442,12 @@ session.serialize_handler = php
 ; Development Value: 1
 ; Production Value: 1
 ; https://php.net/session.gc-probability
-session.gc_probability = 1
+; Debian Default Value: 0
+; This is disabled in the Debian packages due to the strict permissions
+; on /var/lib/php. Instead, GC is performed through /etc/cron.d/php,
+; which uses the session.gc_maxlifetime setting. Please, check
+; /usr/share/doc/php8.2-common/README.Debian.gz for further reference.
+session.gc_probability = 0
 
 ; Defines the probability that the 'garbage collection' process is started on every
 ; session initialization. The probability is calculated by using gc_probability/gc_divisor,
index 25770435af5658bff91b8c91e1686a378d337cd7..52701351133f901f3c4d837a0c6590ada9d391e4 100644 (file)
@@ -1438,7 +1438,12 @@ session.serialize_handler = php
 ; Development Value: 1
 ; Production Value: 1
 ; https://php.net/session.gc-probability
-session.gc_probability = 1
+; Debian Default Value: 0
+; This is disabled in the Debian packages due to the strict permissions
+; on /var/lib/php. Instead, GC is performed through /etc/cron.d/php,
+; which uses the session.gc_maxlifetime setting. Please, check
+; /usr/share/doc/php8.2-common/README.Debian.gz for further reference.
+session.gc_probability = 0
 
 ; Defines the probability that the 'garbage collection' process is started on every
 ; session initialization. The probability is calculated by using gc_probability/gc_divisor,