|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45709 mbstring.func_overload
Submitted: 2008-08-04 13:57 UTC Modified: 2008-08-12 01:00 UTC
From: xhausherr at bestofmedia dot com Assigned:
Status: No Feedback Package: mbstring related
PHP Version: 5.2.6 OS: Windows Vista 32bits SP1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-08-04 13:57 UTC] xhausherr at bestofmedia dot com

I am using PHP 5.2.6 and Apache 2.2.8.

I need to convert some huge website from ISO-8859-1 to UTF-8.

I am using the mbstring overload to avoid rewriting the entire PHP code.

But I have a problem on some PHP script (my entire forum) when I add the "2: Overload str*() functions".

In this case, the script is stopped before his end without any Php or Apache error. The page is not blank, but stop before the end of the script.

I have used Xdebug to try to see something, but it doesn't help me.

Here is my mbstring configuration : 

mbstring.language = UTF-8
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.http_output = UTF-8
mbstring.detect_order = auto
mbstring.func_overload = 7

Do you have an idea on this ?

Best regards.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-04 14:06 UTC] xhausherr at bestofmedia dot com
I add some other investigation on that subject : 

- When I change the php.ini overload configuration to "mbstring.func_overload = 0" it works again.

- The script doesn't end every time at the same moment. There is some difference of 10 or 20 characters.

- If I remove some blocks of code, it can works, but a replacement with a line such as "echo 'OK';" crash the script again.

I hope it can help.
 [2008-08-04 14:09 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Try posting on the general user list -
 [2008-08-04 21:04 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

Hmm, I guess something bad forced the php runtime into crash. Can you try your script with the CGI version of PHP?

 [2008-08-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jun 01 13:01:25 2020 UTC