php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #4218 preg_quote doesn't quote /
Submitted: 2000-04-21 12:58 UTC Modified: 2000-04-21 13:01 UTC
From: zagrodnick at promp dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Release Candidate 1 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zagrodnick at promp dot de
New email:
PHP Version: OS:

 

 [2000-04-21 12:58 UTC] zagrodnick at promp dot de
As documented preg_quote does not quote "/".
Is it intendet not to do so or did you just forgot it? ;-)

IMO / is a part of the regular expression syntax?!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-21 13:01 UTC] andrei at cvs dot php dot net
No, / is not part of regular expressions syntax so it's not supposed to be quoted.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 25 20:00:01 2026 UTC