ID: 25065 Updated by: [EMAIL PROTECTED] Reported By: webmaster at crovortex dot com -Status: Open +Status: Feedback Bug Type: FTP related Operating System: Win 98 SE PHP Version: 4.3.2 New Comment:
I can't reproduce that error here. What FTP server are you contacting? (The ftp_rmdir() function is looking for a response code of 250, perhaps your server is sending something else). Could you un-supress those error messages? When ftp_rmdir() fails it is supposed to output a message describing the error. Seeing those error messages would help. Is trying a recent snapshot an option? http://snaps.php.net Previous Comments: ------------------------------------------------------------------------ [2003-08-12 16:32:02] webmaster at crovortex dot com Description: ------------ PHP distribution: php-4.3.2-Win32.zip Apache dist: apache_2.0.47-win32-x86-no_ssl.msi When deleting empty directories function ftp_rmdir() returns true on failure and false on success, and according to the manual it should be the other way around. I ran the same code on PHP 4.0.1 and it worked as it should. Reproduce code: --------------- $test=1; $remdir="non_existing_dir"; if(@ftp_rmdir($spoj,$remdir)) $test++; echo "Test=$test<br>"; $remdir="existing_dir"; if(@ftp_rmdir($spoj,$remdir)) $test--; echo "Test=$test<br>"; Expected result: ---------------- Test=1 Test=0 Actual result: -------------- Test=2 Test=2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25065&edit=1
