#49507 [Opn->Fbk]: ftplogin() returns null

From: Date: Wed, 09 Sep 2009 08:45:00 +0000
Subject: #49507 [Opn->Fbk]: ftplogin() returns null
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142136@lists.php.net to get a copy of this message
 ID:               49507
 Updated by:       jani@php.net
 Reported By:      dro at mediaan dot nl
-Status:           Open
+Status:           Feedback
 Bug Type:         FTP related
 Operating System: FreeBSD 5.4
 PHP Version:      5.2.10
 New Comment:

And what might it output if you removed the @'s ? There's quite likely
and error that happens which you now don't know anything about..


Previous Comments:
------------------------------------------------------------------------

[2009-09-09 07:42:40] dro at mediaan dot nl

Description:
------------
After upgrading our PHP version from 4.4.9 to 5.2.10 we are
experiencing problems with FTP.

The example below used to return true for variable $login_result under
PHP version 4.4.9. After migration to PHP version 5.2.10 the example
below returns null for variable $login_result.

Reproduce code:
---------------
$conn_id = @ftp_ssl_connect($ftp_server);
$login_result = @ftp_login($conn_id, $ftp_username, $ftp_password);


Expected result:
----------------
true

Actual result:
--------------
null


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49507&edit=1



Thread (7 messages)

« previous php.bugs (#142136) next »