cvs: php4 /ext/standard ftp_fopen_wrapper.c

From: Date: Tue, 25 Feb 2003 04:20:22 +0000
Subject: cvs: php4 /ext/standard ftp_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19168@lists.php.net to get a copy of this message
iliaa Mon Feb 24 23:20:22 2003 EDT Modified files: /php4/ext/standard ftp_fopen_wrapper.c Log: Fixed bug #22402 (opening of ftp for read/write could fail due to invalid return code handling). Solution suggested by jan@jancm.org Index: php4/ext/standard/ftp_fopen_wrapper.c diff -u php4/ext/standard/ftp_fopen_wrapper.c:1.44 php4/ext/standard/ftp_fopen_wrapper.c:1.45 --- php4/ext/standard/ftp_fopen_wrapper.c:1.44 Mon Feb 17 08:29:57 2003 +++ php4/ext/standard/ftp_fopen_wrapper.c Mon Feb 24 23:20:22 2003 @@ -17,7 +17,7 @@ | Hartmut Holzgraefe <hholzgra@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: ftp_fopen_wrapper.c,v 1.44 2003/02/17 13:29:57 zeev Exp $ */ +/* $Id: ftp_fopen_wrapper.c,v 1.45 2003/02/25 04:20:22 iliaa Exp $ */ #include "php.h" #include "php_globals.h" @@ -414,7 +414,7 @@ } 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. */

« previous php.cvs (#19168) next »