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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: adrian dot zimmerma at ospm dot ch
New email:
PHP Version: OS:

 

 [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: Fri Nov 15 00:01:30 2024 UTC