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

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


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 47 + 24 = ?

 
 [2008-10-25 08: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 08: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.