#31501 [NEW]: preg_match generates Warning: preg_match: internal pcre_fullinfo() error -3
From: bugs dot php dot net_0 at cementhorizon dot com
Operating system: RedHat Enterprise Linux 3
PHP version: 5.0.3
PHP Bug Type: PCRE related
Bug description: preg_match generates Warning: preg_match: internal pcre_fullinfo() error -3
Description:
------------
This is an extension of bug # 29914 which is an extension of bug # 29158
The first bug (bug # 29158) was bogusified by tony2001 because a whole
bunch of people jumped on and added unrelated bugs to the ticket.
The second bug (bug # 29914) was bogusified by either tony2001 or derik
saying "Don't use external PCRE lib, use bundled instead"
The problem is that this is a workaround not a bugfix. This is fine if one
is writing new code. One just uses the bundled regex tools and avoids using
preg_match. This is not acceptable if you're installing existing code, for
example the current stable release of Mediawiki, which uses the preg_match
function.
If you look at the php page for this function (
http://us4.php.net/manual/en/function.preg-match.php
) you can see that
this is not a deprecated function or says anything about not using this
under php5. It lists php5 as a version in which it's present and working.
I'm still unclear how this can be considered bogus. The bug is
reproducible, it happens across multiple users, and it's a function that
is part of many php projects out there.
There are more extensive details in bug # 29914
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-3
Actual result:
--------------
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=31501&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31501&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31501&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31501&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31501&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31501&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31501&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31501&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31501&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31501&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31501&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31501&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31501&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31501&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31501&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31501&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31501&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31501&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31501&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31501&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31501&r=mysqlcfg
Thread (5 messages)
- bugs dot php dot net_0 at cementhorizon dot com