ID:               33367
 Comment by:       openmacnews at speakeasy dot net
 Reported By:      opemacnews at speakeasy dot net
 Status:           Feedback
 Bug Type:         *Configuration Issues
 Operating System: OSX 10.4.1
 PHP Version:      5.0.4
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2005-06-17 11:04:13] [EMAIL PROTECTED]

--with-pcre-regex=/usr/local/pcre50 - this is senseless, because 5.1
already has PCRE 5.0 bundled.

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

[2005-06-17 01:55:02] 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-16 23:53:39] [EMAIL PROTECTED]

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-16 19:33:29] 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



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


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

Reply via email to