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] doconnor (Daniel O'Connor)
-Status: Assigned +Status: Bogus -Roadmap Versions: 0.1.0 +Roadmap Versions:
Closing due to the package being dead for some years