diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-02-25 04:20:22 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-02-25 04:20:22 +0000 |
commit | e8823a205a3fc8d5006265a6a804ed6d8380b3da (patch) | |
tree | 86ffdd47b83246ccff312f4120f1c4caeca67e3d | |
parent | 348200b54d0ad1420dede82fb0cd2f73c43417a9 (diff) | |
download | php-git-e8823a205a3fc8d5006265a6a804ed6d8380b3da.tar.gz |
Fixed bug #22402 (opening of ftp for read/write could fail due to invalid
return code handling).
Solution suggested by jan@jancm.org
-rw-r--r-- | ext/standard/ftp_fopen_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index 8bcffec519..98b5a27892 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -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. */ |