ZF-12047: Zend_Cache_Backend_File cache_file_umask and hashed_directory_umask are not umasks but octal permissions
Description
The documentation and class uses the name "umask" for what is not an umask (see umask(2) man page for the definition : "umask() sets the calling process's file mode creation mask (umask) to mask & 0777"). Rather, the Zend_Cache_Backend_File uses the option "cache_file_umask" to chmod (http://php.net/chmod) the file. In effect this is an octal permission definition rather than a umask.
This is quite misleading.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2012-02-22T23:29:04.000+0000
Indeed. I've updated the documentation (inline and manual) to make note of the fact that the option name contains 'umask' but intent is actually octal file mode:
Thoughts?
Posted by Marc Bennewitz (private) (mabe) on 2012-03-10T10:05:02.000+0000
moved to Zend_Cache
Posted by Marc Bennewitz (private) (mabe) on 2012-03-10T10:59:22.000+0000
Added patch: - added *_perm options - *_umask triggers E_USER_DEPRECATED error and move value to *_perm options
Posted by Marc Bennewitz (private) (mabe) on 2012-03-12T21:29:37.000+0000
fixed for 1.12 in r24677 (trunk)
Posted by Marc Bennewitz (private) (mabe) on 2012-03-12T21:31:00.000+0000
note: triggers E_USER_NOTICE instead of E_USER_DEPRECATED because E_USER_DEPRECATED doesn't exist on PHP < 5.3