php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2067 Regular expression [0-9A-Za-z] works not properly
Submitted: 1999-08-16 07:39 UTC Modified: 2000-07-28 21:22 UTC
From: maxx at via dot ecp dot fr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.11 OS: Debian GNU/Linux Potato
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: maxx at via dot ecp dot fr
New email:
PHP Version: OS:

 

 [1999-08-16 07:39 UTC] maxx at via dot ecp dot fr
bug.php3 :
<?
    $string = ereg_replace("[0-9A-Za-z]", "", $argv[1]);
    echo "$string\n";
?>

php3 bug.php3 '0Aa' => ''
php3 bug.php3 '0Aa-' => '-'
php3 bug.php3 '0Aa+' => ''

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-11 19:42 UTC] joey at cvs dot php dot net
Unable to verify on a debian 2.1 (with _SOME_ potato stuff) 3.0.12. Perhaps
you compiled --with-system-regex? Is the bug still there (a/o 3.0.12)?
 [1999-11-11 19:42 UTC] joey at cvs dot php dot net
Setting as analyzed until more info avail.
 [2000-07-28 21:22 UTC] hholzgra@php.net
it is not ereg_replace's fault, the command line parser is to blame

see bug id #4112
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 10 20:01:29 2024 UTC