From: Ilia Alshanetsky Date: Wed, 31 Mar 2004 20:44:04 +0000 (+0000) Subject: MFH: Fixed bug #27809 (ftp_systype returns null on some ftp servers). X-Git-Tag: php-4.3.6RC1~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=772523e4a8a8d7bf7227fcbe1800ec65c4d258d1;p=php MFH: Fixed bug #27809 (ftp_systype returns null on some ftp servers). --- diff --git a/NEWS b/NEWS index 05d75b1a50..e956754d12 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, Version 4.3.6 - Synchronized bundled GD library with GD 2.0.22. (Ilia) +- Fixed bug #27809 (ftp_systype returns null on some ftp servers). (Ilia) - Fixed bug #27802 (default number of children to 8 when PHP_FCGI_CHILDREN is not defined). (Ilia) - Fixed bug #27782 (Wrong behaviour of next(), prev() and each()). (Ilia) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 89aa74f03d..ee17f5dce0 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -362,6 +362,9 @@ ftp_syst(ftpbuf_t *ftp) return NULL; syst = ftp->inbuf; + while (*syst == ' ') { + syst++; + } if ((end = strchr(syst, ' '))) *end = 0; ftp->syst = estrdup(syst);