#48657 [Opn->Csd]: preg_quote now escapes "-", but doc was not updated accordingly

From: Date: Tue, 23 Jun 2009 10:03:47 +0000
Subject: #48657 [Opn->Csd]: preg_quote now escapes "-", but doc was not updated accordingly
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2395@lists.php.net to get a copy of this message
ID: 48657 Updated by: rquadling@php.net Reported By: fabien dot potencier at symfony-project dot org -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: ALL PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-06-23 09:01:14] fabien dot potencier at symfony-project dot org Description: ------------ As of PHP 5.3.0RC4, preg_quote() now also escapes the '-' (minus) character (cf. http://bugs.php.net/bug.php?id=47229). The documentation should reflect this change. Expected result: ---------------- New sentence The special regular expression characters are: . \ + * ? [ ^ ] $ ( ) { } = ! < > | : - And perhaps adds somethings like this: The - character is only escaped since PHP 5.3. Actual result: -------------- Here is the current sentence: The special regular expression characters are: . \ + * ? [ ^ ] $ ( ) { } = ! < > | : ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48657&edit=1

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