php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63284 Please upgrade PCRE
Submitted: 2012-10-16 06:11 UTC Modified: 2013-03-15 14:18 UTC
From: danielklein at airpost dot net Assigned: ab (profile)
Status: Closed Package: PCRE related
PHP Version: 5.4.7 OS:
Private report: No CVE-ID: None
 [2012-10-16 06:11 UTC] danielklein at airpost dot net
Description:
------------
Please upgrade PCRE. Version 8.12 is very old (15-Jan-2011). Current version is 8.31 (06-July-2012).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-17 21:13 UTC] pajoye@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: ab
 [2012-10-18 10:14 UTC] ab@php.net
Please try the patch from here

http://belsky.info/phpz/bugz/63297/pcre-8.31.patch.gz

Tested all the permutations of linux/windows 5.3/5.4/master ts/nts and all the PCRE tests pass for me.

Note that config.m4 and config.w32 was changed, so buildconf --force is needed for this to be compiled correctly.
 [2012-10-18 12:33 UTC] nicolas dot grekas+php at gmail dot com
This is a good idea!
Could we wait just a little for 8.32 to be released?
8.32 will support Unicode Extended Grapheme Clusters with \X and I think this is good for PHP's unicode support.
see http://bugs.exim.org/show_bug.cgi?id=1279
 [2012-10-18 14:44 UTC] ab@php.net
Well, if you look at the PCRE release frequency, it vary from one month to one year. 8.32 will surely come some when :)
 [2012-10-18 23:43 UTC] danielklein at airpost dot net
Can the latest PCRE be included in PHP every time it's released?
 [2012-10-19 01:32 UTC] mattficken@php.net
I built PHP_5_4 (newest snapshot) with your patch.

I tested it with all the PHPTs (all, including the PCRE tests) and all the PHPUnit tests from Joomla and found no regressions. I got no additional test failures after I applied your patch.
 [2012-10-19 08:05 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=276c5de0d86abab52a19f489dd74565fdec0d3ca
Log: Fixed bug #63284 PCRE upgrade to 8.31
 [2012-10-19 08:05 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2012-10-19 08:34 UTC] ab@php.net
Thanks for testing )

@danielklein
Theoretically it can be done, depends how much of other things one has on the plate right now. If you're highly interested having the newest PCRE, monitor it and do requests - later or sooner they'll be taken on )
 [2012-12-20 14:07 UTC] nicolas dot grekas+php at gmail dot com
Version 8.32 is out !

http://vcs.pcre.org/viewvc/code/tags/pcre-8.32/
 [2012-12-20 23:46 UTC] danielklein at airpost dot net
Good news Nicolas! I'm assuming this will need another change request to make it into a future version of PHP.
 [2013-03-13 09:02 UTC] ab@php.net
pcre 8.32 was merged a few weeks ago )
 [2013-03-14 22:37 UTC] danielklein at airpost dot net
Thanks ab. Are you monitoring this at the moment? It seems silly to raise a new request for every version of PCRE if someone is already taking care of it.
 [2013-03-15 14:18 UTC] ab@php.net
@danielklein, this time upgrade was done in hope to fix a bug, with was then something else anyway :) so it's still better to make a PR, especially if there are some important fixes there.
 [2014-10-07 23:21 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=276c5de0d86abab52a19f489dd74565fdec0d3ca
Log: Fixed bug #63284 PCRE upgrade to 8.31
 [2014-10-07 23:32 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=276c5de0d86abab52a19f489dd74565fdec0d3ca
Log: Fixed bug #63284 PCRE upgrade to 8.31
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC