Bug #79709 [NEW]: Space regex

From: Date: Thu, 18 Jun 2020 05:55:53 +0000
Subject: Bug #79709 [NEW]: Space regex
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227531@lists.php.net to get a copy of this message
From: majed at dee dot codes Operating system: Linux PHP version: 7.4.7 Package: *Regular Expressions Bug Type: Bug Bug description:Space regex Description: ------------ Hi, This print_r(preg_match('/[\s\p{Arabic}]/u',' ')); Prints 1 in PHP7.3.11 but prints 0 in 7.4.7 . If that's is expected, it's not documented in the migration manual. https://www.php.net/manual/en/migration74.other-changes.php#migration74.other-changes.pkg-config Test script: --------------- print_r(preg_match('/[\s\p{Arabic}]/u',' ')); Expected result: ---------------- 1 Actual result: -------------- 0 -- Edit bug report at https://bugs.php.net/bug.php?id=79709&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79709&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79709&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79709&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79709&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79709&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79709&r=support Expected behavior: https://bugs.php.net/fix.php?id=79709&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79709&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79709&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79709&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79709&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79709&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79709&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79709&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79709&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79709&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79709&r=mysqlcfg

« previous php.bugs (#227531) next »