Ok, forget my last email. Fridays ............ (I read ALL num)

I ran the latest tests, and they work fine here too.

PHP 5.2.3 (cli) (built: May 31 2007 09:37:22)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Xdebug v2.0.0RC3, Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, by
Derick Rethans


Best,

Andries Seutens


Andries Seutens schreef:
Hi,

Sorry, but nor "foobar1" and "[EMAIL PROTECTED]" would *not* pass this validator, as they are *not* "AlNum"...

Your result: "foobar1:false [EMAIL PROTECTED]:false" is pretty ok....

Best,

Andries Seutens

Darby Felton schreef:
Hi Graham,

I just added the potentially offending data to the unit tests for
Zend_Validate_Alnum, but I have been unable to reproduce the problem on
either of the two following platforms:

* PHP 5.1.4, WinXP, PCRE 6.6

* PHP 5.2.1, Ubuntu, PCRE 6.7

Are you on FreeBSD by chance?

Anyone else experiencing such a problem?

On another note, I would highly recommend upgrading your PHP beyond
5.2.0, which introduced some problems that have since been addressed in
later releases.

Best regards,
Darby

Graham Anderson wrote:
I updated against trunk and now...

require_once('Zend/Validate/Alnum.php');

$validator = new Zend_Validate_Alnum();

$vars = array ( 'Alnum' => 'foobar1',
                                'NotAlnum' => '[EMAIL PROTECTED]' );

foreach ( $vars as $var ) {
        echo $validator->isValid($var) ? $var .':true ' : $var . ':false ';
}

--
result: foobar1:false [EMAIL PROTECTED]:false
--

php5 -v
PHP 5.2.0 with Suhosin-Patch 0.9.6.1 (cli) (built: May  8 2007 20:00:45)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
    with Suhosin v0.9.10, (C) Copyright 2006, by Hardened-PHP Project





--
Andries Seutens
http://andries.systray.be
------------------------------------------------------------------------

Gecontroleerd op virussen door de JOJO Secure Gateway.
------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.9.4/860 - Release Date: 21/06/2007 17:53


--
Andries Seutens
http://andries.systray.be

Gecontroleerd op virussen door de JOJO Secure Gateway.

Reply via email to