mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed bug #22402 (opening of ftp for read/write could fail due to invalid
return code handling). Solution suggested by jan@jancm.org
This commit is contained in:
parent
348200b54d
commit
e8823a205a
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user