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

 ID:                 43227
 Comment by:         ciprianmp at yahoo dot com
 Reported by:        baco at infomaniak dot ch
 Summary:            eregi() mbregex compile err: premature end of
                     regular expression in
 Status:             Closed
 Type:               Bug
 Package:            mbstring related
 Operating System:   Linux Debian
 PHP Version:        5.2.5
 Assigned To:        hirokawa
 Block user comment: N
 Private report:     N

 New Comment:

How was this solved?

I have clients encountering this similar issue on 5.2.12 either. So what
the 

actual fix should be?

Hosting teams won't look up this error in order to apply the fixes. They
ask for 

the exact "what to do" from the customer report. So what can we request
to be 

done, especially on shared servers?

Thank you.


Previous Comments:
------------------------------------------------------------------------
[2009-09-11 06:08:26] s...@php.net

Automatic comment from SVN on behalf of torben
Revision: http://svn.php.net/viewvc/?view=revision&revision=288256
Log: Note that mbstring.func_overload is once again PHP_INI_SYSTEM only.
Addresses bugs #49238, #43227, and #49189.

This really should have been mentioned in the release notes for 5.2.7
and 5.3.0.

------------------------------------------------------------------------
[2009-08-07 09:37:12] j...@php.net

This was fixed.

------------------------------------------------------------------------
[2008-07-13 01:37:23] hirok...@php.net

Please try using this CVS snapshot:

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

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi



------------------------------------------------------------------------
[2008-07-11 21:32:22] j...@php.net

Assigned to mbstring maintainer.

------------------------------------------------------------------------
[2008-02-25 13:31:02] baco at infomaniak dot ch

As workaround try to force mbstring.func_overload = 0 in your php.ini

and use this patch.



PHP5



unix_mbstring_func_overload.patch

--- ext/mbstring/mbstring.c     2007-09-24 13:51:36.000000000 +0200

+++ ext/mbstring/mbstring.c     2007-12-04 18:00:10.023564681 +0100

@@ -765,8 +765,8 @@

         PHP_INI_ENTRY("mbstring.script_encoding", NULL, PHP_INI_ALL, 

OnUpdate_mbstring_script_encoding)

 #endif /* ZEND_MULTIBYTE */

         PHP_INI_ENTRY("mbstring.substitute_character", NULL, 

PHP_INI_ALL, OnUpdate_mbstring_substitute_character)

-        STD_PHP_INI_ENTRY("mbstring.func_overload", "0", 

PHP_INI_SYSTEM |

-        PHP_INI_PERDIR, OnUpdateLong, func_overload, 

zend_mbstring_globals, mbstring_globals)

+        STD_PHP_INI_ENTRY("mbstring.func_overload", "0",

+        PHP_INI_SYSTEM, OnUpdateLong, func_overload, 

zend_mbstring_globals, mbstring_globals)



         STD_PHP_INI_BOOLEAN("mbstring.encoding_translation", "0",

         PHP_INI_SYSTEM | PHP_INI_PERDIR, 

OnUpdate_mbstring_encoding_translation,



PHP4



--- ext/mbstring/mbstring.c     2007-04-04 17:28:18.000000000 +0200

+++ ext/mbstring/mbstring.c     2007-12-04 18:05:29.363559316 +0100

@@ -815,8 +815,8 @@

         PHP_INI_ENTRY("mbstring.script_encoding", NULL, PHP_INI_ALL, 

OnUpdate_mbstring_script_encoding)

 #endif /* ZEND_MULTIBYTE */

         PHP_INI_ENTRY("mbstring.substitute_character", NULL, 

PHP_INI_ALL, OnUpdate_mbstring_substitute_character)

-        STD_PHP_INI_ENTRY("mbstring.func_overload", "0", 

PHP_INI_SYSTEM |

-        PHP_INI_PERDIR, OnUpdateInt, func_overload, 

zend_mbstring_globals, mbstring_globals)

+        STD_PHP_INI_ENTRY("mbstring.func_overload", "0",

+        PHP_INI_SYSTEM, OnUpdateInt, func_overload, 

zend_mbstring_globals, mbstring_globals)



         STD_PHP_INI_BOOLEAN("mbstring.encoding_translation", "0",

         PHP_INI_SYSTEM | PHP_INI_PERDIR, 

OnUpdate_mbstring_encoding_translation,

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

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


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

Reply via email to