Bug #77695 [NEW]: dns_get_record fails to provide authns info somewhere between 5.3.3 and 7.2
From: jeff at zaf dot ca
Operating system: CentOS 7
PHP version: 7.3.2
Package: Network related
Bug Type: Bug
Bug description:dns_get_record fails to provide authns info somewhere between 5.3.3 and 7.2
Description:
------------
I'm using the example code found here: http://php.net/dns_get_record and
not getting the expected results.
Test script:
---------------
<?php
/* Request "ANY" record for php.net,
and create $authns and $addtl arrays
containing list of name servers and
any additional records which go with
them */
$result = dns_get_record("php.net", DNS_ANY, $authns, $addtl);
echo "Result = ";
print_r($result);
echo "Auth NS = ";
print_r($authns);
echo "Additional = ";
print_r($addtl);
?>
Expected result:
----------------
On PHP 5.3.3, it returns:
Auth NS = Array
(
[0] => Array
(
[host] => php.net
[type] => NS
[target] => dns4.easydns.info
[class] => IN
[ttl] => 300
)
[1] => Array
(
[host] => php.net
[type] => NS
[target] => dns3.easydns.org
[class] => IN
[ttl] => 300
)
[2] => Array
(
[host] => php.net
[type] => NS
[target] => dns1.easydns.com
[class] => IN
[ttl] => 300
)
[3] => Array
(
[host] => php.net
[type] => NS
[target] => dns2.easydns.net
[class] => IN
[ttl] => 300
)
)
Actual result:
--------------
On 7.3.2, it returns:
Auth NS = Additional =
--
Edit bug report at https://bugs.php.net/bug.php?id=77695&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77695&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77695&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77695&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77695&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77695&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77695&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77695&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77695&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77695&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77695&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77695&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77695&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77695&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77695&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77695&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77695&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77695&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77695&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77695&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77695&r=mysqlcfg
Thread (4 messages)
- jeff at zaf dot ca