#21309 [Opn->Asn]: ftp_connect error reporting of trivial errors trough perror()

From: Date: Tue, 31 Dec 2002 10:53:32 +0000
Subject: #21309 [Opn->Asn]: ftp_connect error reporting of trivial errors trough perror()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28839@lists.php.net to get a copy of this message
ID: 21309 Updated by: derick@php.net Reported By: tit.petric@telemach.net -Status: Open +Status: Assigned Bug Type: FTP related Operating System: linux PHP Version: 4.3.0 -Assigned To: +Assigned To: sesser New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#28839) next »