[doc-en] master: Document the restrictions of mail.log and mail.force_extra_parameters in .user.ini and .htaccess (#6138)

From: Date: Tue, 24 Nov 2026 10:42:34 +0000
Subject: [doc-en] master: Document the restrictions of mail.log and mail.force_extra_parameters in .user.ini and .htaccess (#6138)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-24005@lists.php.net to get a copy of this message
Author: Louis-Arnaud (lacatoire) Committer: GitHub (web-flow) Pusher: lacatoire Date: 2026-11-24T11:42:30+01:00 Commit: https://github.com/php/doc-en/commit/f1679e6cd7101b685a73dba3f65636bfbc9059b4 Raw diff: https://github.com/php/doc-en/commit/f1679e6cd7101b685a73dba3f65636bfbc9059b4.diff Document the restrictions of mail.log and mail.force_extra_parameters in .user.ini and .htaccess (#6138) * Document the restrictions of mail.log and mail.force_extra_parameters in .user.ini and .htaccess * Use simpara for the paragraph of openlog() that has only inline content * Remove the trailing space of the line touched by the previous commit Changed paths: M reference/mail/functions/mail.xml M reference/mail/ini.xml M reference/network/functions/openlog.xml Diff: diff --git a/reference/mail/functions/mail.xml b/reference/mail/functions/mail.xml index bc66306f6c9b..ae63b49fc58a 100644 --- a/reference/mail/functions/mail.xml +++ b/reference/mail/functions/mail.xml @@ -136,6 +136,10 @@ $text = str_replace("\n.", "\n..", $text); this can be used to set the envelope sender address when using sendmail with the <literal>-f</literal> sendmail option. </para> + <simpara> + If the <link linkend="ini.mail.force_extra_parameters">mail.force_extra_parameters</link> + configuration setting is set, its value is used instead of this parameter. + </simpara> <para> This parameter is escaped by <function>escapeshellcmd</function> internally to prevent command execution. <function>escapeshellcmd</function> prevents diff --git a/reference/mail/ini.xml b/reference/mail/ini.xml index 586d90973a78..b5b8210de7c4 100644 --- a/reference/mail/ini.xml +++ b/reference/mail/ini.xml @@ -98,6 +98,14 @@ Log entries include the full path of the script, line number, <literal>To</literal> address and headers. </para> + <simpara> + If the setting is made in a + <link linkend="configuration.file.per-user"><filename>.user.ini</filename></link> + or <filename>.htaccess</filename> file while + <link linkend="ini.open-basedir">open_basedir</link> is in effect, the path + must be within <literal>open_basedir</literal>. Otherwise the setting is not + applied and an <constant>E_WARNING</constant> is emitted. + </simpara> </listitem> </varlistentry> @@ -132,6 +140,10 @@ this value can also be set with <literal>php_value</literal> in <filename>httpd.conf</filename> (but this is not recommended). </simpara> + <simpara> + The setting is ignored in <filename>.htaccess</filename> and + <filename>.user.ini</filename> files. + </simpara> </listitem> </varlistentry> diff --git a/reference/network/functions/openlog.xml b/reference/network/functions/openlog.xml index f635bb944c67..a03fec193b03 100644 --- a/reference/network/functions/openlog.xml +++ b/reference/network/functions/openlog.xml @@ -18,7 +18,7 @@ <function>openlog</function> opens a connection to the system logger for a program. </para> - <para> + <simpara> The use of <function>openlog</function> is optional. If it has not been called, the connection is opened by the first message that is logged. When that message comes from <function>syslog</function>, then in PHP 8.1 @@ -28,9 +28,9 @@ <link linkend="ini.syslog.ident">syslog.ident</link> and <link linkend="ini.syslog.facility">syslog.facility</link> INI settings are not used. When it comes from <literal>error_log</literal> or - <literal>mail.log</literal> set to <literal>syslog</literal>, those + <link linkend="ini.mail.log">mail.log</link> set to <literal>syslog</literal>, those settings are used. - </para> + </simpara> </refsect1> <refsect1 role="parameters">

« previous php.doc.cvs (#24005) next »