Bug #78420 [NEW]: preg_match failed with Unicode character scripts

From: Date: Fri, 16 Aug 2019 09:51:03 +0000
Subject: Bug #78420 [NEW]: preg_match failed with Unicode character scripts
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222264@lists.php.net to get a copy of this message
From: noskov dot vlad at gmail dot com Operating system: PHP version: 7.4.0beta2 Package: PCRE related Bug Type: Bug Bug description:preg_match failed with Unicode character scripts Description: ------------ When running preg_match with Unicode character scripts in regular expression it always return 0. https://3v4l.org/sil9c Test script: --------------- var_dump(preg_match('~[\pL\p{Cyrillic}]~u', 'test')); Expected result: ---------------- int(1) Actual result: -------------- int(0) -- Edit bug report at https://bugs.php.net/bug.php?id=78420&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78420&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78420&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78420&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78420&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78420&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78420&r=support Expected behavior: https://bugs.php.net/fix.php?id=78420&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78420&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78420&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78420&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78420&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78420&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78420&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78420&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78420&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78420&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78420&r=mysqlcfg

« previous php.bugs (#222264) next »