cvs: pear /Cache_Lite Lite.php

From: Date: Sat, 14 May 2005 09:47:24 +0000
Subject: cvs: pear /Cache_Lite Lite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31850@lists.php.net to get a copy of this message
fab Sat May 14 05:47:24 2005 EDT Modified files: /pear/Cache_Lite Lite.php Log: Request #4261 : umask on mkdir with hashedDirectoryLevel - Using Cache_Lite with hashedDirectoryLevel, permittion of the created directory was 0700 fixed. - The permittion of cache directory is now referred to the umask value of the OS. (thanks to yuw at php dot net) http://cvs.php.net/diff.php/pear/Cache_Lite/Lite.php?r1=1.26&r2=1.27&ty=u Index: pear/Cache_Lite/Lite.php diff -u pear/Cache_Lite/Lite.php:1.26 pear/Cache_Lite/Lite.php:1.27 --- pear/Cache_Lite/Lite.php:1.26 Sat May 14 05:36:42 2005 +++ pear/Cache_Lite/Lite.php Sat May 14 05:47:23 2005 @@ -19,7 +19,7 @@ * * @package Cache_Lite * @category Caching -* @version $Id: Lite.php,v 1.26 2005/05/14 09:36:42 fab Exp $ +* @version $Id: Lite.php,v 1.27 2005/05/14 09:47:23 fab Exp $ * @author Fabien MARTY <fab@php.net> */ @@ -681,7 +681,7 @@ $root = $this->_cacheDir; for ($i=0 ; $i<$this->_hashedDirectoryLevel ; $i++) { $root = $root . 'cache_' . substr($hash, 0, $i + 1) . '/'; - @mkdir($root, 0700); + @mkdir($root, umask()); } $try = 2; } else {

« previous php.pear.cvs (#31850) next »