[php-src] Issue #14859: chmod and/or fileperms not ok

From: Date: Sun, 07 Jul 2024 10:32:26 +0000
Subject: [php-src] Issue #14859: chmod and/or fileperms not ok
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247243@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/14859 Author: f1-outsourcing ### Description The following code: ```php $perms = substr(sprintf('%o', fileperms($filePath)), -4); chmod($path,$perms); ``` (perms = 2770 ) Resulted in this output: ``` --ws-w--wT 1 apache ``` But I expected this output instead: ``` -rw-rw----+ 1 apache ``` ### PHP Version php 8.3 ### Operating System _No response_

« previous php.bugs (#247243) next »