RE: PHP 4.0 Bug #5997 Updated: rmdir fails to remove specified directory

From: Date: Thu, 10 Aug 2000 04:15:04 +0000
Subject: RE: PHP 4.0 Bug #5997 Updated: rmdir fails to remove specified directory
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-28363@lists.php.net to get a copy of this message
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:\Inetpub\wwwroot\dir_chk\dir_test.php on line 12 rmdir('testdir'), ret_code = '0' -----Original Message----- From: Bug Database [mailto:php-dev@lists.php.net] Sent: Wednesday, August 09, 2000 9:48 PM To: dpfender@innova.net Subject: PHP 4.0 Bug #5997 Updated: rmdir fails to remove specified directory ID: 5997 Updated by: stas Reported By: dpfender@innova.net Status: Feedback Bug Type: Misbehaving function Assigned To: Comments: failed to reproduce. Could you provide your full script? Full Bug description available at: http://bugs.php.net/?id=5997

« previous php.dev (#28363) next »