|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53969 Can't remove .res file after using ResourceBundle
Submitted: 2011-02-09 10:18 UTC Modified: 2012-05-24 11:53 UTC
From: jinmoku at hotmail dot com Assigned:
Status: Not a bug Package: I18N and L10N related
PHP Version: 5.3.5 OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jinmoku at hotmail dot com
New email:
PHP Version: OS:


 [2011-02-09 10:18 UTC] jinmoku at hotmail dot com
I Can't remove .res file after using ResourceBundle, the only way to remove it, it's to stop apache.

after run this following code, try to delete the .res file

Test script:
$res = '';
$file = basename($res);

    copy($res, basename($res));

$r = new ResourceBundle( 'en_US', realpath(__DIR__));
echo $r->get('teststring');



Expected result:
Hello World!

Actual result:
Warning: unlink(root.res): Permission denied in C:\www\test\index.php on line 16


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-24 11:53 UTC]
-Status: Open +Status: Not a bug
 [2012-05-24 11:53 UTC]
That's just the way ICU works. The file only gets closed when the process ends, it remains cached before that.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Feb 25 16:01:23 2021 UTC