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

From: Date: Sat, 18 May 2013 07:53:44 +0000
Subject: Doc #64876 [NEW]: preg_quote is about escaping, not quoting
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9856@lists.php.net to get a copy of this message
From: david at grudl dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:preg_quote is about escaping, not quoting 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 bug report at https://bugs.php.net/bug.php?id=64876&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64876&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64876&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64876&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64876&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64876&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64876&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64876&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64876&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64876&r=support Expected behavior: https://bugs.php.net/fix.php?id=64876&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64876&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64876&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64876&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64876&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64876&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64876&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64876&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64876&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64876&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64876&r=mysqlcfg

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