diff options
| author | Anatol Belski <ab@php.net> | 2016-06-23 09:42:17 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2016-06-23 09:42:17 +0200 |
| commit | 056c2ce349bd40708026a48a7531b89f8b644dc5 (patch) | |
| tree | bc2d3cbce38f18eba6ce98b10b664569b0632e3e | |
| parent | bd74e7d0133493ee4290857ac368f5fbdd278084 (diff) | |
| download | php-git-056c2ce349bd40708026a48a7531b89f8b644dc5.tar.gz | |
yet another test rewrite
| -rw-r--r-- | ext/pcre/tests/bug72463.phpt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ext/pcre/tests/bug72463.phpt b/ext/pcre/tests/bug72463.phpt index b6ac971ee8..3d38494917 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=== |
