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

Bug #17792 Patch: Regex bug in isIp
Submitted: 2010-08-22 13:25 UTC
From: olleolleolle Assigned: olleolleolle
Status: Closed Package: File_DNS (version SVN)
PHP Version: 5.3.1 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2010-08-22 13:25 UTC] olleolleolle (Olle Jonsson)
Description: ------------ I started looking at WARNING: Function 'ereg' is deprecated, please use 'preg_match' instead in file ./File_DNS/DNS.php line 1156 ...and I made a test for it. Then I saw that the regular expression needed expanding, and found a good one online. The URL is included as a comment in the code. The patch also includes tests for the new logic, as a PHPT file.

Comments

 [2010-08-22 13:25 UTC] olleolleolle (Olle Jonsson)
 [2010-08-23 04:03 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: olleolleolle
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. If you are really keen, you could rely on Net_IPv4 here...