summaryrefslogtreecommitdiff
path: root/ext/standard/tests/network/bug41347.phpt
blob: 21fc002fa53eb9de49b22fcca1616804128b12c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
dns_check_record() segfault with empty host
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {
    die('skip No windows support');
}
?>
--FILE--
<?php
var_dump(dns_check_record(''));
?>
--EXPECTF--
Warning: dns_check_record(): Host cannot be empty in %s on line %d
bool(false)