Re: Problem using fread with https
| From: | Justin Patrin | Date: | Thu, 26 Aug 2004 22:49:01 +0000 |
| Subject: | Re: Problem using fread with https | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194867@lists.php.net to get a copy of this message | ||
On Thu, 26 Aug 2004 14:40:46 -0700, Pablo Gosse <gossep@unbc.ca> wrote:
> Hi folks. I'm getting the following error when attempting to use
> PEAR::HTTP_Request to check the existence of a file.
>
> It's throwing an error from fread on an https stream:
>
> Warning: fread(): SSL: fatal protocol error in
> /u0/local/lib/php/Net/Socket.php on line 263
>
> Line 263 is as follows:
>
> return fread($this->fp, $size);
>
> My PHP version is 4.3.4, and it's compiled with openssl, so I can't see
> why this is throwing an error since according to the docs as long as
> openssl is compiled https is supported.
>
> Does anyone have any suggestions?
>
It's a bug in PHP. Upgrade or add a @ at the beginning of that fread()
call. It should still work fine.
> Cheers and TIA,
>
> Pablo
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--