mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
20 lines
414 B
PHP
20 lines
414 B
PHP
--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(''));
|
|
var_dump(dns_check_record('', ''));
|
|
?>
|
|
--EXPECTF--
|
|
Warning: dns_check_record(): Host cannot be empty in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: dns_check_record(): Host and type cannot be empty in %s on line %d
|
|
bool(false)
|