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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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: Wed Apr 24 03:01:29 2024 UTC