mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 09:47:30 +00:00
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:
2 files changed
+6
-4
No files matched your search
@@ -19,8 +19,9 @@ if (empty($out)) die("skip local resolver does not return additional records");
|
||||
<?php
|
||||
$auth = array();
|
||||
$additional = array();
|
||||
dns_get_record('php.net', DNS_MX, $auth, $additional);
|
||||
var_dump(empty($additional));
|
||||
$res = dns_get_record('php.net', DNS_MX, $auth, $additional);
|
||||
// only check $additional if dns_get_record is successful
|
||||
var_dump(!empty($res) && empty($additional));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
@@ -18,8 +18,9 @@ if (empty($out)) die("skip local resolver does not return authority records");
|
||||
--FILE--
|
||||
<?php
|
||||
$auth = array();
|
||||
dns_get_record('php.net', DNS_MX, $auth);
|
||||
var_dump(empty($auth));
|
||||
$res = dns_get_record('php.net', DNS_MX, $auth);
|
||||
// only check $auth if dns_get_record is successful
|
||||
var_dump(!empty($res) && empty($auth));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
Reference in new issue
Block a user