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

Bug #4528 GenerateZone uses fixed order in associative array
Submitted: 2005-06-04 15:00 UTC Modified: 2007-04-22 11:31 UTC
From: metz at php dot net Assigned: cipri
Status: Assigned Package: File_DNS
PHP Version: 4.3.11 OS:
Roadmaps: 0.1.0    
Subscription  
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: metz at php dot net
New email:
PHP Version: Package Version: OS:

 

 [2005-06-04 15: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