Doc #64876 [Com]: preg_quote is about escaping, not quoting

From: Date: Sun, 19 May 2013 13:34:46 +0000
Subject: Doc #64876 [Com]: preg_quote is about escaping, not quoting
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9859@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64876&edit=1 ID: 64876 Comment by: cmbecker69 at gmx dot de Reported by: david at grudl dot com Summary: preg_quote is about escaping, not quoting Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: IMO the terms "quote"/"quoting" are absolutely fine here. Cf. <http://en.wikipedia.org/wiki/Quoting_(shell)>. Previous Comments: ------------------------------------------------------------------------ [2013-05-18 07:53:44] david at grudl dot com Description: ------------ There is a wrong description for function preg_quote at http://php.net/manual/en/function.preg-quote.php: Description: > preg_quote — Quote regular expression characters Return value: > Returns the quoted string. Correct description: > preg_quote — Escapes special characters used by regular expression. Name of this function > is wrong, it has nothing to do with quoting. Correct Return value: > Returns the escaped string. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64876&edit=1

« previous php.doc.bugs (#9859) next »