Bug #78684 [Csd]: PCRE bug72463_2 test is sending emails on Linux

[email protected]
Newsgroups php.bugs,php.qa
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=78684&edit=1

 ID:                 78684
 Updated by:         [email protected]
 Reported by:        japs at bistruphave dot dk
 Summary:            PCRE bug72463_2 test is sending emails on Linux
 Status:             Closed
 Type:               Bug
 Package:            Testing related
 Operating System:   Centos 8
 PHP Version:        Next Major Version
 Assigned To:        carusogabriel
 Block user comment: N
 Private report:     N

 New Comment:

ext\standard\tests\mail\bug69115.phpt had already been fixed with
commit 6dd9fad[1].

[1] <http://git.php.net/?p=php-src.git;a=commit;h=6dd9fad0c0d388721a3c15c4d3f180f8539447d0>


Previous Comments:
------------------------------------------------------------------------
[2019-10-19 11:00:48] [email protected]

Automatic comment on behalf of [email protected]
Revision: http://git.php.net/?p=php-src.git;a=commit;h=26635ed71aa45e10f6c67555d1139d37d303dd72
Log: Fix #78684: PCRE bug72463_2 test is sending emails on Linux

------------------------------------------------------------------------
[2019-10-18 17:18:31] [email protected]

Right. bug72463_2.phpt was made to run on Linux as a result of
https://github.com/php/php-src/commit/2f70038#diff-52e6299aa380cc579975b8a3f91cbae5

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:
https://github.com/php/php-src/commit/2f70038#diff-82cc28c218b80a3f9eef39e816a4d78f

------------------------------------------------------------------------
[2019-10-18 17:17:02] [email protected]

It seems to me that ext/pcre/tests/bug72463_2.phpt should be a Windows only test.

------------------------------------------------------------------------
[2019-10-18 16:48:14] japs at bistruphave dot dk

ext/pcre/tests/bug72463_2.phpt is responsible
My top domain is dk.
Notice the domain @name.dk, which does exist.

------------------------------------------------------------------------
[2019-10-18 14:08:28] [email protected]

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?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=78684


--
Edit this bug report at https://bugs.php.net/bug.php?id=78684&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.