Re: [SMARTY] Does smarty creating hidden files?
| From: | messju mohr | Date: | Thu, 11 Dec 2003 20:34:27 +0000 |
| Subject: | Re: [SMARTY] Does smarty creating hidden files? | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10672@lists.php.net to get a copy of this message | ||
On Thu, Dec 11, 2003 at 01:13:27PM -0500, Gerard Samuel wrote:
> On Thursday 11 December 2003 06:28 am, messju mohr wrote:
> > $smarty->_file_perms , $smarty->_dir_perms and umask() need to be set
> > accordingly.
> >
>
> I didn't know these class vars were available before. Ill make use of them.
> But while grepping Smarty 2.6.0 code, I didn't come across any php umask()
> functions.
smarty does mkdir($dirname, $this->_dir_perms) . but that doesn't mean
the directory get's $_dir_perms as permissions. they are mangled
through the current umask(). see: http://php.net/manual/en/function.mkdir.php
$_file_perms are applied literally, AFAIK.
> Is there a reason for this?
> IMHO, it should be used when making directories/files,
> as one cannot really tell whether a server's www shell settings are consistent
> across different server installations when creating files/folders and
> expecting the results to be uniformed.
>
> Its just a thought, and in no way a major deal for me.
> Thanks.