#50769 [Opn->Bgs]: Omitted backslash in backreference

From: Date: Fri, 15 Jan 2010 15:43:51 +0000
Subject: #50769 [Opn->Bgs]: Omitted backslash in backreference
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3716@lists.php.net to get a copy of this message
ID: 50769 Updated by: degeberg@php.net Reported By: marianofelice at yahoo dot com -Status: Open +Status: Bogus Bug Type: Documentation problem PHP Version: Irrelevant New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2010-01-15 15:03:25] marianofelice at yahoo dot com Description: ------------ In example 1, a backslash has been omitted at the beginning of the replacement string. It reads "$replacement = '${1}1,$3';" when it should be "$replacement = '\${1}1,$3';". Reproduce code: --------------- --- From manual page: function.preg-replace#Examples --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50769&edit=1

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