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

Bug #13111 phoneNumber() tests inaccurate
Submitted: 2008-02-13 03:07 UTC Modified: 2008-04-22 08:35 UTC
From: peter Assigned: clockwerx
Status: Closed Package: Validate_AU (version CVS)
PHP Version: Irrelevant OS: n/a
Roadmaps: (Not assigned)    

 [2008-02-13 03:07 UTC] peter (Peter Jeremy)
Description: ------------ The checks implemented in phoneNumber() will reject some valid numbers (eg 0198304XXX are RAS numbers using Telstra DialConnect) as well as allowing some invalid numbers (0212345678 is not valid). The definitive document defining valid numbers is the "Telecommunications Numbering Plan 1997" - specifically Scedules 1-4 which can be found at (eg)$file/TelecomNumberingPlan1997Vol1.htm#param440 A number of non-geographic number ranges (referred to as 'INDIAL') are also missing, eg 055. Finally, I have never seen a requirement that a '.' is mandatory between the country code and national number in an international number and have been unable to locate any reference to this. Test script: --------------- Code inspection. Expected result: ---------------- Numbers listed as valid number ranges in the "Telecommunications Numbering Plan 1997" should be reported as true and other numbers should return false eg 1302123456, 13451234, 0198304123, 191234, 0550456789 are valid 0212345678 is invalid Actual result: -------------- eg 1302123456, 13451234, 0198304123, 191234, 0550456789 are reported as invalid. 0212345678 is reported as valid


 [2008-04-22 08:35 UTC] arnaud (Arnaud Limbourg)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at Fixed, a release will be done very soon.