Fwd: PEAR: Socket.php

From: Date: Tue, 22 Jul 2003 17:59:26 +0000
Subject: Fwd: PEAR: Socket.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18549@lists.php.net to get a copy of this message
I'm not sure that this is really a false warning? ----- Forwarded message from dmspink@aria.uklinux.net ----- Date: Tue, 22 Jul 2003 15:04:52 +0100 From: Mark Spink <dmspink@aria.uklinux.net> Reply-To: Mark Spink <dmspink@aria.uklinux.net> Subject: PEAR: Socket.php To: ssb@fast.no fread produces an inconstitent warning when reading an SSL source. The number of byte specified in the fread must be the exact file size or the warning Warning: fread() [function.fread]: SSL: fatal protocol error in /usr/local/lib/php/Net/Socket.php on line 243 is given: The problem is with fread: could I suggest for now putting @ in front of the fread to block the false warnings. i.e. function read($size) { if (is_resource($this->fp)) { return @fread($this->fp, $size); } return $this->raiseError("not connected"); } Great utility, thanks Mark Spink ----- End forwarded message ----- -chuck -- Charles Hagenbuch, <chuck@horde.org> They're just looking at a wall of meat.

« previous php.pear.dev (#18549) next »