]> granicus.if.org Git - php/commitdiff
Fixed bug #22402 (opening of ftp for read/write could fail due to invalid
authorIlia Alshanetsky <iliaa@php.net>
Tue, 25 Feb 2003 04:20:22 +0000 (04:20 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 25 Feb 2003 04:20:22 +0000 (04:20 +0000)
return code handling).
Solution suggested by jan@jancm.org

ext/standard/ftp_fopen_wrapper.c

index 8bcffec5198b8021ce35b601cd2af486d465ed52..98b5a27892b08dcfd217dd68ed10c2fce2737f9a 100644 (file)
@@ -414,7 +414,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch
        }
 
        result = GET_FTP_RESULT(stream);
-       if (result != 150) {
+       if (result != 150 && result != 125) {
                /* Could not retrieve or send the file 
                 * this data will only be sent to us after connection on the data port was initiated.
                 */