ID:               19750
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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

Reply via email to