#21309 [Asn->Csd]: ftp_connect error reporting of trivial errors trough perror()
| From: | iliaa@php.net | Date: | Tue, 07 Jan 2003 02:47:36 +0000 |
| Subject: | #21309 [Asn->Csd]: ftp_connect error reporting of trivial errors trough perror() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29262@lists.php.net to get a copy of this message | ||
ID: 21309
Updated by: iliaa@php.net
Reported By: tit.petric@telemach.net
-Status: Assigned
+Status: Closed
Bug Type: FTP related
Operating System: linux
PHP Version: 4.3.0
Assigned To: sesser
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-01-02 19:30:41] nicos@php.net
Note: I just sent a patch for it to php-dev.
Thank you for reviewing it.
------------------------------------------------------------------------
[2002-12-31 04:53:32] derick@php.net
Verified, the whole FTP code uses perror() and not php_error_docref().
It also makes use of free() and malloc() and doesn't use the zend
memory manager for it.
Derick
------------------------------------------------------------------------
[2002-12-31 04:50:07] tit.petric@telemach.net
ftp_connect() returns stream or false on error
this is not the case for error messages like "connect: Connection timed
out" which go trough perror() calls inside the extension
theese should be actively removed or replaced with E_WARNING or
E_NOTICE errors which can be actively ignored/handled by script.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21309&edit=1