PHP 4.0 Bug #9309: function ereg not return value (true or false)
| From: | krssak at upc dot uniba dot sk | Date: | Fri, 16 Feb 2001 23:35:03 +0000 |
| Subject: | PHP 4.0 Bug #9309: function ereg not return value (true or false) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46761@lists.php.net to get a copy of this message | ||
From: krssak@upc.uniba.sk
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