[PHP-DEV] PHP 4.0 Bug #9309: function ereg not return value (true or false) From: krssak <email protected>
Date: 02/16/01

From: krssak <email protected>
Operating system: debian linux
PHP version: 4.0.3pl1
PHP Bug Type: *Regular Expressions
Bug description: function ereg not return value (true or false)

$id_size=strlen($id_usr);
if (!ereg("([0-9]{$id_size})",$id_usr)){
  echo "Error ID";
}

-- 
Edit Bug report at: http://bugs.php.net/?id=9309&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>