php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64100 in the documentation, in preg_quote, in the "list of characters" / should be in
Submitted: 2013-01-29 20:23 UTC Modified: 2013-03-02 14:29 UTC
From: auditor400 at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
 [2013-01-29 20:23 UTC] auditor400 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.preg-quote#refsect1-function.preg-
quote-description
---
in the documentation, in preg_quote, in the "list of characters" / should be in 
the lis of characters in my opinion, since it is affected by the funcion 
(escaped).


Expected result:
----------------
/ should be in the list

Actual result:
--------------
/ is not on the list

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-31 13:24 UTC] narf at bofh dot bg
No, it's not:

php > var_dump(preg_quote('/'));
string(1) "/"
 [2013-03-02 14:29 UTC] salathe@php.net
-Status: Open +Status: Not a bug
 [2013-03-02 14:29 UTC] salathe@php.net
The "/" character is only escaped when specified as the $delimiter argument.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 05:00:01 2026 UTC