From:             admin at profvince dot com
Operating system: LFS 5.1pre1
PHP version:      5.0.1
PHP Bug Type:     PCRE related
Bug description:  Warning with preg_match in apache module

Description:
------------
Following of bug #29158 (http://bugs.php.net/bug.php?id=29158)

I've installed php-5.0.0, and I've experienced a warning with
preg_match, related with PCRE, no matter the pattern or the string
(especially on first page onf phpmyadmin).

Warning: preg_match: internal pcre_fullinfo() error -3 in [myscript] on
line [line]

This error doesn't occur with PHP-5.0.0RC2 and PHP-5.0.0RC3 (and the
same php configuration)

I've tested with php-5.0.1 : same issue.

BUT, i just realized that this bug doens't occurs with PHP 5.0.1 CLI,
although it's still present with Apache module.
(I didn't tried with PHP 5.0.0 CLI)

Please, only reply if you have the same error message. Thanks.

Environment :
-------------

LFS 5.1pre1
Linux 2.6.8.1
Apache 2.0.50 (with mpm=worker)
PCRE version 4.5 01-December-2003
Mysql 4.0.20

PHP configure :
---------------

./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-config-file-path=/etc/apache
--with-calendar
--with-pdf
--enable-trans-sid
--enable-mbstring
--enable-dbase
--with-dom
--with-sablot
--with-ttf
--enable-gd-imgstrttf
--enable-gd-native-ttf
--enable-bcmath
--with-bz2=/usr
--with-curl=/usr
--with-curlwrappers
--enable-exif
--enable-ftp
--with-gd=/usr
--with-freetype-dir=/usr
--with-gettext=/usr
--with-gmp=/usr
--with-ldap=/usr
--with-openssl=/usr
--with-mysql=/usr/local/mysql
--with-ncurses=/usr
--with-pcre-regex=/usr
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-zlib=/usr
--with-tiff-dir=/usr
--with-pspell=/usr
--with-libxml-dir=/usr
--with-openssl-dir=/usr
--enable-sockets
--with-libexpat-dir=/usr
--with-xsl=/usr
--enable-memory-limit
--enable-zend-multibyte

diff php.ini-dist php.ini :
---------------------------

15c15
< ; About php.ini   ;
---
> ; About this file ;
58,61d57
< ;
< ;;;;;;;;;;;;;;;;;;;
< ; About this file ;
< ;;;;;;;;;;;;;;;;;;;
113,114d108
< ; Note: output_handler must be empty if this is set 'On' !!!!
< ;       Instead you must use zlib.output_handler.
165d158
< ;
204c197
< ;open_basedir =
---
> open_basedir = /srv/http
209c202
< disable_functions =
---
> disable_function = php_uname, putenv, getmyuid, getmypid, passthru,
leak, listen, diskfreespace, tmpfile, link, ignore_user_abord, shell_exec,
popen, dl, set_time_limit, exec, system, highlight_file, source,
show_source, fpaththru, virtual, posix_ctermid, posix_getcwd,
posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid,
posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid,
posix_getpgrp, posix_getpid, posix_getppid, posix_getpwnam,
posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty,
posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid,
posix_setpgid, posix_setsid, posix_setuid, posix_times, posix_ttyname,
posix_uname
244d236
<
274,277d265
< ;   - Show all errors, except for notices and coding standards warnings
< ;
< ;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
< ;
390c378
< register_long_arrays = On
---
> register_long_arrays = Off
395c383
< register_argc_argv = On
---
> register_argc_argv = Off
398c386
< post_max_size = 8M
---
> post_max_size = 2M
455c443
< enable_dl = On
---
> enable_dl = Off
497c485
< ;upload_tmp_dir =
---
> upload_tmp_dir = /srv/http/upload
548d535
<
569d555
< ;extension=php_java.dll
609d594
< smtp_port = 25
620c605
< ;mail.force_extra_parameters =
---
> ;mail.force_extra_paramaters =
653c638
< mysql.allow_persistent = On
---
> mysql.allow_persistent = Off
656c641
< mysql.max_persistent = -1
---
> mysql.max_persistent = 0
688c673
< ; SQL-Errors will be displayed.
---
> ; SQL-Erros will be displayed.
736,737c721
< ; Detect broken persistent links always with pg_pconnect().
< ; Auto reset feature requires a little overheads.
---
> ; Detect broken persistent links always with pg_pconnect(). Need a
little overhead.
747d730
< ; Notice message logging require a little overheads.
879c862
< ;session.save_path = "/tmp"
---
> session.save_path = "4;/srv/http/temp"
1186,1194d1168
< [soap]
< ; Enables or disables WSDL caching feature.
< soap.wsdl_cache_enabled=1
< ; Sets the directory name where SOAP extension will put cache files.
< soap.wsdl_cache_dir="/tmp"
< ; (time to live) Sets the number of second while cached file will be
used
< ; instead of original one.
< soap.wsdl_cache_ttl=86400
<

Reproduce code:
---------------
<?php
preg_match('@([0-9]{1,2}).([0-9]{1,2}).([0-9]{1,2})@', phpversion(),
$match);
echo 'PHP version : '.$match[1].'-'.$match[2].'-'.$match[3];
?>

Expected result:
----------------
PHP version : 5-0-1

Actual result:
--------------
1�) With PHP - CLI :

PHP version : 5-0-1

2�) With PHP - Apache module (libphp5.so)

Warning: preg_match: internal pcre_fullinfo() error -3 in test.php on line
2
PHP version : --

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

Reply via email to