]> granicus.if.org Git - php/commitdiff
Fix bug #53089 (php.ini should use portable example of find) by using POSIX
authorAdam Harvey <aharvey@php.net>
Mon, 18 Oct 2010 02:10:29 +0000 (02:10 +0000)
committerAdam Harvey <aharvey@php.net>
Mon, 18 Oct 2010 02:10:29 +0000 (02:10 +0000)
compliant syntax in the suggested find command for cleaning up session files in
the shipped php.ini files.

php.ini-development
php.ini-production

index 3e19eeff7abe7140382673bf28724a7019e0942d..b373929621532eb3660b41d8d0c72e396f138f61 100644 (file)
@@ -1453,7 +1453,7 @@ session.gc_maxlifetime = 1440
 ;       collection through a shell script, cron entry, or some other method.
 ;       For example, the following script would is the equivalent of
 ;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
-;          cd /path/to/sessions; find -cmin +24 | xargs rm
+;          find /path/to/sessions -cmin +24 | xargs rm
 
 ; PHP 4.2 and less have an undocumented feature/bug that allows you to
 ; to initialize a session variable in the global scope.
index 3a38742998ff2fbb2448b6d7699e7a679d26c7c2..0dee0e3492ba8c374bec730c498ba4f3fa31b8ea 100644 (file)
@@ -1461,7 +1461,7 @@ session.gc_maxlifetime = 1440
 ;       collection through a shell script, cron entry, or some other method.
 ;       For example, the following script would is the equivalent of
 ;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
-;          cd /path/to/sessions; find -cmin +24 | xargs rm
+;          find /path/to/sessions -cmin +24 | xargs rm
 
 ; PHP 4.2 and less have an undocumented feature/bug that allows you to
 ; to initialize a session variable in the global scope.