php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69728 The second param of ftp_get
Submitted: 2015-05-29 09:04 UTC Modified: 2015-05-29 11:25 UTC
From: asnodj at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: *General Issues
PHP Version: 5.5.25 OS: Linux
Private report: No CVE-ID: None
 [2015-05-29 09:04 UTC] asnodj at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.ftp-fget
---

Please change the documentation of ftp_get. The second param must be a string path of local file and not a open resource.

Chers

Alexandre


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-29 11:25 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2015-05-29 11:25 UTC] cmb@php.net
The second parameter of ftp_get() has to be path, indeed, but that
is already documented on the respective man page[1]. You are
referring to the man page of ftp_fget()[2], however, and
this function does not accept a path as second parameter.

[1] <http://php.net/manual/en/function.ftp-get.php>
[2] <http://php.net/manual/en/function.ftp-fget.php>
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC