Edit report at http://bugs.php.net/bug.php?id=54025&edit=1
ID: 54025
Comment by: david dot zuelke at bitextender dot com
Reported by: bschussek at gmail dot com
Summary: ResourceBundle fails to read files with uppercase
characters
Status: Open
Type: Bug
Package: I18N and L10N related
Operating System: Ubuntu 10.10
PHP Version: 5.3SVN-2011-02-15 (snap)
Block user comment: N
Private report: N
New Comment:
Duplicate of http://bugs.php.net/54540
Previous Comments:
------------------------------------------------------------------------
[2011-02-15 14:28:28] bschussek at gmail dot com
Description:
------------
A bundle named "supplementalData" can't be read by ResourceBundle. If
the bundle
is named "supplementaldata" instead, loading works.
To reproduce, create a supplementalData.txt with this content:
--- BEGIN ---
supplementalData{
}
--- END ---
Then run genrb on the CLI:
$ genrb supplementalData.txt
which will generate a supplementalData.res needed by the test. genrb
will output
a warning, but you can ignore that for the purpose of this test.
Test script:
---------------
<?php
$bundle = new \ResourceBundle('supplementalData', __DIR__);
var_dump($bundle instanceof \ResourceBundle);
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54025&edit=1