ID: 6908 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Feedback Status: Closed Bug Type: Directory function related Assigned To: Comments: No feedback, considered fixed. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-18 21:24:07] [EMAIL PROTECTED] Does this happen with PHP 4.0.4pl1 ? --Jani --------------------------------------------------------------------------- [2000-11-20 12:36:39] [EMAIL PROTECTED] reclassify --------------------------------------------------------------------------- [2000-09-27 19:33:19] [EMAIL PROTECTED] the following sequence fails at rmdir() with permission denied as long as we uncomment the $d-part. Wa are not very shure if it's a problem of the code somehow or a bug. Thanks for any answers. /* $d = dir( "./temp/sess_".session_id() ); while( $entry = $d->read() ) { if ( $entry != "" && $entry != "." && $entry != ".." ) { $fn = $d->path."/".$entry; unlink( $fn ); } } $d->close(); echo "all files deleted <br>"; */ $canonical_dir = str_replace( "\", "/", $PATH_TRANSLATED ); $canonical_dir = substr( $canonical_dir, 0, strrpos( $canonical_dir, "/" ) ); $canonical_dir = $canonical_dir."/temp/sess_".session_id(); echo "dirname : " . $canonical_dir . "<br>"; rmdir( $canonical_dir ); echo "directory removed <br>"; --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6908&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]