#19750 [Opn]: php_hostconnect: connect failed
| From: | mfischer@php.net | Date: | Fri, 04 Oct 2002 10:17:44 +0000 |
| Subject: | #19750 [Opn]: php_hostconnect: connect failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21467@lists.php.net to get a copy of this message | ||
ID: 19750
Updated by: mfischer@php.net
Reported By: indy@civ.zcu.cz
Status: Open
Bug Type: Network related
Operating System: Linux
PHP Version: 4.2.3
New Comment:
This is what I get with current CVS:
$ php 19750.php
Warning: fopen() [http://www.php.net/function.fopen]: php_hostconnect:
connect failed in 19750.php on line 3
19750.php(3) : Warning - fopen() [http://www.php.net/function.fopen]:
php_hostconnect: connect failed
Warning: fopen(ftp://ftp.zcu.cz/mirrors/simtelnet/gnu/gnuish/00-index)
[http://www.php.net/function.fopen]: failed to create stream: FTP
server reports 229 Entering Extended Passive Mode (|||4294949117|).
in 19750.php on line 3
19750.php(3) : Warning -
fopen(ftp://ftp.zcu.cz/mirrors/simtelnet/gnu/gnuish/00-index)
[http://www.php.net/function.fopen]: failed to create stream: FTP
server reports 229 Entering Extended Passive Mode (|||4294949117|).
Wez ?
Previous Comments:
------------------------------------------------------------------------
[2002-10-04 04:19:08] indy@civ.zcu.cz
Hello,
previous reported bug with function file is still in PHP 4.2.3.
I tried this simple script:
<?
if ($fr =
fopen("ftp://ftp.zcu.cz/mirrors/simtelnet/gnu/gnuish/00-index",
"r")) {
$data = fread($fr, 20000000);
printf("%s", $data);
fclose($fr);
}
?>
the file on FTP exists and I always get:
<b>Warning</b>: php_hostconnect: connect failed in ...
<b>Warning</b>:
fopen("ftp://ftp.zcu.cz/mirrors/simtelnet/gnu/gnuish/00-index",
"r") -
Bad file descriptor in ...
--
Now I tried the latest snapshot (php4-200210040000) and the script do
nothing -- just waiting to max_execution_time :-(
My PHP config line: './configure' '--enable-versioning'
'--with-mysql=/usr/local/mysql' '--enable-track-vars' '--with-gd'
'--with-xml' '--disable-debug' '--enable-sysvshm'
'--enable-sysvsem'
'--with-jpeg-dir' '--with-tiff-dir' '--enable-trans-sid'
'--with-config-file-path=/usr/local/apache/conf' '--with-zlib-dir'
'--enable-sockets' '--with-pgsql=/usr/local/postgresql'
'--enable-gd-native-ttf' '--with-png-dir'
OS: Linux, kernel 2.4.17 #1
Petr Grolmus
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19750&edit=1