Bug #79552 [NEW]: preg_quote doesnt work on #
| From: | devste at devste dot com | Date: | Fri, 01 May 2020 08:59:49 +0000 |
| Subject: | Bug #79552 [NEW]: preg_quote doesnt work on # | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-226868@lists.php.net to get a copy of this message | ||
From: devste at devste dot com
Operating system:
PHP version: 7.2.30
Package: *Regular Expressions
Bug Type: Bug
Bug description:preg_quote doesnt work on #
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 bug report at https://bugs.php.net/bug.php?id=79552&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79552&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79552&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79552&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79552&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79552&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79552&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79552&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79552&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79552&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79552&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79552&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79552&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79552&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79552&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79552&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79552&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79552&r=mysqlcfg