#19750 [NEW]: php_hostconnect: connect failed
| From: | indy at civ dot zcu dot cz | Date: | Fri, 04 Oct 2002 09:19:08 +0000 |
| Subject: | #19750 [NEW]: php_hostconnect: connect failed | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-21465@lists.php.net to get a copy of this message | ||
From: indy@civ.zcu.cz
Operating system: Linux
PHP version: 4.2.3
PHP Bug Type: Network related
Bug description: php_hostconnect: connect failed
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 bug report at http://bugs.php.net/?id=19750&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19750&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19750&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19750&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19750&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19750&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19750&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19750&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19750&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19750&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19750&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19750&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19750&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19750&r=isapi