PHP 4.0 Bug #5997 Updated: rmdir fails to remove specified directory
| From: | Bug Database | Date: | Tue, 12 Sep 2000 16:20:50 +0000 |
| Subject: | PHP 4.0 Bug #5997 Updated: rmdir fails to remove specified directory | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32985@lists.php.net to get a copy of this message | ||
ID: 5997
Updated by: andi
Reported By: dpfender@innova.net
Status: Closed
Bug Type: *General Issues
Assigned To:
Comments:
The rmdir() problem should be fixed now in the latest CVS. Either grab that or wait for 4.0.3 due
soon.
Previous Comments:
---------------------------------------------------------------------------
[2000-09-12 08:08:20] waldschrott@php.net
hmmm, well I don´t know what´s actually going on but I´m having various problems, 2 general ones,
one related to apachemod (maybe others (ISAPI))...
a) unlink() does not work:
Warning: Unlink failed (Permission denied) in *
b) rmdir() does not work
Warning: RmDir failed (No such file or directory) in *
ApacheModule:
c) exec(rm*) gives an: unable to fork error
---------------------------------------------------------------------------
[2000-09-12 07:36:28] waldschrott@php.net
user-feedback:
The following code demonstrates the problem on my system
<HTML> <HEAD> <TITLE>dir test pgm</TITLE> </HEAD> <BODY
BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF"
VLINK="#800080"> <?php
$dir_name = "testdir";
$mk_ret_code = 0;
$rm_ret_code = 0;
$mk_ret_code = mkdir($dir_name, 0775);
echo ("mkdir('${dir_name}', 0775), ret_code =
'${mk_ret_code}'<br><br>n");
$mk_ret_code = rmdir($dir_name);
echo ("rmdir('${dir_name}'), ret_code =
'${rm_ret_code}'<br><br>n");
// attempt to clean up directory with exec()
exec("rmdir ${dir_name}");
?> </BODY> </HTML> Response:
mkdir('testdir', 0775), ret_code = '1'
Warning: RmDir failed (No such file or directory) in
E:Inetpubwwwrootdir_chkdir_test.php on line 12
rmdir('testdir'), ret_code = '0'
---------------------------------------------------------------------------
[2000-09-03 07:34:35] waldschrott@php.net
Closed due to missing user feedback.
---------------------------------------------------------------------------
[2000-08-09 21:47:46] stas@php.net
failed to reproduce. Could you provide your full script?
---------------------------------------------------------------------------
[2000-08-06 20:14:53] dpfender@innova.net
At the document root of a web page, create a directory ab using mkdir("ab").
Then create directory ab/cd using mkdir("ab/cd").
Using rmdir("ab/cd") fails to remove directory ab/cd which contains no files.
The binary distribution files were used without modification.
In php.ini, the following changes were made to php.ini-dist:
short_open_tag = Off
extension=php_calendar.dll
extension=php_ldap.dll
extension=php_exif.dll
extension=php_ftp.dll
extension=php_imap.dll
extension=php_mssql70.dll
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=5997