From: Adam Harvey Date: Mon, 18 Oct 2010 02:10:29 +0000 (+0000) Subject: Fix bug #53089 (php.ini should use portable example of find) by using POSIX X-Git-Tag: php-5.4.0alpha1~191^2~783 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baa6f7fc7107a4e053d58375e117ef2b5edbf887;p=php 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. --- diff --git a/php.ini-development b/php.ini-development index 3e19eeff7a..b373929621 100644 --- a/php.ini-development +++ b/php.ini-development @@ -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. diff --git a/php.ini-production b/php.ini-production index 3a38742998..0dee0e3492 100644 --- a/php.ini-production +++ b/php.ini-production @@ -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.