1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 11:42:17 +02:00

Use our own domains to test getmxrr()

This commit is contained in:
Christoph M. Becker
2016-10-18 14:28:49 +02:00
parent 371f41250c
commit 81043bbfea

View File

@@ -14,7 +14,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
?>
--FILE--
<?php
$domains = array('yahoo.co.jp', 'yahoo.com', 'es.yahoo.com', 'fr.yahoo.com', 'it.yahoo.com');
$domains = array('php.net', 'doc.php.net', 'wiki.php.net');
foreach ($domains as $domain) {
if (getmxrr($domain, $hosts, $weights)) {
echo "Hosts: " . count($hosts) . ", weights: " . count($weights) . "\n";
@@ -25,5 +25,3 @@ foreach ($domains as $domain) {
Hosts: %i, weights: %i
Hosts: %i, weights: %i
Hosts: %i, weights: %i
Hosts: %i, weights: %i
Hosts: %i, weights: %i