cvs: php-src(PHP_5_2) / NEWS /ext/standard ftp_fopen_wrapper.c

From: Date: Tue, 08 Jan 2008 19:10:16 +0000
Subject: cvs: php-src(PHP_5_2) / NEWS /ext/standard ftp_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-47736@lists.php.net to get a copy of this message
iliaa Tue Jan 8 19:10:16 2008 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/standard ftp_fopen_wrapper.c /php-src NEWS 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.85.2.4.2.8&r2=1.85.2.4.2.9&diff_format=u Index: php-src/ext/standard/ftp_fopen_wrapper.c diff -u php-src/ext/standard/ftp_fopen_wrapper.c:1.85.2.4.2.8 php-src/ext/standard/ftp_fopen_wrapper.c:1.85.2.4.2.9 --- php-src/ext/standard/ftp_fopen_wrapper.c:1.85.2.4.2.8 Mon Dec 31 07:20:12 2007 +++ php-src/ext/standard/ftp_fopen_wrapper.c Tue Jan 8 19:10:16 2008 @@ -18,7 +18,7 @@ | Sara Golemon <pollita@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: ftp_fopen_wrapper.c,v 1.85.2.4.2.8 2007/12/31 07:20:12 sebastian Exp $ */ +/* $Id: ftp_fopen_wrapper.c,v 1.85.2.4.2.9 2008/01/08 19:10:16 iliaa Exp $ */ #include "php.h" #include "php_globals.h" @@ -776,6 +776,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) { http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1047&r2=1.2027.2.547.2.1048&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.1047 php-src/NEWS:1.2027.2.547.2.1048 --- php-src/NEWS:1.2027.2.547.2.1047 Sun Jan 6 17:12:29 2008 +++ php-src/NEWS Tue Jan 8 19:10:16 2008 @@ -22,6 +22,8 @@ Ilia, Tony) - Fixed bug #43495 (array_merge_recursive() crashes with recursive arrays). (Ilia) +- Fixed bug #43498 (file_exists() on a proftpd server got SIZE not + allowed in ASCII mode). (Ilia, crrodriguez at suse dot de) - Fixed bug #43493 (pdo_pgsql does not send username on connect when password is not available). (Ilia) - Fixed bug #43482 (array_pad() does not warn on very small pad numbers).

« previous php.cvs (#47736) next »