ID: 47579
Updated by: [email protected]
Reported By: yorianbenjamin at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: Directory function related
Operating System: Linux
PHP Version: 5.2.9
New Comment:
Propably just a misconfigured system, but what exacty were the
permissions (for ALL directories created) ?
Previous Comments:
------------------------------------------------------------------------
[2009-03-05 20:23:45] yorianbenjamin at hotmail dot com
Description:
------------
When using mkdir() to create a directory recursively it creates
directories which can not be removed with ftp. However when I create a
single directory with mkdir it is removable.
Reproduce code:
---------------
<?php
mkdir('test_dir2', 0777, FALSE);
mkdir('test_dir3', 0777, TRUE);
mkdir('test_dir4/blaat', 0777, TRUE);
?>
Expected result:
----------------
I expected that I could easily delete all the directories using ftp.
Actual result:
--------------
Deleting the directories (using ftp): test_dir2 and test_dir3 worked as
I expected it.
Trying to delete blaat or test_dir4 returned an error:
[23:25:38] 550 blaat: Permission denied (or in the case of the other
directory: test_dir4: permission denied)
Someone else who tested it on his system replied:
This did the same thing on my machine. I had to be a superuser in order
to delete it at the command line (which is essentially what you would
need to do over FTP). I have no idea why that would happen.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47579&edit=1