php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6730 doing a filelist on os390 with phps ftp-support doesn't return a result
Submitted: 2000-09-13 23:10 UTC Modified: 2000-10-28 05:02 UTC
From: adrian dot zimmerma at ospm dot ch Assigned:
Status: Closed Package: FTP related
PHP Version: 4.0.2 OS: Linux & others relatetd to ibm o
Private report: No CVE-ID: None
 [2000-09-13 23:10 UTC] adrian dot zimmerma at ospm dot ch
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>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-27 09:40 UTC] sniper@php.net
reclassified.
 [2000-10-28 05:02 UTC] sniper@php.net
Fixed in CVS. Thank you for providing this excellent bug report!

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC