#30058 [Fbk->Opn]: Yet Another Solaris compilation problem :-((
| From: | l_faillie at yahoo dot com | Date: | Tue, 05 Oct 2004 20:43:39 +0000 |
| Subject: | #30058 [Fbk->Opn]: Yet Another Solaris compilation problem :-(( | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67155@lists.php.net to get a copy of this message | ||
ID: 30058
User updated by: l_faillie at yahoo dot com
Reported By: l_faillie at yahoo dot com
-Status: Feedback
+Status: Open
Bug Type: FTP related
Operating System: Solaris 8
PHP Version: 4.3.8
New Comment:
> This seems more like feature request (getting more info
> as an error message if the ftp_*() functions fail..)
> but anyway,
It should be better if we have better message in case of failure, but
as I said previously, I put some tracing puts() in ext/ftp/php_ftp.c
and it seems that PHP_FUNCTION(ftp_fput), line 768 is never called. So
for me it's more an issue in the PHP parser than in ftp function
themselfs.
Unfortunatly, I'm not confident enough w/ PHP parser to trace deeply in
the code.
> are you sure this isn't some firewall issue..? (like
> I've had had to struggle with for last 6 months.. :)
Yes, because both machines are on the same networks and
I can connect using the normal Solaris FTP client.
Previous Comments:
------------------------------------------------------------------------
[2004-10-05 20:14:20] sniper@php.net
This seems more like feature request (getting more info as an error
message if the ftp_*() functions fail..) but anyway,
are you sure this isn't some firewall issue..? (like I've had had to
struggle with for last 6 months.. :)
------------------------------------------------------------------------
[2004-10-02 17:01:21] l_faillie at yahoo dot com
Ok, the result is :
bool(false)
------------------------------------------------------------------------
[2004-10-02 16:09:39] sniper@php.net
change the ftp_put() line in your script to this:
$retval = ftp_put($con, basename($fch), basename($fch), FTP_BINARY);
var_dump ($retval);
And tell us what you get now..
------------------------------------------------------------------------
[2004-10-01 18:16:14] l_faillie at yahoo dot com
> You said you don't get any output. But ftp_put() doesn't
> output anything at all..what do you expect it to output?
Whell, as this function fails and rise the die() clause of
'ftp_put() or die()', I'm expecting an error message saying ... why
ftp_put() fails. Like "remote host close the connexion" or something
like that.
> What does this output:
> # php -r 'ftp_put();'
$php -r 'ftp_put();'
Warning: ftp_put() expects at least 4 parameters, 0 given in Command
line code on line 1
------------------------------------------------------------------------
[2004-09-30 16:13:40] sniper@php.net
You said you don't get any output. But ftp_put() doesn't output
anything at all..what do you expect it to output?
What does this output:
# php -r 'ftp_put();'
------------------------------------------------------------------------
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
http://bugs.php.net/30058
--
Edit this bug report at http://bugs.php.net/?id=30058&edit=1