Merge branch 'PHP-7.1'

* PHP-7.1:
  #73594 tests only check the extra params if dns_get_record is successful
This commit is contained in:
Joe Watkins 2017-07-10 06:56:03 +01:00
commit cfacf84dc1
No known key found for this signature in database
GPG key ID: F9BA0ADA31CBD89E
2 changed files with 6 additions and 4 deletions

View file

@ -19,8 +19,9 @@ if (empty($out)) die("skip local resolver does not return additional records");
<?php <?php
$auth = array(); $auth = array();
$additional = array(); $additional = array();
dns_get_record('php.net', DNS_MX, $auth, $additional); $res = dns_get_record('php.net', DNS_MX, $auth, $additional);
var_dump(empty($additional)); // only check $additional if dns_get_record is successful
var_dump(!empty($res) && empty($additional));
?> ?>
--EXPECT-- --EXPECT--
bool(false) bool(false)

View file

@ -18,8 +18,9 @@ if (empty($out)) die("skip local resolver does not return authority records");
--FILE-- --FILE--
<?php <?php
$auth = array(); $auth = array();
dns_get_record('php.net', DNS_MX, $auth); $res = dns_get_record('php.net', DNS_MX, $auth);
var_dump(empty($auth)); // only check $auth if dns_get_record is successful
var_dump(!empty($res) && empty($auth));
?> ?>
--EXPECT-- --EXPECT--
bool(false) bool(false)