Doc #53089 [Opn->Asn]: php.ini should use portable example of find

From: Date: Mon, 18 Oct 2010 02:04:41 +0000
Subject: Doc #53089 [Opn->Asn]: php.ini should use portable example of find
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5232@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53089&edit=1 ID: 53089 Updated by: aharvey@php.net Reported by: php-bugs-2010 at ryandesign dot com Summary: php.ini should use portable example of find -Status: Open +Status: Assigned Type: Documentation Problem Package: Documentation problem PHP Version: 5.3.3 -Assigned To: +Assigned To: aharvey Block user comment: N Previous Comments: ------------------------------------------------------------------------ [2010-10-17 16:48:51] php-bugs-2010 at ryandesign dot com Description: ------------ The sample php.ini files included with PHP, in the section about implementing your own garbage collection if using session subdirectories, advocate running the following command in a crontab: cd /path/to/sessions; find -cmin +24 | xargs rm This doesn't work on Mac OS X; its BSD implementation of find requires that the first argument be the directory to search. It seems to me that there is no need to cd to the directory, nor to pipe to xargs, to accomplish the goal; couldn't it be rewritten: find /path/to/sessions -cmin +24 -delete ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53089&edit=1

« previous php.doc.bugs (#5232) next »