Bug #75552 [Opn->Nab]: php-7.1.12/ext/pcre/pcrelib/pcre_study.c:1372: bad mask ?
| From: | requinix@php.net | Date: | Wed, 22 Nov 2017 11:47:27 +0000 |
| Subject: | Bug #75552 [Opn->Nab]: php-7.1.12/ext/pcre/pcrelib/pcre_study.c:1372: bad mask ? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212677@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75552&edit=1
ID: 75552
Updated by: requinix@php.net
Reported by: dcb314 at hotmail dot com
Summary: php-7.1.12/ext/pcre/pcrelib/pcre_study.c:1372: bad
mask ?
-Status: Open
+Status: Not a bug
Type: Bug
-Package: *General Issues
+Package: PCRE related
Operating System: linux
-PHP Version: 7.2.0RC6
+PHP Version: 7.1
Block user comment: N
Private report: N
New Comment:
Not a PHP bug.
The typo was fixed in PCRE 8.39 (PHP 7.1 uses 8.38) but in their own words it "could not
actually affect anything" anyways.
Note that PHP 7.2 uses PCRE 8.41 and PHP 7.3 will bring a switch to PCRE2.
Previous Comments:
------------------------------------------------------------------------
[2017-11-22 11:27:47] dcb314 at hotmail dot com
Description:
------------
php-7.1.12/ext/pcre/pcrelib/pcre_study.c:1372:35: warning: â<<â in boolean context,
did you mean â<â ? [-Wint-in-bool-context]
Source code is
if ((map[c/8] && (1 << (c&7))) != 0)
maybe better code
if ((map[c/8] & (1 << (c&7))) != 0)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75552&edit=1