1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00
Files
archived-php-src/ext/standard/tests/network/bug41347.phpt
Máté Kocsis 50765075db Improve some ValueError messages
Closes GH-5340
2020-04-06 10:41:01 +02:00

13 lines
262 B
PHP

--TEST--
dns_check_record() segfault with empty host
--FILE--
<?php
try {
var_dump(dns_check_record(''));
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
dns_check_record(): Argument #1 ($hostname) cannot be empty