php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1632 rmdir fails with broken pipe
Submitted: 1999-06-30 08:33 UTC Modified: 1999-07-01 17:57 UTC
From: fredm at esoterica dot pt Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (30/06/1999) OS: Win NT4 SP5
Private report: No CVE-ID: None
 [1999-06-30 08:33 UTC] fredm at esoterica dot pt
I create a directory as follows:

if ($rc = Mkdir($directory,0777)) { 
	/* Directory created processing */
}

Directory is successfully created.

Some days(or minutes in test) I try to remove the directory in another transaction

/* Code to set up directory name */
/* Code to delete any files in directory - this works */
echo "<br>Directory is $directory";/* diagnostic */
error_reporting(15);
if ($rc = RmDir($directory)) {
	/* code for successful delete */
}
else {
	/* Code for unsuccessful delete */
}

I get the following output, and the empty directory remains.

Directory is d:\argus\fred3\resources\xxx
Warning: RmDir failed (Broken pipe) in d:\argus/fred3/xxx.php3 on line 777

The code works fine Linux.

I looked at function php3_rmdir in file.c, but could see nothing obvious(in my slowly widening
 understanding). If one wanted to put some temporary diagnostic processing in 
file.c for example to print some of the variables to the screen,
what would be the recommended way to do this? 

Best regards. . . Fred 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-01 17:57 UTC] jim at cvs dot php dot net
User error. The PHP process had the directory being removed
as its working directory.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 04:01:34 2024 UTC