PHP 4.0 Bug #6730: doing a filelist on os390 with phps ftp-support doesn't return a result

From: Date: Thu, 14 Sep 2000 03:10:18 +0000
Subject: PHP 4.0 Bug #6730: doing a filelist on os390 with phps ftp-support doesn't return a result
Groups: php.dev 
Request: Send a blank email to php-dev+get-33182@lists.php.net to get a copy of this message
From: adrian.zimmerma@ospm.ch Operating system: Linux & others relatetd to ibm os390 PHP version: 4.0.2 PHP Bug Type: Unknown/Other Function Bug description: doing a filelist on os390 with phps ftp-support doesn't return a result when doing a filelist on os390 (ftp_rawlist and mabe ftp_nlist) returns no files even when files are stored. We inserted a pach in ftp.c wich handles the silly return-code from os390 correct: in the last lines <PRE> /* if (!ftp_getresp(ftp) || ftp->resp != 226) {*/ if (!ftp_getresp(ftp) || !(ftp->resp == 226 || ftp->resp == 250)) { -- fixed for ibm os390 free(ret); return NULL; } return ret; bail: data_close(data); fclose(tmpfp); free(ret); return NULL; } #endif /* HAVE_FTP */ </PRE>

« previous php.dev (#33182) next »