|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78684 PCRE bug72463_2 test is sending emails on Linux
Submitted: 2019-10-18 09:09 UTC Modified: 2019-10-19 11:02 UTC
From: japs at bistruphave dot dk Assigned: carusogabriel (profile)
Status: Closed Package: Testing related
PHP Version: Next Major Version OS: Centos 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
37 - 3 = ?
Subscribe to this entry?

 [2019-10-18 09:09 UTC] japs at bistruphave dot dk
Each time I run the PHP test after a PHP 7.4.0.RCx upgrade it
generates a mail with the destination address:
It will sit in my mail queue forever and cannot be delivered.

The content is: a
Subject: subject


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-18 14:08 UTC]
-Summary: +Summary: PCRE tests for bug 72463 are sending emails -Status: Open +Status: Feedback
 [2019-10-18 14:08 UTC]
One or both of these two tests:
1. ext/pcre/tests/bug72463.phpt
2. ext/pcre/tests/bug72463_2.phpt

are sending email, however they shouldn't *actually* send because of the mail configuration:
1. sendmail_path="echo >/dev/null"
2. SMTP=non.existent.smtp.server

Can you edit the two tests so that the mail messages are distinct, then rerun them to find out which is responsible?

And a shot in the dark: does "non.existent.smtp.server" resolve to anything on your server? Your DNS isn't using the .server TLD, right?
 [2019-10-18 16:48 UTC] japs at bistruphave dot dk
-Status: Feedback +Status: Open
 [2019-10-18 16:48 UTC] japs at bistruphave dot dk
ext/pcre/tests/bug72463_2.phpt is responsible
My top domain is dk.
Notice the domain, which does exist.
 [2019-10-18 17:17 UTC]
It seems to me that ext/pcre/tests/bug72463_2.phpt should be a Windows only test.
 [2019-10-18 17:18 UTC]
-Summary: PCRE tests for bug 72463 are sending emails +Summary: PCRE bug72463_2 test is sending emails on Linux -Status: Open +Status: Analyzed
 [2019-10-18 17:18 UTC]
Right. bug72463_2.phpt was made to run on Linux as a result of

I think that was incorrect: the SMTP setting is only for Windows, so it will be ignored on Linux and instead go with the normal sendmail defaults.

ext/standard's mail/bug69115 test looks to be in a similar situation:
 [2019-10-18 18:47 UTC]
-Assigned To: +Assigned To: carusogabriel
 [2019-10-19 11:00 UTC]
Automatic comment on behalf of
Log: Fix #78684: PCRE bug72463_2 test is sending emails on Linux
 [2019-10-19 11:00 UTC]
-Status: Analyzed +Status: Closed
 [2019-10-19 11:02 UTC]
ext\standard\tests\mail\bug69115.phpt had already been fixed with
commit 6dd9fad[1].

[1] <;a=commit;h=6dd9fad0c0d388721a3c15c4d3f180f8539447d0>
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 14:01:23 2020 UTC