#23220 [Opn->Asn]: fgets() causes warning while reading data via SSL channel (HTTPS)

From: Date: Mon, 12 Jan 2004 11:42:19 +0000
Subject: #23220 [Opn->Asn]: fgets() causes warning while reading data via SSL channel (HTTPS)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53167@lists.php.net to get a copy of this message
ID: 23220 Updated by: sniper@php.net Reported By: storozhilov at mail dot ru -Status: Open +Status: Assigned Bug Type: Filesystem function related Operating System: FreeBSD 4.8 PHP Version: 4-STABLE-200307070330 Assigned To: wez New Comment: Keep it assigned to the only person who can fix it.. Previous Comments: ------------------------------------------------------------------------ [2004-01-11 11:01:06] heino@php.net This bug is apparently still living; even in PHP 5.0b3... ------------------------------------------------------------------------ [2004-01-08 06:14:58] a at anseljh dot com Red Hat 9 PHP 4.3.4, Apache 2.0.48, OpenSSL 0.9.7c (built from source) Also happens with either fread() or feof() on an SSL socket connection opened with fsockopen ($request): while (!feof($request)) $response .= fread($request, 4096); This code works flawlessly on a non-SSL socket connection. ------------------------------------------------------------------------ [2003-12-29 14:31:32] Roger dot Schweppe at cbsks dot com I have been having the same problem with IIS 5. So if you ever find a solution I would be very happy to hear from you. Thanks, Roger ------------------------------------------------------------------------ [2003-12-23 14:02:46] pta at interkan dot net Forgot to include this info: PHP 4.3.4 (cli) (built: Dec 4 2003 11:17:45) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies ------------------------------------------------------------------------ [2003-12-23 14:01:39] pta at interkan dot net I've been experiencing the same problem with PHP 4.3.4 running on a Linux Slackware/Apache server. The problem did initially crop up inside the PEAR Socket class which I'm trying to use to connect to Authorize.Net's gateway. Here's the exact message returned (with path changes): Warning: fread(): SSL: fatal protocol error in /path/to/Net/Socket.php on line 243 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/23220 -- Edit this bug report at http://bugs.php.net/?id=23220&edit=1

« previous php.bugs (#53167) next »