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

Bug #16907 Validate CA Accepts invalid Phone Numbers
Submitted: 2009-12-15 23:40 UTC
From: icywolfy Assigned: jausions
Status: Closed Package: Validate_CA (version 0.1.3)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 + 22 = ?

 
 [2009-12-15 23:40 UTC] icywolfy (Carlos Koch)
Description: ------------ 1. Area codes in North America cannot have '11' as the final two digits per NANPA standards. 2. Area codes with the second digit of '9' are reserved for future expansion and are not valid. Test script: --------------- var_dump (Validate_CA::phoneNumber('811 222-3333')); var_dump (Validate_CA::phoneNumber('891 222-3333')); Expected result: ---------------- bool(false) bool(false) Actual result: -------------- bool(true) bool(true)

Comments

 [2009-12-16 03:43 UTC] jausions (Philippe Jausions)
-Status: Open +Status: Closed -Assigned To: +Assigned To: jausions
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/