Skip to content

Commit a1f2f8f

Browse files
committed
Fixed bug #79080 [ci skip]
Rewrote session.gc_probability and session.gc_divisor INI setting description to be more succint.
1 parent 49cbd23 commit a1f2f8f

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

php.ini-development

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,26 +1421,19 @@ session.cookie_samesite =
14211421
; http://php.net/session.serialize-handler
14221422
session.serialize_handler = php
14231423

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

14361433
; Defines the probability that the 'garbage collection' process is started on every
1437-
; session initialization. The probability is calculated by using the following equation:
1438-
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1439-
; session.gc_divisor is the denominator in the equation. Setting this value to 100
1440-
; when the session.gc_probability value is 1 will give you approximately a 1% chance
1441-
; the gc will run on any given request. Increasing this value to 1000 will give you
1442-
; a 0.1% chance the gc will run on any given request. For high volume production servers,
1443-
; this is a more efficient approach.
1434+
; session initialization. The probability is calculated by using gc_probability/gc_divisor,
1435+
; e.g. 1/100 means there is a 1% chance that the GC process starts on each request.
1436+
; For high volume production servers, using a value of 1000 is a more efficient approach.
14441437
; Default Value: 100
14451438
; Development Value: 1000
14461439
; Production Value: 1000

php.ini-production

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,26 +1423,19 @@ session.cookie_samesite =
14231423
; http://php.net/session.serialize-handler
14241424
session.serialize_handler = php
14251425

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

14381435
; Defines the probability that the 'garbage collection' process is started on every
1439-
; session initialization. The probability is calculated by using the following equation:
1440-
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1441-
; session.gc_divisor is the denominator in the equation. Setting this value to 100
1442-
; when the session.gc_probability value is 1 will give you approximately a 1% chance
1443-
; the gc will run on any given request. Increasing this value to 1000 will give you
1444-
; a 0.1% chance the gc will run on any given request. For high volume production servers,
1445-
; this is a more efficient approach.
1436+
; session initialization. The probability is calculated by using gc_probability/gc_divisor,
1437+
; e.g. 1/100 means there is a 1% chance that the GC process starts on each request.
1438+
; For high volume production servers, using a value of 1000 is a more efficient approach.
14461439
; Default Value: 100
14471440
; Development Value: 1000
14481441
; Production Value: 1000

0 commit comments

Comments
 (0)