From:             opemacnews at speakeasy dot net
Operating system: OSX 10.4.1
PHP version:      5.0.4
PHP Bug Type:     *Configuration Issues
Bug description:  php-504 --with-pcre-regex: "preg_match: internal 
pcre_fullinfo() error -3"

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


-- 
Edit bug report at http://bugs.php.net/?id=33367&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33367&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33367&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33367&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33367&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33367&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33367&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33367&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33367&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33367&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33367&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33367&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33367&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33367&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33367&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33367&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33367&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33367&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33367&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33367&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33367&r=mysqlcfg

Reply via email to