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 [EMAIL PROTECTED]
  
  
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 <[EMAIL PROTECTED]>                       |
    +----------------------------------------------------------------------+
  */
-/* $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.
                 */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to