mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
17 lines
345 B
Plaintext
17 lines
345 B
Plaintext
|
--TEST--
|
||
|
dns_check_record() segfault with empty host
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$domains = array( 'php.net', 'ez.no' );
|
||
|
foreach ( $domains as $domain )
|
||
|
{
|
||
|
if ( getmxrr( $domain, $hosts, $weights ) )
|
||
|
{
|
||
|
echo "Hosts: " . count( $hosts ) . ", weights: " . count( $weights ) . "\n";
|
||
|
}
|
||
|
}
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Hosts: 2, weights: 2
|
||
|
Hosts: 1, weights: 1
|