Edit report at https://bugs.php.net/bug.php?id=63515&edit=1

 ID:                 63515
 User updated by:    ckunep at fromru dot com
 Reported by:        ckunep at fromru dot com
 Summary:            Getting supported locales problem
 Status:             Open
 Type:               Bug
 Package:            I18N and L10N related
 Operating System:   Windows 7 Pro x64
 PHP Version:        5.4.8
 Block user comment: N
 Private report:     N

 New Comment:

Also I noticed that resourcebundle_locales() returns FALSE. I try to use 
resourcebundle_locales() to get locales list from package generated by ICU's 
pkgdata.exe, but it fails too.

Code:

is_file('D:\www\german\htdocs\locales\package.dat') == true;
print_r(resourcebundle_locales('D:\www\german\htdocs\locales\package'));

After script execution the "package.dat" file is locked on. I managed to delete 
the file only with the help of Unlocker.


Previous Comments:
------------------------------------------------------------------------
[2012-11-14 12:57:33] ckunep at fromru dot com

Description:
------------
I tried to resolve a list of available locales in the "locales" folder. But get 
nothing.

$_SERVER['SCRIPT_FILENAME'] == D:\www\german\htdocs\index.php.

Folder structure:
D:\www\german\htdocs\locales\en.txt
D:\www\german\htdocs\locales\en.res
D:\www\german\htdocs\locales\en_US.txt
D:\www\german\htdocs\locales\en_US.res
D:\www\german\htdocs\locales\root.txt
D:\www\german\htdocs\locales\root.res

RES-files generated by ICU's genrb.exe.

Test script:
---------------
$directory = dirname($_SERVER['SCRIPT_FILENAME']) . DIRECTORY_SEPATATOR . 
'locales';
print_r(resourcebundle_locales($directory));

Expected result:
----------------
Array
{
    [0] => "en"
    [1] => "en_US"
    [2] => "root"
}

Actual result:
--------------
nothing


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63515&edit=1

Reply via email to