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
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: 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: Wed Jun 17 00:00:02 2026 UTC