mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
a6fbf1b083
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dns.c?r1=1.80&r2=1.81 and merged to head with: http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dns.c?r1=1.70.2.7.2.5&r2=1.70.2.7.2.5.2.1
17 lines
345 B
PHP
17 lines
345 B
PHP
--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
|