php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #28842 Wrong example in ftp_exec documentation
Submitted: 2004-06-19 17:21 UTC Modified: 2004-06-19 17:44 UTC
From: demenev at on-line dot jar dot ru Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2004-06-19 17:21 UTC] demenev at on-line dot jar dot ru
Description:
------------
ftp_exec returns boolean, and example of this function in manual uses return value of this function as it was a string:

if ($res = ftp_exec($conn_id, $command)) {
 echo "$command executed successfully<br />\n";
 echo nl2br($res);
} else {
 echo 'could not execute ' . $command;
}




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-19 17:44 UTC] curt@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 11:00:01 2025 UTC