From: yorianbenjamin at hotmail dot com
Operating system: Linux
PHP version: 5.2.9
PHP Bug Type: Directory function related
Bug description: Deleting a directory created recursivelijk with mkdir
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 bug report at http://bugs.php.net/?id=47579&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47579&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47579&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47579&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47579&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47579&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47579&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47579&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47579&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47579&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47579&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47579&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47579&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47579&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47579&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47579&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47579&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47579&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47579&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47579&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47579&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47579&r=mysqlcfg