|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71901 mail.force_extra_parameters is not PHP_INI_PERDIR
Submitted: 2016-03-25 17:36 UTC Modified: 2017-10-24 05:12 UTC
Avg. Score:4.0 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:3 (75.0%)
From: slfyst at gmail dot com Assigned: stas (profile)
Status: Assigned Package: Mail related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: slfyst at gmail dot com
New email:
PHP Version: OS:


 [2016-03-25 17:36 UTC] slfyst at gmail dot com
From manual page:

The above page states that mail.force_extra_parameters is changeable by PHP_INI_PERDIR. However I find this not to be the case, it looks like it's php.ini only.

Also, this page states that mail.force_extra_parameters is changeable by php.ini only, which contradicts the above page:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 13:50 UTC]
-Status: Open +Status: Verified -Package: Documentation problem +Package: Mail related -Assigned To: +Assigned To: stas
 [2017-01-28 13:50 UTC]
Actually, mail.force_extra_parameters is declared as
PHP_INI_SYSTEM|PHP_INI_PERDIR[1], but OnChangeMailForceExtra()[2]
prevents it from being changed in .htaccess (not sure whether
changing it in httpd.conf and .user.ini is allowed or not).

The respective restriction has been introduced as of PHP 5.2.0,
with commit cd836153[3].

Stas, can you please clarify whether changing in httpd.conf and
.user.ini is allowed or not, and then assign this ticket to me.

[1] <>
[2] <>
[3] <>
 [2017-10-24 05:10 UTC]
-Status: Verified +Status: Assigned
 [2017-10-24 05:12 UTC]
-Type: Documentation Problem +Type: Bug
 [2020-11-01 14:30 UTC] raymond at steffann dot nl
The change that prevented mail.force_extra_parameters configured from .htaccess
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Mar 26 11:03:44 2023 UTC