Bug #60986 [Ctl->Csd]: pcre_get_compiled_regex_cache: php_pcre.c: undefined reference to 'pcre_info'

From: Date: Mon, 06 Feb 2012 18:23:45 +0000
Subject: Bug #60986 [Ctl->Csd]: pcre_get_compiled_regex_cache: php_pcre.c: undefined reference to 'pcre_info'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-167223@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60986&edit=1

 ID:                 60986
 Updated by:         rasmus@php.net
 Reported by:        j0inty at stollfuss dot net
 Summary:            pcre_get_compiled_regex_cache: php_pcre.c: undefined
                     reference to 'pcre_info'
-Status:             Critical
+Status:             Closed
 Type:               Bug
 Package:            PCRE related
 Operating System:   Linux
 PHP Version:        5.4.0RC7
-Assigned To:        
+Assigned To:        rasmus
 Block user comment: N
 Private report:     N

 New Comment:

Fix committed to 5.3/5.4/trunk and will be in the next releases.


Previous Comments:
------------------------------------------------------------------------
[2012-02-06 18:18:48] rasmus@php.net

Automatic comment from SVN on behalf of rasmus
Revision: http://svn.php.net/viewvc/?view=revision&revision=323097
Log: Safer way to call pcre_fullinfo - bug 60986

------------------------------------------------------------------------
[2012-02-06 18:11:51] rasmus@php.net

Automatic comment from SVN on behalf of rasmus
Revision: http://svn.php.net/viewvc/?view=revision&revision=323096
Log: Fix for bug 60986

------------------------------------------------------------------------
[2012-02-06 18:01:32] olemarkus at gentoo dot org

Regarding the proposed patch, we were alerted about a possible null pointer dereference. See https://bugs.gentoo.org/show_bug.cgi?id=402357#c10

------------------------------------------------------------------------
[2012-02-06 13:04:36] pierre at archlinux dot de

This also affects the 5.3 branch. The problem is the use of the pcre_info function which was
deprecated and repalced by pcre_fullinfo 12 years ago. This function was now removed with pcre 8.30.

I only found one real use of it and some exports; I have attached a patch that might work. Note the
I have no idea about php internals; so this might be entirely stupid or dangerous.

Also note that you might not be able to compile the apache module as apache itself seems also to be
incompatible with pcre 8.30

Greetings,

Pierre

------------------------------------------------------------------------
[2012-02-06 10:06:44] j0inty at stollfuss dot net

Description:
------------
Hi,

If you try to compile the current RC7 of php 5.4.0 the Linker crash with the following message.

ext/pcre/php_pcre.o: In function `pcre_get_compiled_regex_cache':
php_pcre.c:(.text+0xb8f): undefined reference to `pcre_info'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Fehler 1

The reason is the new libpcre-8.30 which was today in my update list.

dev-libs/libpcre-8.30-r2

You can find a full build.log posted on http://paste.pocoo.org/show/546652/ .

regards
j0inty



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60986&edit=1


Thread (5 messages)

« previous php.bugs (#167223) next »