ID: 19750 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Network related Operating System: Linux PHP Version: 4.2.3 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Send kossu und pizzas to Stefna. Previous Comments: ------------------------------------------------------------------------ [2002-10-04 05:17:44] [EMAIL PROTECTED] 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 ? ------------------------------------------------------------------------ [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