Package: php-validate / 0.8.5-4

000-fix-validate-docs-sample-multiple.php.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Fix calls not supported for this package if no Validate_[LOCALE] are installed
Author: Dario Minnucci <midget@debian.org>
Last-Update: 2012-04-27
Index: php-validate/Validate-0.8.5/docs/sample_multiple.php
===================================================================
--- php-validate.orig/Validate-0.8.5/docs/sample_multiple.php	2012-04-27 02:09:03.919989214 +0200
+++ php-validate/Validate-0.8.5/docs/sample_multiple.php	2012-04-27 03:36:00.867068599 +0200
@@ -1,6 +1,6 @@
 <?php
 //include_once "Validate/FR.php";
-require_once "Validate.php";
+require_once "/usr/share/php/Validate.php";
 /*
 test(Validate::creditCard('6762195515061813'), true);
 // 4
@@ -37,15 +37,15 @@
 $opts = array(
     'amount'=> array('type'=>'number','decimal'=>',.','dec_prec'=>null,'min'=>1,'max'=>32000),
     'name'  => array('type'=>'email','check_domain'=>false),
-    'rib'   => array('type'=>'FR_rib'),
-    'rib2'  => array('type'=>'FR_rib'),
-    'cc'    => array('type'=>'Finance_CreditCard_number'),
-    'cc2'   => array('type'=>'Finance_CreditCard_number'),
+    //'rib'   => array('type'=>'FR_rib'),
+    //'rib2'  => array('type'=>'FR_rib'),
+    //'cc'    => array('type'=>'Finance_CreditCard_number'),
+    //'cc2'   => array('type'=>'Finance_CreditCard_number'),
     'mail'  => array('type'=>'email'),
-    'hissiret' => array('type'=>'FR_siret'),
+    //'hissiret' => array('type'=>'FR_siret'),
     'mystring' => array('type'=>'string',array('format'=>VALIDATE_ALPHA, 'min_length'=>3)),
-    'iban'  => array('type'=>'Finance_iban'),
-    'cep'   => array('type'=>'ptBR_postalcode')
+    //'iban'  => array('type'=>'Finance_iban'),
+    //'cep'   => array('type'=>'ptBR_postalcode')
     );
 
 $result = Validate::multiple($values, $opts);