FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16823&edit=1

ID: 16823
Updated by: daniel.oconnor@gmail.com
Reported By: patrick at vande-walle dot eu
Summary: Validation rules for phone numbers outdated
Status: Open
Type: Feature/Change Request
Package: Validate_BE
Package Version: 0.1.4
PHP Version: 5.2.5
-Assigned To:
+Assigned To: moosh
Roadmap Versions:
New Comment:

-Assigned To:
+Assigned To: moosh



Previous Comments:
------------------------------------------------------------------------

[2009-11-23 12:26:25] patrickvw

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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 1, '09 at 10:54p
activeDec 1, '09 at 10:54p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase