Bug 192221 - PHP 5.1.4 pcre problem
Summary: PHP 5.1.4 pcre problem
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: 5
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-18 14:00 UTC by Andrey Astashov
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-05-18 14:16:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrey Astashov 2006-05-18 14:00:45 UTC
<b>Description of problem:</b>
When i install binary of php 5.1.4 from yum fc5 core repos, i got warnings on 
all scripts - for ex problem with pear:

[root@mvc yum.repos.d]# pear list

Warning: preg_match: internal pcre_fullinfo() error -3 in CLI.php on line 70
Warning: preg_match: internal pcre_fullinfo() error -3 in CLI.php on line 73
Warning: preg_match: internal pcre_fullinfo() error -3 in Config.php on line 957
ERROR: The default config file is not a valid config file or is corrupted.

When i try to rebuild src.rpm, i got this:

/bin/sh /home/mvc/src/php-5.1.4/libtool --silent --preserve-dup-deps --mode=
compile gcc -DEXPORT= -DNEWLINE=10 -DSUPPORT_UTF8 -DSUPPORT_UCP -DLINK_SIZE=2 -
DPOSIX_MALLOC_THRESHOLD=10 -DMATCH_LIMIT=10000000 -DMATCH_LIMIT_RECURSION=
10000000 -Iext/pcre/ -I/home/mvc/src/php-5.1.4/ext/pcre/ -DPHP_ATOM_INC -I/home/
mvc/src/php-5.1.4/include -I/home/mvc/src/php-5.1.4/main -I/home/mvc/src/php-5.
1.4 -I/usr/include/libxml2 -I/usr/kerberos/include -I/home/mvc/src/php-5.1.4/ext
/date/lib -I/usr/include/pspell -I/home/mvc/src/php-5.1.4/TSRM -I/home/mvc/src/
php-5.1.4/Zend    -I/usr/include -g -O2  -prefer-pic -c /home/mvc/src/php-5.1.4/
ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo
/home/mvc/src/php-5.1.4/ext/pcre/php_pcre.c: In function 'php_pcre_match':
/home/mvc/src/php-5.1.4/ext/pcre/php_pcre.c:466: error: 'PCRE_INFO_NAMECOUNT' 
undeclared (first use in this function)
/home/mvc/src/php-5.1.4/ext/pcre/php_pcre.c:466: error: (Each undeclared 
identifier is reported only once
/home/mvc/src/php-5.1.4/ext/pcre/php_pcre.c:466: error: for each function it 
appears in.)
/home/mvc/src/php-5.1.4/ext/pcre/php_pcre.c:478: error: 'PCRE_INFO_NAMETABLE' 
undeclared (first use in this function)
/home/mvc/src/php-5.1.4/ext/pcre/php_pcre.c:479: error: 'PCRE_INFO_NAMEENTRYSIZE
' undeclared (first use in this function)

build options is - 
'./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i
386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '
--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/
share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/
libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share
/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=
lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--
disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--
with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir
=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '
--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-
pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-
layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-
sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-
track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos
' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit
' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-
mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '-
-with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--
without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-
pdo' '--disable-xmlreader' '--disable-xmlwriter'

This issu described in php bug list - see http://bugs.php.net/bug.php?id=34921.

I suggest to use internal pcre definition - to replace '--with-pcre-regex=/usr' 
with '--with-pcre-regex'.

<b>Version-Release number of selected component (if applicable):</b>
php-5.1.4

<b>How reproducible:</b>

<b>Steps to Reproduce:</b>
1. Install php-5.1.4, php-pear from yum fc5 core repos
2. Run "pear list"

  
<b>Actual results:</b>
Warning: preg_match: internal pcre_fullinfo() error -3 in CLI.php on line 70
Warning: preg_match: internal pcre_fullinfo() error -3 in CLI.php on line 73
Warning: preg_match: internal pcre_fullinfo() error -3 in Config.php on line 957
ERROR: The default config file is not a valid config file or is corrupted.

<b>Expected results:</b>
List of installed pear packages

<b>Additional info:</b>
No info

Comment 1 Joe Orton 2006-05-18 14:04:08 UTC
Works fine here.  Is this an upgrade from a previous FC install?  I'd guess you
have an old install of pcre?

# rpm -q pcre
# yum update pcre
# pear list

Comment 2 Andrey Astashov 2006-05-18 14:06:28 UTC
[root@mvc src]# rpm -q pcre
pcre-6.3-1.2.1
[root@mvc src]# rpm -q pcre-devel
pcre-devel-6.3-1.2.1
[root@mvc src]# yum update pcre
...
Could not find update match for pcre
No Packages marked for Update/Obsoletion
[root@mvc src]# pear list
Warning: preg_match: internal pcre_fullinfo() error -3 in CLI.php on line 70
Warning: preg_match: internal pcre_fullinfo() error -3 in CLI.php on line 73
Warning: preg_match: internal pcre_fullinfo() error -3 in Config.php on line 957
ERROR: The default config file is not a valid config file or is corrupted.




Comment 3 Joe Orton 2006-05-18 14:10:13 UTC
Please run:

# strace -eopen -opear.s pear list

and attach the "pear.s" to this bug report.

Comment 4 Andrey Astashov 2006-05-18 14:15:32 UTC
Problem solved - i found old bogus libpcre.so in /usr/local/lib 
Thank you for support.



Note You need to log in before you can comment on or make changes to this bug.