[Fwd: [PHP-DEV] PHP 4.0 Bug #5997 Updated: rmdir fails to remove specified directory] From: André Langhorst (A.Langhorst <email protected>)
Date: 09/11/00

FYI: (tested on 2000-09-07 build)
If there have been some changes to one of these functions, I`ll try a
newer build.

André

attached mail follows:


ID: 5997
Updated by: waldschrott
Reported By: dpfender <email protected>
Status: Analyzed
Bug Type: *General Issues
Assigned To:
Comments:

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

Previous Comments:
---------------------------------------------------------------------------

[2000-09-12 07:36:28] waldschrott <email protected>
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 <email protected>
Closed due to missing user feedback.

---------------------------------------------------------------------------

[2000-08-09 21:47:46] stas <email protected>
failed to reproduce. Could you provide your full script?

---------------------------------------------------------------------------

[2000-08-06 20:14:53] dpfender <email protected>
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

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=5997

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>