php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77695 dns_get_record fails to provide authns info somewhere between 5.3.3 and 7.2
Submitted: 2019-03-05 14:34 UTC Modified: 2021-09-05 04:22 UTC
From: jeff at zaf dot ca Assigned: cmb (profile)
Status: No Feedback Package: Network related
PHP Version: 7.3.2 OS: CentOS 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeff at zaf dot ca
New email:
PHP Version: OS:

 

 [2019-03-05 14:34 UTC] jeff at zaf dot ca
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 = 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-03 03:23 UTC] andrew at fw dot net dot nz
Same issue, PHP 7.3.2 Ubuntu 16.04.
I tried on 5.5 as well, which also failed to provide the authns.
 [2021-08-27 18:40 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-27 18:40 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-09-05 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 19 12:03:36 2021 UTC