#19377 [Opn->Csd]: Translatings to certian multibyte strings causes php to die
| From: | sniper@php.net | Date: | Thu, 12 Sep 2002 22:46:02 +0000 |
| Subject: | #19377 [Opn->Csd]: Translatings to certian multibyte strings causes php to die | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19269@lists.php.net to get a copy of this message | ||
ID: 19377
Updated by: sniper@php.net
Reported By: mike@graftonhall.co.nz
-Status: Open
+Status: Closed
Bug Type: Gettext related
Operating System: Windows 2000
PHP Version: 4.2.3
New Comment:
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 http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-09-12 13:14:02] mike@graftonhall.co.nz
Description:
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 snaps.php.net 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)
Apache
PHP 4.2.4-dev (http://www.graftonhall.co.nz/test.php for php info
screen)
I am happy to supply more examples or test builds.
How to reproduce:
the file http://www.graftonhall.co.nz/temp/gettext/gettext.zip
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:
<?php
$lang='ja_JP';
@putenv('LANG=' . $lang);
@putenv('LANGUAGE=' . $lang);
setlocale(LC_ALL, $lang);
// Specify location of translation tables
bindtextdomain("broken", './locale');
// Choose domain
textdomain("broken");
echo _("Birthday");
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19377&edit=1