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

Bug #9242 Error in telephone checking
Submitted: 2006-11-06 11:25 UTC
From: webmaster at webit dot co dot uk Assigned: arpad
Status: Closed Package: Validate_UK (version 0.5.2)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-11-06 11:25 UTC] webmaster at webit dot co dot uk (James Nunnerley)
Description: ------------ I've noticed an error in the checking of the UK telephone numbers. In the error check, it does indeed go through and check that numbers should be 11 characters long, however outside of London, 10 character numbers are still allowed. One example being 01905 22222 - which is actually an estate agents! Test script: --------------- n/a Expected result: ---------------- 10 character numbers, that don't start 02 should be accepted. Actual result: -------------- They fail.

Comments

 [2007-02-23 14:34 UTC] ash at hexmen dot com (Ash Searle)
Ofcom dictates the UK numbering scheme, and provides downloadable files detailing precisely which area codes contain 10-digit numbers. http://www.ofcom.org.uk/telecoms/ioi/numbers/numbers_administered/ A 'good enough' fix should be to accept 10-digits for numbers beginning '01' and '08'. All other numbers should be 11-digits. Note: at the present-time (Feb 2007) UK numbers cannot begin '04' or '06' A patch to fix this bug is available here: http://hexmen.com/code/patches/pear-9242.diff
 [2007-04-21 13:17 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!