Skip to content

Commit baa6f7f

Browse files
committed
Fix bug #53089 (php.ini should use portable example of find) by using POSIX
compliant syntax in the suggested find command for cleaning up session files in the shipped php.ini files.
1 parent c88dbc2 commit baa6f7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php.ini-development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ session.gc_maxlifetime = 1440
14531453
; collection through a shell script, cron entry, or some other method.
14541454
; For example, the following script would is the equivalent of
14551455
; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
1456-
; cd /path/to/sessions; find -cmin +24 | xargs rm
1456+
; find /path/to/sessions -cmin +24 | xargs rm
14571457

14581458
; PHP 4.2 and less have an undocumented feature/bug that allows you to
14591459
; to initialize a session variable in the global scope.

php.ini-production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ session.gc_maxlifetime = 1440
14611461
; collection through a shell script, cron entry, or some other method.
14621462
; For example, the following script would is the equivalent of
14631463
; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
1464-
; cd /path/to/sessions; find -cmin +24 | xargs rm
1464+
; find /path/to/sessions -cmin +24 | xargs rm
14651465

14661466
; PHP 4.2 and less have an undocumented feature/bug that allows you to
14671467
; to initialize a session variable in the global scope.

0 commit comments

Comments
 (0)