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

Request #16823 Validation rules for phone numbers outdated
Submitted: 2009-11-23 17:26 UTC
From: patrickvw Assigned: moosh
Status: Assigned Package: Validate_BE (version 0.1.4)
PHP Version: 5.2.5 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2009-11-23 17:26 UTC] patrickvw (Patrick Vande Walle)
Description: ------------ The array $zoneprefixes['mobile'] misses several entries. See http://www.ibpt.be/GetDocument.aspx?forObjectID=504&lang=en for official list The attached diff file updates the relevant entry --- BE.php.old 2009-11-23 12:21:00.000000000 +0100 +++ BE.php 2009-11-23 12:22:29.000000000 +0100 @@ -385,10 +385,13 @@ '083', '084', '085', '086', '087', '089'); $zoneprefixes['bigzone'] = array('02', '03', '04', '09'); - $zoneprefixes['mobile'] = array('0472', '0473', '0474', '0475', - '0476', '0477', '0478', '0479 ', - '0485', '0486 ', '0494', '0495', - '0496', '0497', '0498', '0499'); + $zoneprefixes['mobile'] = array('0470', '0471', '0472', '0473', + '0474', '0475', '0476', '0477', + '0478', '0479', '0484', '0485', + '0486', '0487', '0488', '0489', + '0491', '0492', '0493', '0494', + '0495', '0496', '0497', '0498', + '0499'); $result = false; // Cleaning the phone number

Comments

 [2009-12-02 04:54 UTC] doconnor (Daniel O'Connor)
-Assigned To: +Assigned To: moosh