Bug #69689 [Com]: Version number
| From: | gui@php.net | Date: | Sat, 13 Jun 2015 19:36:17 +0000 |
| Subject: | Bug #69689 [Com]: Version number | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193418@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69689&edit=1
ID: 69689
Comment by: gui@php.net
Reported by: opitz dot alexander at googlemail dot com
Summary: Version number
Status: Re-Opened
Type: Bug
Package: PCRE related
Operating System: All
PHP Version: 5.6.9
Assigned To: stas
Block user comment: N
Private report: N
New Comment:
After digging a little further and executing the update_pre.php script in ext/pcre against
pcre-8.37, it looks that pcrelib has been updated correctly to 8.37, only PCRE_MINOR is wrong.
Here is a patch. Please verify.
Previous Comments:
------------------------------------------------------------------------
[2015-06-12 23:42:34] gui@php.net
It looks like the fix is incomplete (one discussion here : https://github.com/gplessis/dotdeb-php5/issues/85).
Starting from the sources from www.php.net, I'm still getting a wrong version in phpinfo() :
$ tar xf php-5.6.10.tar.xz
$ cd php-5.6.10/
$ grep '^#define VERSION ' ext/pcre/pcrelib/config.h
#define VERSION "8.37"
$ ./configure --disable-all --enable-cli
$ make
$ ./sapi/cli/php -i|grep 'PCRE Library Version'
PCRE Library Version => 8.36 2014-09-26
I tested on several environnements (Dockerized Wheezy, stock Wheezy, OS X). Always the same result.
After some investigation, I found that the "PCRE Library Version" comes from the
pcre_version() function from the bundled PCRE library
(https://github.com/php/php-src/blob/php-5.6.10/ext/pcre/pcrelib/pcre_version.c#L94) and that the
upstream fix is incomplete : PCRE_MINOR has not been changed in pcre.h
(https://github.com/php/php-src/blob/php-5.6.10/ext/pcre/pcrelib/pcre.h#L44-L47).
Please make sure that the bundled PCRE library is fully updated to 8.37.
------------------------------------------------------------------------
[2015-05-31 04:56:27] stas@php.net
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2015-05-27 12:13:26] vaclav dot novotny at edgedesign dot cz
I have the same issue with v5.5.25. Downgrade to v5.5.24 fixed it.
------------------------------------------------------------------------
[2015-05-22 07:46:16] opitz dot alexander at googlemail dot com
Description:
------------
In commit 95fa72799298300f310c630a6c854f511d083bcc the libpcre was updated from 8.36 to 8.37 but the
version number (and maybe other parts?) in config.h was left out.
So libpcre 8.37 will call themself 8.36 (and as I didn't check yet maybe some other parts are
missing too).
Expected result:
----------------
8.37
Actual result:
--------------
8.36
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69689&edit=1