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
