Re: [PEPr] +1 for File Formats::File_DNS

From: Date: Mon, 21 Jun 2004 17:35:04 +0000
Subject: Re: [PEPr] +1 for File Formats::File_DNS
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31039@lists.php.net to get a copy of this message
Cipriano, Cipriano Groenendal wrote:
Antônio Carlos Venâncio Júnior (http://pear.php.net/user/antonio) has
voted +1 on the proposal for File Formats::File_DNS.
This vote is conditional. The condition is: It would be nice to have an "$file->isValid()" function. ;)
Hi Antonio. As it's set up right now, the code will return a PEAR_Error if you try and load a file that's not valid: <?php include("File/DNS.php"); $zonefile = new File_DNS; $loaded = $zonefile->load('/zones/example.com', 'example.com'); if (PEAR::isError($loaded)) { ... } ... ?> Is this what you mean? Or do you mean an isValid() function to check the changes made by the user? To make sure there are no A's pointing at www.example.com, or MX with a preference of -14.2 ? I plan to have validation of the data supplied with the addRecord/setFoo fuynctions implemented before I declare the package even beta :)
actually I mean both. I've tested it with the PEAR::isError() but saw that $loaded->getUserInfo() or $loaded->getDebugInfo() aren't returning sufficient info to see where is the error in the file (what line, column, etc). I think this kind of information is very usefull. But seeing your roadmap, thats ok. And btw, if you need help with that count with me (and with translations to pt_BR too).
Quick mini roadmap: 0.0.X - Devel - Local versions working up to a workable version. 0.1.0 - Alpha - Initial version in PEAR. Has the create, add/del Foo functions. Workable 0.1.X - Alpha - Slowly working up from workable to a stable API and validation of user-input. 0.2.0 - Beta - Stable API, good working code.
0.9.0 - RC     - Stable API, leave like that for ~1 month.
1.0.0 - Stable - First Stable Release. Cipri -- Ate' Antonio echo antonio php net | sed 's/ /@/;s/ /./g' FreeBSD/OpenBSD/Solaris | PHP/MySQL/Python | PGP Key ID 0x5BBEB073 "Can't buy what I want because its FREE!" - Pearl Jam


« previous php.pear.dev (#31039) next »