|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45239 Hang (99.9%CPU) when encoding_translation is on
Submitted: 2008-06-11 15:02 UTC Modified: 2009-02-06 07:39 UTC
From: pumuckel at metropolis dot de Assigned: moriyoshi
Status: Closed Package: mbstring related
PHP Version: 5.*-CVS-2009-02-04 OS: *
Private report: No CVE-ID:
 [2008-06-11 15:02 UTC] pumuckel at metropolis dot de


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-01 23:41 UTC]
Please provide the short and self-contained example to reproduce the problem. I could never reproduce the problem with the following way.

$ env REQUEST_METHOD=get QUERY_STRING=x=%fc SCRIPT_FILENAME=/tmp/test.php php-cgi -c /tmp/test.ini

<?php var_dump($_REQUEST); ?>


 [2009-01-27 14:04 UTC] pumuckel at metropolis dot de
With following ini settings it is reproducable:

mbstring.strict_detection = 1

Just tried with current 5.3 CVS Version and php-cgi. The result is the same: It's hanging around with 99.9% cpu usage.

Please switch strict_detection and encoding_translation on. strit_detection is recommended to be used for correct iso-8859-* detection as described in 

Bug #35711  	[PATCH] ISO-8859 charset not correctly detected
 [2009-02-04 22:26 UTC]
Moriyoshi, see the feedback..
 [2009-02-06 07:39 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Hmm... I'm just wondering why it took this long for this to be found...

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 01:01:35 2015 UTC