Bug #53969 [NEW]: Can't remove .res file after using ResourceBundle
| From: | jinmoku at hotmail dot com | Date: | Wed, 09 Feb 2011 09:18:32 +0000 |
| Subject: | Bug #53969 [NEW]: Can't remove .res file after using ResourceBundle | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-158631@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows 7
PHP version: 5.3.5
Package: I18N and L10N related
Bug Type: Bug
Bug description:Can't remove .res file after using ResourceBundle
Description:
------------
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 =
'http://svn.php.net/repository/php/php-src/tags/php_5_3_5/ext/intl/tests/_files/resourcebundle/root.res';
$file = basename($res);
if(!file_exists($file))
{
copy($res, basename($res));
}
$r = new ResourceBundle( 'en_US', realpath(__DIR__));
echo $r->get('teststring');
unset($r);
unlink($file);
Expected result:
----------------
Hello World!
Actual result:
--------------
Warning: unlink(root.res): Permission denied in C:\www\test\index.php on
line 16
--
Edit bug report at http://bugs.php.net/bug.php?id=53969&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53969&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53969&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53969&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53969&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53969&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53969&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53969&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53969&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53969&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53969&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53969&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53969&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53969&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53969&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53969&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53969&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53969&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53969&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53969&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53969&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53969&r=mysqlcfg