Created
June 23, 2016 07:33
-
-
Save weltling/af74d5ae3dfae6c0d78c3e9c1e3c323b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/pcre/tests/bug72463.phpt b/ext/pcre/tests/bug72463.phpt | |
index b6ac971..3d38494 100644 | |
--- a/ext/pcre/tests/bug72463.phpt | |
+++ b/ext/pcre/tests/bug72463.phpt | |
@@ -3,11 +3,16 @@ Bug #72463 mail fails with invalid argument | |
--FILE-- | |
<?php | |
+if(substr(PHP_OS, 0, 3) == "WIN") { | |
+ ini_set("smtp", "non.existent.smtp.server"); | |
+} else { | |
+ ini_set("sendmail_path", "echo hello >/dev/null"); | |
+} | |
+ | |
mail("some.address.it.wont.ever.reach@lookup.and.try.to.find.this.host.name","subject","a", ""); | |
mail("some.address.it.wont.ever.reach@lookup.and.try.to.find.this.host.name","subject","a", NULL); | |
?> | |
===DONE=== | |
---EXPECTF-- | |
-%A | |
-===DONE=== | |
+--EXPECTREGEX-- | |
+.*===DONE=== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment