1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 21:11:02 +02:00
Files
archived-php-src/ext/pcre/tests/bug72463_2.phpt
Matteo Beccati ff7c981d19 Rewrite test to avoid sending emails
A properly configured email server was generating bounce emails when running
the test.
2016-07-06 07:08:43 +02:00

21 lines
432 B
PHP

--TEST--
Bug #72463 mail fails with invalid argument
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) != "WIN") {
die('skip windows only');
}
?>
--INI--
SMTP=non.existent.smtp.server
--FILE--
<?php
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===
--EXPECTREGEX--
.*===DONE===