#39550 [Opn->Fbk]: unlink() does not work if filename contains parenthesis.
| From: | tony2001@php.net | Date: | Mon, 20 Nov 2006 10:00:38 +0000 |
| Subject: | #39550 [Opn->Fbk]: unlink() does not work if filename contains parenthesis. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105198@lists.php.net to get a copy of this message | ||
ID: 39550
Updated by: tony2001@php.net
Reported By: andy at advancethermal dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Windows XP Pro & 2003 Server
PHP Version: 5.2.0
New Comment:
Do you see any error messages with error_reporting(E_ALL)? If yes,
please post all of them here.
Previous Comments:
------------------------------------------------------------------------
[2006-11-17 22:42:23] andy at advancethermal dot com
Description:
------------
unlink() does not delete a file if the filename contains parenthesis,
while functions like file_get_contents() work fine.
Reproduce code:
---------------
$file = "c:/my file (4).txt";
unlink($file);
Expected result:
----------------
Expect file to be deleted.
Actual result:
--------------
File is not deleted.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39550&edit=1