Bug #79100 [Ver->Csd]: PHP Warning: and ftp_get() returns false
| From: | git@php.net | Date: | Mon, 03 May 2021 13:26:09 +0000 |
| Subject: | Bug #79100 [Ver->Csd]: PHP Warning: and ftp_get() returns false | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233666@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79100&edit=1
ID: 79100
Updated by: git@php.net
Reported by: brainforge dot uk at btinternet dot com
Summary: PHP Warning: and ftp_get() returns false
-Status: Verified
+Status: Closed
Type: Bug
Package: FTP related
Operating System: Centos 7
PHP Version: 7.3.13
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb69
Revision: https://github.com/php/php-src/commit/42c72ef463603722e81a6b86443bdb753318b700
Log: Fix #79100: Wrong FTP error messages
Previous Comments:
------------------------------------------------------------------------
[2021-04-21 15:23:36] cmb@php.net
Related To: Bug #80901
------------------------------------------------------------------------
[2021-04-13 10:15:20] cmb@php.net
Related To: Bug #80901
------------------------------------------------------------------------
[2021-02-23 11:38:33] cmb@php.net
The following pull request has been associated:
Patch Name: Fix #79100: Wrong FTP error messages
On GitHub: https://github.com/php/php-src/pull/6718
Patch: https://github.com/php/php-src/pull/6718.patch
------------------------------------------------------------------------
[2021-02-19 18:27:34] cmb@php.net
FTP errors are reported via the usual PHP error reporting
mechanism, so the warnings are available via error_get_last().
However, in case of timeout, you always get the last message from
the FTP server, what is of course wrong.
------------------------------------------------------------------------
[2020-01-11 16:13:07] brainforge dot uk at btinternet dot com
Problem appears to be related to timeout.
The default is 90 seconds.
ftp_set_option($conn_id, FTP_TIMEOUT_SEC, $timeout)
Something confusing here - the message should indicate timeout occurred.
Also in the particular instance the resulting file is sometimes complete!
ftp_get() needs something more than just TRUE or FALSE result - or another function to check the
result operation detail such as ftp_status().
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79100
--
Edit this bug report at https://bugs.php.net/bug.php?id=79100&edit=1