Bug #79552 [Opn->Nab]: preg_quote doesnt work on #

From: Date: Fri, 01 May 2020 09:09:46 +0000
Subject: Bug #79552 [Opn->Nab]: preg_quote doesnt work on #
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226869@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79552&edit=1 ID: 79552 Updated by: nikic@php.net Reported by: devste at devste dot com Summary: preg_quote doesnt work on # -Status: Open +Status: Not a bug Type: Bug Package: *Regular Expressions PHP Version: 7.2.30 Block user comment: N Private report: N New Comment: Yes, # is escaped since 7.3. See the changelog on the page you linked. Previous Comments: ------------------------------------------------------------------------ [2020-05-01 08:59:49] devste at devste dot com Description: ------------ --- From manual page: https://php.net/function.preg-quote --- Test script: --------------- echo preg_quote( 'foo#bar' ); Expected result: ---------------- foo\#bar Actual result: -------------- foo#bar (Note: works correctly in PHP 7.3+) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79552&edit=1

« previous php.bugs (#226869) next »