From:             vklimin at 510710 dot com
Operating system: Debian 10
PHP version:      8.0.6
Package:          PECL
Bug Type:         Bug
Bug description:The expression does not compile correctly

Description:
------------
The expression does not compile correctly and generates a warning.

Test script:
---------------
var_dump( preg_match( '#\Q/\E#', '/' ) );
var_dump( preg_match( '/\Q/\E/', '/' ) );

Expected result:
----------------
int(1)
int(1)

Actual result:
--------------
int(1)
Warning:  preg_match(): Unknown modifier '\' in [...][...] on line 1
bool(false)

-- 
Edit bug report at https://bugs.php.net/bug.php?id=81060&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81060&r=fixed
Fixed in release:                 
https://bugs.php.net/fix.php?id=81060&r=alreadyfixed
Need backtrace:                   
https://bugs.php.net/fix.php?id=81060&r=needtrace
Need Reproduce Script:            
https://bugs.php.net/fix.php?id=81060&r=needscript
Try newer version:                
https://bugs.php.net/fix.php?id=81060&r=oldversion
Not developer issue:              
https://bugs.php.net/fix.php?id=81060&r=support
Expected behavior:                
https://bugs.php.net/fix.php?id=81060&r=notwrong
Not enough info:                  
https://bugs.php.net/fix.php?id=81060&r=notenoughinfo
Submitted twice:                  
https://bugs.php.net/fix.php?id=81060&r=submittedtwice
register_globals:                 
https://bugs.php.net/fix.php?id=81060&r=globals
PHP version support discontinued: 
https://bugs.php.net/fix.php?id=81060&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81060&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81060&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81060&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81060&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81060&r=nozend
MySQL Configuration Error:        
https://bugs.php.net/fix.php?id=81060&r=mysqlcfg

-- 
PECL development discussion Mailing List (https://pecl.php.net/)
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to