Re: [fw-general] Zend_Validate_Alnum::isValid evaluating alnum strings as false

2007-06-22 Thread Graham Anderson

Darby Felton wrote:

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.

Same result with 5.2.3 , PCRE 6.7, opensuse 10.2 x86

Attached is CLI config, problem exists in apache module also. I'll make 
some enquiries to the opensuse lists and see if anything turns up.


Regards,
Graham




phpinfo()
PHP Version => 5.2.3

System => Linux excession 2.6.18.8-0.3-default #1 SMP Tue Apr 17 08:42:35 UTC 
2007 i686
Build Date => Jun 12 2007 13:11:19
Configure Command =>  '../configure' '--prefix=/usr' 
'--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' 
'--with-libdir=lib' '--includedir=/usr/include' '--sysconfdir=/etc/php5/cli' 
'--with-config-file-path=/etc/php5/cli' 
'--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml' 
'--enable-session' '--with-mm' '--with-pcre-regex=/usr' '--enable-xml' 
'--enable-simplexml' '--enable-spl' '--enable-filter' '--disable-debug' 
'--enable-inline-optimization' '--disable-rpath' '--disable-static' 
'--enable-shared' '--program-suffix=5' '--with-pic' '--enable-cli' 
'--with-pear=/usr/share/php5/PEAR' '--enable-bcmath=shared' 
'--enable-calendar=shared' '--enable-ctype=shared' '--enable-dbase=shared' 
'--enable-dom=shared' '--enable-exif=shared' '--enable-ftp=shared' 
'--enable-mbstring=shared' '--enable-mbregex' '--enable-pcntl=shared' 
'--enable-posix=shared' '--enable-shmop=shared' '--enable-soap=shared' 
'--enable-sockets=shared' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' 
'--enable-sysvshm=shared' '--enable-tokenizer=shared' '--enable-wddx=shared' 
'--with-zlib=shared' '--with-bz2=shared' '--with-curl=shared' 
'--with-gd=shared' '--enable-gd-native-ttf' '--with-xpm-dir=/usr' 
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' 
'--with-zlib-dir=/usr' '--with-gettext=shared' '--with-gmp=shared' 
'--enable-hash=shared' '--with-iconv=shared' '--with-imap=shared' 
'--with-kerberos' '--with-imap-ssl' '--enable-json=shared' '--with-ldap=shared' 
'--with-ldap-sasl=/usr' '--with-libedit=shared,/usr' '--with-mcrypt=shared' 
'--with-mhash=shared' '--with-ming=shared,/usr' '--with-mysql=shared,/usr' 
'--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=shared' 
'--with-ncurses=shared' '--with-unixODBC=shared,/usr' '--with-openssl=shared' 
'--with-pgsql=shared,/usr' '--with-pspell=shared' '--with-snmp=shared' 
'--with-xmlrpc=shared' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' 
'--with-xsl=shared' '--with-tidy=shared,/usr' '--enable-dba=shared' 
'--with-db4=/usr' '--without-gdbm' '--with-cdb' '--with-inifile' 
'--with-flatfile' '--with-qdbm=/usr' '--enable-pdo=shared' 
'--with-pdo_sqlite=shared,/usr' '--with-pdo-mysql=shared,/usr' 
'--with-pdo-pgsql=shared,/usr' '--with-pdo-odbc=shared,unixODBC,/usr' 
'--with-sqlite=shared,/usr' '--enable-sqlite-utf8' '--enable-zip=shared' 
'--enable-suhosin=shared' '--disable-cgi'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
Scan this dir for additional .ini files => /etc/php5/conf.d
additional .ini files parsed => /etc/php5/conf.d/bz2.ini,
/etc/php5/conf.d/ctype.ini,
/etc/php5/conf.d/dom.ini,
/etc/php5/conf.d/gd.ini,
/etc/php5/conf.d/hash.ini,
/etc/php5/conf.d/iconv.ini,
/etc/php5/conf.d/json.ini,
/etc/php5/conf.d/mbstring.ini,
/etc/php5/conf.d/mcrypt.ini,
/etc/php5/conf.d/mhash.ini,
/etc/php5/conf.d/mysql.ini,
/etc/php5/conf.d/mysqli.ini,
/etc/php5/conf.d/pdo.ini,
/etc/php5/conf.d/pdo_mysql.ini,
/etc/php5/conf.d/pdo_sqlite.ini,
/etc/php5/conf.d/posix.ini,
/etc/php5/conf.d/sqlite.ini,
/etc/php5/conf.d/suhosin.ini,
/etc/php5/conf.d/tidy.ini,
/etc/php5/conf.d/tokenizer.ini,
/etc/php5/conf.d/xmlreader.ini,
/etc/php5/conf.d/xmlwriter.ini,
/etc/php5/conf.d/zlib.ini

PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, data, http, ftp, compress.bzip2, 
compress.zlib  
Registered Stream Socket Transports => tcp, udp, unix, udg
Registered Stream Filters => string.rot13, string.toupper, string.tolower, 
string.strip_tags, convert.*, consumed, bzip2.*, convert.iconv.*, zlib.*


This server is protected with the Suhosin Patch 0.9.6.2
Copyright (c) 2006 Hardened-PHP Project


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project


 _

Re: [fw-general] Zend_Validate_Alnum::isValid evaluating alnum strings as false

2007-06-22 Thread Andries Seutens


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.


AW: [fw-general] Zend_Validate_Alnum::isValid evaluating alnum strings as false

2007-06-22 Thread Daniel Freudenberger
Maybe i don’t get it.. but alnum should represent the character class 
[A-Za-z0-9]+ and this should match „foobar1“

 

Von: Andries Seutens [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 22. Juni 2007 15:36
An: Darby Felton
Cc: Graham Anderson; fw-general@lists.zend.com
Betreff: Re: [fw-general] Zend_Validate_Alnum::isValid evaluating alnum strings 
as false

 

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


Re: [fw-general] Zend_Validate_Alnum::isValid evaluating alnum strings as false

2007-06-22 Thread Andries Seutens





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.


Re: [fw-general] Zend_Validate_Alnum::isValid evaluating alnum strings as false

2007-06-22 Thread Darby Felton
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
> 


[fw-general] Zend_Validate_Alnum::isValid evaluating alnum strings as false

2007-06-21 Thread Graham Anderson
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