From: David S. P. <da...@ol...> - 2006-02-27 07:20:24
|
Hi !! > I'm writing a DNSBL management system that'll make extensive use of > phpwhois. I'm adding a handler for .pl domains (will send later) and the > format is so atypical that I've written my own parser instead of using any > of those found in whois.parser.php. Basically it has some blocks, but data > within the blocks is RPSL-style except for nserver list and registrar's > data. > > While doing that, I've encountered a bug that caused the nserver > array to always contain only the last nameserver and only as > a ["" => hostname] pair. > > It took me over half an hour to figure this one out. Patch attached. Thanx for the patch, i will add it to next release. Nevertheles i have to point that there is no need to write your own parser for .pl domains as that kind of output could be easely parsed by the current parser routines (you could use get_blocks to get the blocks and then generic_parser_b to get the data for each block) -- Thanx & best regards ... ---------------------------------------------------------------- David Saez Padros http://www.ols.es On-Line Services 2000 S.L. e-mail da...@ol... Pintor Vayreda 1 telf +34 902 50 29 75 08184 Palau-Solita i Plegamans movil +34 670 35 27 53 ---------------------------------------------------------------- |