Category
stdlib | child of #3285 (mail transport depth)
Problem
When mail.add_x_header=1, php-src prepends X-PHP-Originating-Script: {uid}:{basename} to additional headers before piping to sendmail. This compiler ignores the INI (mirrored/default) and never emits the header.
php-src reference
Repro
mail.add_x_header=1
sendmail_path={PWD}/mock_sendmail.sh
<?php
mail('a@b.c', 'subj', 'body', 'From: x@y');
// mock capture must contain X-PHP-Originating-Script:
Scope
| Path |
Work |
ext/standard/VmMail.php |
read INI; prepend header |
ext/standard/VmIni.php |
ensure mail.add_x_header get/set or host mirror |
| Tests |
compliance with mock sendmail + --INI-- |
Done when (php-src-strict)
Related
Category
stdlib| child of #3285 (mail transport depth)Problem
When
mail.add_x_header=1, php-src prependsX-PHP-Originating-Script: {uid}:{basename}to additional headers before piping to sendmail. This compiler ignores the INI (mirrored/default) and never emits the header.php-src reference
ext/standard/mail.c—php_mail()PG(mail_x_header)blockmain/php_ini.c—mail.add_x_headerRepro
Scope
ext/standard/VmMail.phpext/standard/VmIni.phpmail.add_x_headerget/set or host mirror--INI--Done when (php-src-strict)
mail.add_x_header=1, mock sendmail stdin containsX-PHP-Originating-Script:=0, header absentRelated