By default, umask is 002 (or 022 on some configs). 
So, mkdir(dir,0777) will set mode to 775 and chmod(file,0666) will set mode to 664. If not, you limit user to a maximum mode of 755, it's not really generic.
It is useful for dev (for manipulate files created by apache) when you haven't root permission but you are in www-data or apache group. 
For the default values, this is to show the way to use it as is. I can change it if you think it is not good.

Thanks a lot for your work. 

Envoyé depuis mon smartphone Sony Xperia™ via le réseau SFR

---- Grégoire Passault a écrit ----

>In Cache.php:
>
>> @@ -29,6 +29,19 @@ class Cache > * cache system directories > */ > protected $prefixSize = 5; > + > + /** > + * Permission mode value of cache directories > + * > + * Default is 0777 for match with default builtin mkdir(). > + * User can use chmod or umask. > + */ > + protected $dirmode = 0777; 
>
>I think 777 is really permissive as default.
>Curiously, the PHP doc indeed says it's mkdir() default but if I do the test I got a 775 directory...
>We should use 775 or 755, don't you think?
>
>—
>Reply to this email directly or view it on GitHub.￼
>