php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3564 escaping chars in ereg
Submitted: 2000-02-22 06:28 UTC Modified: 2002-10-01 14:56 UTC
From: if at syncopated dot net Assigned:
Status: Wont fix Package: Parser error
PHP Version: 3.0.14 OS: redhat 6.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: if at syncopated dot net
New email:
PHP Version: OS:

 

 [2000-02-22 06:28 UTC] if at syncopated dot net
this line worked just fine on 3.0.12 or maybe it was .10 - don't remember

if(!eregi("^[^@[:space:]]+@([[:alnum:]\-]+\.) +[[:alnum:]][[:alnum:]][[:alnum:]]?$", $email) )

now gets me :

Warning: Bad escape sequence: \- in /home/httpd/html/emanate/mailinglist.php3 on line 5
Warning: Bad escape sequence: \. in /home/httpd/html/emanate/mailinglist.php3 on line 5


 ./configure --with-apxs=/usr/local/apache/bin/apxs 
                    --with-config-file-path=/etc/httpd 
                    --with-mysql 
                    --with-system-regex

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 14:56 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.

use double \\ ?
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 19 12:01:26 2019 UTC