Bug #68651 [NEW]: dns_get_record() empty $authorities

From: Date: Thu, 25 Dec 2014 07:03:39 +0000
Subject: Bug #68651 [NEW]: dns_get_record() empty $authorities
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189190@lists.php.net to get a copy of this message
From:             kevin at kevinguanchedarias dot com
Operating system: Ubuntu 14.04
PHP version:      5.5.20
Package:          Unknown/Other Function
Bug Type:         Bug
Bug description:dns_get_record() empty $authorities

Description:
------------
dns_get_record() not returning Authorities when using a reverse lookup

using dig command outputs the following 
--------------------------------------------

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37583
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;254.32.74.10.in-addr.arpa.     IN      A

;; AUTHORITY SECTION:
10.in-addr.arpa.        604800  IN      SOA    
ns1.kevinguanchedarias.com. kevin.kevinguanchedarias.com. 1 604800 86400
2419200 604800


Note: Both dig PHP commands were used in the server
- The PHP version is 5.5.9-1ubuntu4.5

Test script:
---------------
dns_get_record('254.32.74.10.in-addr.arpa.',DNS_ANY,$autho);

Expected result:
----------------
$autho should have the authority record

Actual result:
--------------
$autho is NULL 

-- 
Edit bug report at https://bugs.php.net/bug.php?id=68651&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68651&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68651&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68651&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68651&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68651&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68651&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68651&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68651&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68651&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68651&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68651&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68651&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68651&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68651&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68651&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68651&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68651&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68651&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68651&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68651&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#189190) next »