[PHP-DEV] PHP 4.0 Bug #6730: doing a filelist on os390 with phps ftp-support doesn't return a result From: adrian.zimmerma <email protected>
Date: 09/13/00

From: adrian.zimmerma <email protected>
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>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>