com php-src: yet another test rewrite: ext/pcre/tests/bug72463.phpt

From: Date: Thu, 23 Jun 2016 07:42:17 +0000
Subject: com php-src: yet another test rewrite: ext/pcre/tests/bug72463.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92627@lists.php.net to get a copy of this message
Commit: 056c2ce349bd40708026a48a7531b89f8b644dc5 Author: Anatol Belski <ab@php.net> Thu, 23 Jun 2016 09:42:17 +0200 Parents: bd74e7d0133493ee4290857ac368f5fbdd278084 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=056c2ce349bd40708026a48a7531b89f8b644dc5 Log: yet another test rewrite Changed paths: M ext/pcre/tests/bug72463.phpt Diff: 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===

« previous php.cvs (#92627) next »