Req #65829 [Com]: Update to ICU 52.1 / Lao Word Boundary Support
| From: | robert dot rcampbell at gmail dot com | Date: | Wed, 30 Oct 2013 05:18:02 +0000 |
| Subject: | Req #65829 [Com]: Update to ICU 52.1 / Lao Word Boundary Support | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182486@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65829&edit=1
ID: 65829
Comment by: robert dot rcampbell at gmail dot com
Reported by: robert dot rcampbell at gmail dot com
Summary: Update to ICU 52.1 / Lao Word Boundary Support
Status: No Feedback
Type: Feature/Change Request
Package: *Languages/Translation
Operating System: All
PHP Version: Irrelevant
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Looks like there may a bug in the PHP Intl code, after I downloaded and tested the latest PHP / PHP
Intl (PECL). Got a Java version of it to work fine (based on icu4j). Someone else (cataphract) was
able to get a C++ version working. Here's my script:
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "lo_LA");
echo INTL_ICU_VERSION;
$bi = IntlBreakIterator::createWordInstance('lo');
$myText =
"àºàº£àº°àºàº±àº¡à»àº®àº±àºà»àº¥àºµàºàº²àºàºàº°à»àºàº¥à»àº§àºà»à»àº²àº§à»àº²àºàº»àºàºàº°àº®àº¹à»à»àº¥àº°à»àºàº»à»àº²à»àºà»àºàº´àºàº§àº½àºàºàº²àºàºàºàºàºàº°à»àº¥àº«àº´àºà»àºàºªàº°à»à»àºàºàºàºàº»àºàºàº²àºàºàº´àºàºªàº°àº¥àº²à»àºàºà»àºàº·à»àºàº§à»àº²àºàº¹à»àºàºµà»àº®àº±àºàºàº»àºà»àº²àºàºàºµà»àºàº·àºàºàº±àºàºàº¶àºà»àº§à»à»àºàºàº£àº°àºàº±àº¡àºàºµà»àºàº°àºªàº²àº¡àº²àºà»àºàº»à»àº²à»àºàº§à»àº²àºàº£àº°à»àº¢àºàº¹àºàº»àºà»àº®àº±àºàºªàº´à»àºà»àºàºªàº³àº¥àº±àºàºàº§àºà»àºàº»àº²à»àºàºªàº°àº«àº§àº±àº";
$bi->setText($myText);
var_dump($bi->first());
var_dump($bi->next());
var_dump($bi->next());
var_dump($bi->next());
var_dump($bi->next());
var_dump($bi->next());
var_dump($bi->next());
?>
PHP Output:
52.1
int 0
int 597
int -1
int -1
int -1
int -1
int -1
Previous Comments:
------------------------------------------------------------------------
[2013-10-19 04:05:01] php-bugs at lists dot php dot net
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 "Re-Opened". Thank you.
------------------------------------------------------------------------
[2013-10-11 06:27:53] ab@php.net
Please try using this snapshot:
http://snaps.php.net/php5.5-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2013-10-05 18:10:17] robert dot rcampbell at gmail dot com
Good to know on other OSes. Will test it and check that it vorks...
------------------------------------------------------------------------
[2013-10-04 13:45:36] pajoye@php.net
I suppose you mean on windows right? As for any other OSes, you can install whatever the
distribution provides, or manually compile the version you wish.
@a can you look to update to 5.1 for 5.5+? For what I see we have 5.0.
------------------------------------------------------------------------
[2013-10-04 10:33:33] robert dot rcampbell at gmail dot com
Description:
------------
Request update to ICU 52.1 after October 9th, 2013, so that the Lao language can use the boundary
analysis available to PHP - need it for word-wrapping in Lao.
Thanks!
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65829&edit=1