For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > October 2005 > Validate_AU









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Validate_AU
bertrand Gugger

2005-10-05, 7:59 am

Bonjour,
I would suggest to pull out Validate_AU

After right pear install, run the test:

$ php -q validate_AU.php
Test Validate_AU
****************

Test postalCode without check against table
5251: YES
5000: YES
4664: YES
2491: YES
1000: YES
9999: YES
abc: NO
a7000: NO

Test postalCode with check against table (strong)
PHP Notice: Undefined index: PHP_PEAR_DATA_DIR in
/usr/share/pear/Validate/AU.php on line 72
<br />
<b>Notice</b>: Undefined index: PHP_PEAR_DATA_DIR in
<b>/usr/share/pear/Validate/AU.php</b> on line <b>72</b><br />
PHP Warning: file(/Validate_AU/AU_postcodes.txt): failed to open
stream: No such file or directory in /usr/share/pear/Validate/AU.php on
line 73
<br />
<b>Warning</b>: file(/Validate_AU/AU_postcodes.txt): failed to open
stream: No such file or directory in
<b>/usr/share/pear/Validate/AU.php</b> on line <b>73</b><br />
PHP Warning: array_map(): Argument #2 should be an array in
/usr/share/pear/Validate/AU.php on line 73
<br />
<b>Warning</b>: array_map(): Argument #2 should be an array in
<b>/usr/share/pear/Validate/AU.php</b> on line <b>73</b><br />
PHP Warning: in_array(): Wrong datatype for second argument in
/usr/share/pear/Validate/AU.php on line 76
<br />
<b>Warning</b>: in_array(): Wrong datatype for second argument in
<b>/usr/share/pear/Validate/AU.php</b> on line <b>76</b><br />
5251: NO
.......

I can't understand how people can release without testing.
à+
--
bertrand "toggg" Gugger
Pierre

2005-10-05, 7:59 am

On Wed, 05 Oct 2005 13:00:20 +0200
bertrand@toggg.com (bertrand Gugger) wrote:

> Bonjour,
> I would suggest to pull out Validate_AU
>
> After right pear install, run the test:


It is alpha, no hurt :)

I see these errors as well and a couple of things I like to get fixed
before stable.

--Pierre
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com