|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19377 Translatings to certian multibyte strings causes php to die
Submitted: 2002-09-12 13:14 UTC Modified: 2002-11-14 01:44 UTC
From: mike at graftonhall dot co dot nz Assigned:
Status: No Feedback Package: Gettext related
PHP Version: 4.2.3 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mike at graftonhall dot co dot nz
New email:
PHP Version: OS:


 [2002-09-12 13:14 UTC] mike at graftonhall dot co dot nz
When translating some strings to Japanese or Chinese (and possibly other multibyte character sets) php will start using 100% CPU time and never exit. 

I acutally use the latest stable win32 snapshot from and this problem has definatly been reproducable for the last week with the builds from there.

The same is from for CGI or Apache Module

My System:
Windows 2000 Pro SP2
Dual Athlon XP (I haven't tried removing a CPU to see if it's a dual CPU issue yet)
PHP 4.2.4-dev ( for php info screen)

I am happy to supply more examples or test builds.

How to reproduce:
the file contains a test script and a single japanese translation that will cause this effect. The .mo and .po files are there. 

The script included is:
@putenv('LANG=' . $lang);
@putenv('LANGUAGE=' . $lang);
setlocale(LC_ALL, $lang);

// Specify location of translation tables
bindtextdomain("broken", './locale');

// Choose domain

echo _("Birthday");



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-12 17:46 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
 [2002-09-12 17:47 UTC]
Oops..accidently clicked the url to close this..nothing was fixed in related to this. :I

Anyway, that url to that .zip package doesn't seem to least not for it correct?

 [2002-09-12 20:48 UTC] mike at graftonhall dot co dot nz
Sorry. My webserver died for a few hours. Just got a new motherboard in and I can basically confirm it is hardware independant. Now on a single Athlon XP and still the same problem.

Same URL will now work.
 [2002-10-28 10:55 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-11-14 01:44 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 10:01:28 2024 UTC