iliaa           Tue Jan  8 19:09:12 2008 UTC

  Modified files:              
    /php-src/ext/standard       ftp_fopen_wrapper.c 
  Log:
  MFB: Fixed bug #43498 (file_exists() on a proftpd server got SIZE not
  allowed in ASCII mode). 
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/ftp_fopen_wrapper.c?r1=1.101&r2=1.102&diff_format=u
Index: php-src/ext/standard/ftp_fopen_wrapper.c
diff -u php-src/ext/standard/ftp_fopen_wrapper.c:1.101 
php-src/ext/standard/ftp_fopen_wrapper.c:1.102
--- php-src/ext/standard/ftp_fopen_wrapper.c:1.101      Mon Dec 31 07:12:15 2007
+++ php-src/ext/standard/ftp_fopen_wrapper.c    Tue Jan  8 19:09:12 2008
@@ -18,7 +18,7 @@
    |          Sara Golemon <[EMAIL PROTECTED]>                              |
    +----------------------------------------------------------------------+
  */
-/* $Id: ftp_fopen_wrapper.c,v 1.101 2007/12/31 07:12:15 sebastian Exp $ */
+/* $Id: ftp_fopen_wrapper.c,v 1.102 2008/01/08 19:09:12 iliaa Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -775,6 +775,7 @@
                ssb->sb.st_mode |= S_IFDIR;
        }
 
+       php_stream_write_string(stream, "TYPE I\r\n"); /* we need this since 
some servers refuse to accept SIZE command in ASCII mode */
        php_stream_printf(stream TSRMLS_CC, "SIZE %s\r\n", (resource->path != 
NULL ? resource->path : "/"));
        result = GET_FTP_RESULT(stream);
        if (result < 200 || result > 299) {

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

Reply via email to