PHP  
 PHP_7_2
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/standard/tests/network/dns_get_mx.phpt ('bool dns_get_mx ( string $hostname , array &$mxhosts [, array &$weight ] );')

Script

1: <?php
2: $domains 
= array('php.net''doc.php.net''wiki.php.net');
3: foreach (
$domains as $domain) {
4:     if (
getmxrr($domain$hosts$weights)) {
5:         echo 
"Hosts: " count($hosts) . ", weights: " count($weights) . "\n";
6:     }
7: }
8:
?>
9:

Expected

Hosts: %i, weights: %i
Hosts: %i, weights: %i
Hosts: %i, weights: %i

Output

Hosts: 1, weights: 1
Hosts: 0, weights: 0

Diff

003- Hosts: %i, weights: %i

 

Generated at Sat, 09 Dec 2017 10:21:20 +0000 (4 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.