|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54025 ResourceBundle fails to read files with uppercase characters
Submitted: 2011-02-15 14:28 UTC Modified: 2011-04-18 18:34 UTC
From: bschussek at gmail dot com Assigned:
Status: Duplicate Package: I18N and L10N related
PHP Version: 5.3SVN-2011-02-15 (snap) OS: Ubuntu 10.10
Private report: No CVE-ID: None
 [2011-02-15 14:28 UTC] bschussek at gmail dot com
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 ---
--- 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:
$bundle = new \ResourceBundle('supplementalData', __DIR__);
var_dump($bundle instanceof \ResourceBundle);

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-15 14:37 UTC]
-Package: Unknown/Other Function +Package: I18N and L10N related
 [2011-04-18 14:53 UTC] david dot zuelke at bitextender dot com
Duplicate of
 [2011-04-18 18:34 UTC]
-Status: Open +Status: Duplicate
 [2011-04-18 18:34 UTC]
As David said :-)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 19:01:28 2024 UTC