php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33367 php-504 --with-pcre-regex: "preg_match: internal pcre_fullinfo() error -3"
Submitted: 2005-06-16 19:33 UTC Modified: 2005-06-25 01:00 UTC
Votes:8
Avg. Score:4.2 ± 1.4
Reproduced:6 of 6 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (16.7%)
From: opemacnews at speakeasy dot net Assigned:
Status: No Feedback Package: *Configuration Issues
PHP Version: 5CVS-2005-06-17 OS: OSX 10.4.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: opemacnews at speakeasy dot net
New email:
PHP Version: OS:

 

 [2005-06-16 19:33 UTC] opemacnews at speakeasy dot net
Description:
------------
i've been building/using php503 on OSX10.3.x for awhile with no problems.

after recently updating to php504 on OSX10.4.1, i can get a successful
build/install with my ususal cofig (shown below), EXCEPT for the inclusion of
an EXTERNAL pcre v50.

with a config of:

  ./configure \
  --disable-debug \
  --prefix=/usr/local/php5 --with-layout=PHP \
	--with-config-file-path=/var/Settings/PHP5 \
	--sysconfdir=/var/Settings/PHP5 \
	--with-pgsql=/usr/local/pgsql \
	--with-db4=/usr/local/berkeley-db \
	--with-mnogosearch=/usr/local/mnogosearch \
	--with-apxs2=/usr/local/apache2/sbin/apxs \
	--localstatedir=/var/Process \
	--mandir=/var/Documentation/man \
	--libdir=/usr/local/php_libs \
	--with-pear=/usr/local/php_libs \
  --enable-shared --disable-static \
  --enable-cli \
  --disable-cgi \
  --disable-dmalloc \
  --with-tsrm-pthreads \
  --enable-shmop --enable-sockets \
  --enable-inline-optimization \
  --enable-xml --enable-libxml --with-libxml-dir=/usr/local \
  --with-java=/Library/Java/Home \
  --with-openssl=/usr/local/ssl --with-openssl-dir=/usr/local/ssl \
  --with-zlib --with-zlib-dir=/usr/local \
  --with-imap=/usr/local/imap --enable-mailparse \
  --with-imap-ssl=/usr/local/ssl \
  --with-mcrypt --with-mhash=/usr/local \
  --without-gmp \
  --with-gettext=/usr/local \
  --with-gd=/usr/local/gd \
  --with-png-dir=/usr/local \
  --with-jpeg-dir=/usr/local \
  --with-tiff-dir=/usr/local \
  --enable-magic-quotes \
  --enable-calendar \
  --with-kerberos=/usr \
  --with-freetype-dir=/usr/X11R6 \
  --with-xpm-dir=/usr/X11R6 \
  --enable-exif \
  --enable-ftp \
  --enable-bcmath \
  --enable-mbstring \
  --enable-dio \
  --enable-session \
  --enable-soap \
  --without-snmp \
  --with-readline=/usr/local/lib \
  --without-cyrus \
  --with-pcre-regex


all's well & good.

but, with the SAME config, except for:

	...
	--with-pcre-regex=/usr/local/pcre50

'make' is still OK, but 'make install' fails with:

	Installing PEAR environment:      /usr/local/php_libs/
	
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Config.php on line 624
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Registry.php on line 107
	...
	/usr/ports/php-5.0.4/pear/PEAR/Registry.php on line 107
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Frontend/CLI.php on line 54
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Frontend/CLI.php on line 57
	[PEAR] Archive_Tar    - already installed: 1.1
	[PEAR] Console_Getopt - already installed: 1.2
	[PEAR] PEAR           - already installed: 1.3.5
	Wrote PEAR system config file at: /var/Settings/PHP5/pear.conf
	You may want to add: /usr/local/php_libs to your php.ini include_path
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Config.php on line 624
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Registry.php on line 107
	...
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Registry.php on line 107
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Frontend/CLI.php on line 54
	Warning: preg_match: internal pcre_fullinfo() error -3 in
/usr/ports/php-5.0.4/pear/PEAR/Frontend/CLI.php on line 57
	[PEAR] HTML_Template_IT- already installed: 1.1
	[PEAR] Net_UserAgent_Detect- already installed: 2.0.1
	[PEAR] XML_RPC        - already installed: 1.2.2
	Installing build environment:     /usr/local/php5/lib/php/build/
	Installing header files:          /usr/local/php5/include/php/
	Installing helper programs:       /usr/local/php5/bin/
	  program: phpize
	  program: php-config
	  program: phpextdist
	
and subsequent attempts to install PEAR mods are met with the same 
preg_match
errors.

again, on OSX 10.3.9+php503, using external pcre-regex --> v50 was fine ...

there were some OLD discussions where these warnings/errors cropped up:

	http://bugs.php.net/bug.php?id=29914

and old bugs (e.g. #33334) where the advice was simply "use the bundled 
pcre" rather than to fix the problem ...

something clearly changed here ...

richard


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-16 23:53 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-06-17 01:55 UTC] OpenMacNews at speakeasy dot net
hi tony,

per suggestion, i've co'd CVS:

now, configure, as above, with:

      --with-pcre-regex=/usr/local/pcre50

completes correctly, as do 'make' and 'make install'.

however, a subsequent attempt to (re)setup PEAR as usual w/:

    lynx -source http://go-pear.org | php 
    ...
    1-6, 'all' or Enter to continue:  (ENTER)

still results in:

...
PHP Warning:  preg_match: internal pcre_fullinfo() error -3 in /usr/ports/- on 
line 510
PHP Warning:  preg_match: internal pcre_fullinfo() error -3 in /usr/ports/- on 
line 510
PHP Warning:  preg_match: internal pcre_fullinfo() error -3 in /usr/ports/- on 
line 510
PHP Warning:  preg_match: internal pcre_fullinfo() error -3 in /usr/ports/- on 
line 510
PHP Warning:  preg_match: internal pcre_fullinfo() error -3 in /usr/ports/- on 
line 510
PHP Warning:  preg_match: internal pcre_fullinfo() error -3 in /usr/ports/- on 
line 510

The following PEAR packages are bundled with PHP: DB, Net_Socket, 
Net_SMTP,
Mail, XML_Parser, PHPUnit.
Would you like to install these as well? [Y/n] :


so, i guess i'm half way there ...

given the CVS co of php, is this still the 'right way' to setup pear?

richard
 [2005-06-17 11:04 UTC] tony2001@php.net
--with-pcre-regex=/usr/local/pcre50 - this is senseless, because 5.1 already has PCRE 5.0 bundled.
 [2005-06-17 18:44 UTC] openmacnews at speakeasy dot net
jeez, we're back to the "senseless" & "bogus" sort of comments. politely report 
an issue, and you get this? that was quick.

how quickly y'all forget the reason we prefer to depend on EXTERNAL pcre -- 
ages of ignored conflicts between php, apache, etc.

as for "senseless" ... what's senseless is that it's an included option, used to 
work and doesn't now.

but clearly, it's "your" software ... so i'll just keep my feedback to myself in the 
future.
 [2005-06-17 21:37 UTC] tony2001@php.net
>jeez, we're back to the "senseless" & "bogus" sort of comments.
you mean there is a lot of sense to use something external and poorly tested when the same version is bundled?
well... what can I say then?

furthermore, I can't reproduce it on Linux.
please try with bundled one and see if it works.
 [2005-06-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC