Re: Bug #13260: fsockopen when times out is core dumped

From: Date: Wed, 12 Sep 2001 07:29:36 +0000
Subject: Re: Bug #13260: fsockopen when times out is core dumped
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65823@lists.php.net to get a copy of this message
khimich@ukr.net wrote: > From: khimich@ukr.net > Operating system: FreeBSD 4.3 > PHP version: 4.0CVS-2001-09-12 > PHP Bug Type: Filesystem function related > Bug description: fsockopen when times out is core dumped > > This code > > $fp=fsockopen("10.0.5.1",80,&$errno, &$errstr,5); > if(!$fp) echo "$errno $errstr"; > > core dumped after message "60 Operation timed out" > This bug also comes up when you try to use fopen() on a URL. Also, I've tried using fopen() on localhost for files that are known to exist, and every once in a while (maybe 1 in 10 times), apache will segfault. It seems to have something to do with glibc, because it faults just after php_sockread_internal() is called, and glibc hangs at __select() in libc.so.6. J

« previous php.dev (#65823) next »