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

Bug #14866 Notice: Undefined index: VALIDATE_ITLD_EMAILS
Submitted: 2008-10-25 03:15 UTC Modified: 2008-10-25 03:30 UTC
From: doconnor Assigned: amir
Status: Closed Package: Validate (version CVS)
PHP Version: 5.2.4 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-10-25 03:15 UTC] doconnor (Daniel O'Connor)
Description: ------------ if($options["VALIDATE_ITLD_EMAILS"]) array_push($validate, 'itld'); if($options["VALIDATE_GTLD_EMAILS"]) array_push($validate, 'gtld'); if($options["VALIDATE_CCTLD_EMAILS"]) array_push($validate, 'cctld'); should check isset() or !empty() Test script: --------------- pear run-tests for email.phpt Expected result: ---------------- Tests pass Actual result: -------------- Notice: Undefined index: VALIDATE_ITLD_EMAILS in /home/clockwerx/pear/Validate/Validate.php on line 438 Notice: Undefined index: VALIDATE_GTLD_EMAILS in /home/clockwerx/pear/Validate/Validate.php on line 439 Notice: Undefined index: VALIDATE_CCTLD_EMAILS in /home/clockwerx/pear/Validate/Validate.php on line 440

Comments

 [2008-10-25 03:30 UTC] amir (Amir Mohammad Saied)
This bug has been fixed in CVS. 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.