php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68704 incorrect parenthesis
Submitted: 2014-12-31 09:13 UTC Modified: -
From: honey at internot dot info Assigned:
Status: Closed Package: PCRE related
PHP Version: master-Git-2014-12-31 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: honey at internot dot info
New email:
PHP Version: OS:

 

 [2014-12-31 09:13 UTC] honey at internot dot info
Description:
------------
Hi,

In php_pcre.c on L379:

378        if (BG(locale_string) &&
379            (!BG(locale_string)->len != 1 || !BG(locale_string)->val[0] != 'C')) 

It should probably be:

!(BG(locale_string)->len != 1) || [..]

or something like that.

Either way, it's incorrect checking in both ways.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-08 08:38 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d7fd9406915e3b8cf66764305e82b0cae2414545
Log: Fixed #68704
 [2015-01-08 08:38 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:40 UTC] davey@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d7fd9406915e3b8cf66764305e82b0cae2414545
Log: Fixed #68704
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 18 15:03:37 2021 UTC