diff options
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index ca5cdc1ccf..fdffdf7b15 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -117,10 +117,8 @@ PHP_FUNCTION(ftp_connect) /* connect */ ftp = ftp_open(arg1->value.str.val, 0); - if (ftp == NULL) { - php_error(E_WARNING, "ftp_connect: %s", ftp->inbuf); + if (ftp == NULL) RETURN_FALSE; - } id = php3_list_insert(ftp, le_ftpbuf); RETURN_LONG(id); |