Doc #53089 [NEW]: php.ini should use portable example of find

From: Date: Sun, 17 Oct 2010 14:48:52 +0000
Subject: Doc #53089 [NEW]: php.ini should use portable example of find
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5229@lists.php.net to get a copy of this message
From: Operating system: PHP version: 5.3.3 Package: Documentation problem Bug Type: Documentation Problem Bug description:php.ini should use portable example of find 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 bug report at http://bugs.php.net/bug.php?id=53089&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53089&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53089&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53089&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53089&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53089&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53089&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53089&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53089&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53089&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53089&r=support Expected behavior: http://bugs.php.net/fix.php?id=53089&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53089&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53089&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53089&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53089&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53089&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53089&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53089&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53089&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53089&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53089&r=mysqlcfg

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