Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.0

Bug #4528 GenerateZone uses fixed order in associative array
Submitted: 2005-06-04 20:00 UTC
From: metz at php dot net Assigned: cipri
Status: Bogus Package: File_DNS
PHP Version: 4.3.11 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-04 20:00 UTC] metz at php dot net
Description: ------------ If the order of the associative array _records isn't 100% the zone will be corrupt. try fixing: --- DNS.php.orig 2005-06-04 21:52:03.000000000 +0200 +++ DNS.php 2005-06-04 21:52:34.000000000 +0200 @@ -667,7 +667,12 @@ case 'CNAME': case 'PTR': default: - $zone[] = implode("\t", $record); + $zone[] = implode("\t", array( + $record['name'], + $record['ttl'], + $record['class'], + $record['type'], + $record['data'])); break; } }

Comments

 [2010-02-22 12:28 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!