Open
Description
Description
Logs created by PHP's error_log INI setting have the correct mode but the error_log() function appears to ignore the error_log_mode setting. I've tried setting error_log_mode using ini_set() and as a PHP-FPM php_admin_value.
The following code:
<?php
ini_set('error_log_mode', '0o200');
error_log('Something went wrong', 3, 'exceptions.log');
Resulted in this output:
-rw-r--r--. 1 apache apache 20 Nov 24 23:07 exceptions.log
But I expected this output instead:
--w-------. 1 apache apache 20 Nov 24 23:07 exceptions.log
PHP Version
PHP 8.2.13
Operating System
Rocky Linux 9.2 (Blue Onyx)