yet another test rewrite
authorAnatol Belski <ab@php.net>
Thu, 23 Jun 2016 07:42:17 +0000 (09:42 +0200)
committerAnatol Belski <ab@php.net>
Thu, 23 Jun 2016 07:42:17 +0000 (09:42 +0200)
ext/pcre/tests/bug72463.phpt

index b6ac971ee83486d7441aac9f928afad2215eac68..3d384949171a65411c0b22717b4d091b94e73bdf 100644 (file)
@@ -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===