Bug #39023
closedoctdec() for mkdir() wrappers?
0%
Description
We are running a TYPO3 4.7.1 instance on a NFS-loadbalanced machine. Due to NFS, the mounted permissions are a bit "wacky", because everything remotely is mounted as nobody/nogroup with full read/write permissions.
However, TYPO3 tries to employ a permission bitmask, which often yielded a "cannot create directory" for us, even though the directory was created (but the bitmask cannot be applied).
When checking t3lib/class.t3lib/class.t3lib_div.php, I noticed that the configured $GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask'] variables (and related ones) get passed to octdec() before getting to the PHP mkdir/chmod function. According to the PHP manual, those functions require oct input, not dec.
Why is this used? We removed all occurrences of the octdec() function, so that the actual bitmask (0777 / 0666) is passed, and this seems to work.