#27657 [NEW]: dns_get_record aborts script when domain has TXT record

From: Date: Fri, 19 Mar 2004 11:47:39 +0000
Subject: #27657 [NEW]: dns_get_record aborts script when domain has TXT record
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56671@lists.php.net to get a copy of this message
From:             wechsler at phase dot org
Operating system: Linux version 2.4.18-bf2.4 (root
PHP version:      5.0.0RC1
PHP Bug Type:     *Network Functions
Bug description:  dns_get_record aborts script when domain has TXT record

Description:
------------
Use of function dns_get_record produces zero-length output when looking up
any domain name that has an associated TXT record.

Tested with: 
phase.org, aol.com, pobox.com (all have TXT record, zero data returned)

php.net, yahoo.com (no TXT record, works OK)

Reproduce code:
---------------
<?php
/* code taken from 
http://www.php.net/manual/en/function.dns-get-record.php
tested at:
http://sentinel3.phase.org/dnstest.php 
http://sentinel3.phase.org/dnstest.phps
*/
header('Content-type: text/plain');
/* 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("aol.com", DNS_ANY, $authns, $addtl);
echo "Result = ";
print_r($result);
echo "Auth NS = ";
print_r($authns);
echo "Additional = ";
print_r($addtl);
?>


Expected result:
----------------
DNS print_r output as at
http://www.php.net/manual/en/function.dns-get-record.php

Actual result:
--------------
Squid reports:

While trying to retrieve the URL: http://sentinel3.phase.org/dnstest.php

The following error was encountered:

    * Zero Sized Reply 

Squid did not receive any data for this request. 


Equivalent response seen without proxy.

-- 
Edit bug report at http://bugs.php.net/?id=27657&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27657&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27657&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27657&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27657&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27657&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27657&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27657&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27657&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27657&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27657&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27657&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27657&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27657&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27657&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27657&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27657&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27657&r=float


Thread (5 messages)

« previous php.bugs (#56671) next »