[php-src] Issue #10095: mail.force_extra_parameters

From: Date: Tue, 13 Dec 2022 12:08:25 +0000
Subject: [php-src] Issue #10095: mail.force_extra_parameters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243125@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10095 Author: leonardchallis ### Description The following code: ```php <?php phpinfo(); ``` With a .user.ini in the same directory as document root containing: ``` mail.force_extra_parameters="-f me@mydomain.com" mail.log="/tmp/dmail.log" ``` Resulted in this output: ``` ... mail.force_extra_parameters | no value | no value mail.log | /tmp/dmail.log | no value ... ``` But I expected this output instead: ``` ... mail.force_extra_parameters | -f me@mydomain.com | no value mail.log | /tmp/dmail.log | no value ... ``` Even though both mail.force_extra_parameters and mail.log are [PHP_INI_SYSTEM|PHP_INI_PERDIR](https://www.php.net/manual/en/ini.list.php). **Note:** This is with php8.1-fpm - but I have tried with php7.4-fpm too. With mod_php I have tried php_admin_value with the mail.force_extra_parameters and it _does_ work. ### PHP Version PHP 8.2.0 ### Operating System Ubuntu 20.0.4

« previous php.bugs (#243125) next »