Re: [Fwd: [PHP-DEV] PHP 4.0 Bug #5997 Updated: rmdir fails to remove specified directory]
| From: | Andi Gutmans | Date: | Tue, 12 Sep 2000 04:14:55 +0000 |
| Subject: | Re: [Fwd: [PHP-DEV] 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-32984@lists.php.net to get a copy of this message | ||
I commited a fix to the CVS. The code was using rmdir and not V_RMDIR.
Andi
At 02:02 AM 9/12/00 +0200, André Langhorst wrote:
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é
Return-Path: <php-dev-return-32976-A.Langhorst=itbnet.de@lists.php.net>
Received: from toye.php.net (sourceforge.net [198.186.203.33])
by itbnet.de (8.9.3/8.8.8) with SMTP id CAA19556
for <A.Langhorst@itbnet.de>; Tue, 12 Sep 2000 02:03:03 +0200
Received: (qmail 25868 invoked by uid 1013); 12 Sep 2000 00:03:01 -0000
Mailing-List: contact php-dev-help@lists.php.net; run by ezmlm
Precedence: bulk
Delivered-To: mailing list php-dev@lists.php.net
Received: (qmail 25862 invoked from network); 12 Sep 2000 00:03:00 -0000
Date: 12 Sep 2000 12:08:20 -0000
Message-ID: <20000912120820.10073.qmail@php2.chek.com>
To: php-dev@lists.php.net
From: Bug Database <php-dev@lists.php.net>
Subject: [PHP-DEV] PHP 4.0 Bug #5997 Updated: rmdir fails to remove specified directory
ID: 5997
Updated by: waldschrott
Reported By: dpfender@innova.net
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@php.net
user-feedback:
The following code demonstrates the problem on my system
<?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}'
n"); $mk_ret_code = rmdir($dir_name); echo ("rmdir('${dir_name}'), ret_code = '${rm_ret_code}'
n"); // attempt to clean up directory with exec() exec("rmdir ${dir_name}"); ?>
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
---------------------------------------------------------------------------
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@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
---
Andi Gutmans <andi@zend.com>
http://www.zend.com/