#23220 [Opn->Fbk]: fgets() causes warning while reading data via SSL channel (HTTPS)
| From: | wez@php.net | Date: | Tue, 15 Apr 2003 08:27:49 +0000 |
| Subject: | #23220 [Opn->Fbk]: fgets() causes warning while reading data via SSL channel (HTTPS) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37693@lists.php.net to get a copy of this message | ||
ID: 23220
Updated by: wez@php.net
Reported By: storozhilov at mail dot ru
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: FreeBSD 4.8
PHP Version: 4.3.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
The stable snapshot has better SSL protocol handling and most likely
solves this problem.
Previous Comments:
------------------------------------------------------------------------
[2003-04-15 01:52:09] storozhilov at mail dot ru
<?php
$fd = fsockopen(
'ssl://www.somehost.com',
443,
$errno,
$errstr,
30
);
fputs($fd, "GET / HTTP/1.0\r\n\r\n");
while (!feof($fd)) {
echo fgets($fd, 1024);
);
?>
After executing of this script following message appears:
Warning: fgets() [function.fgets]: SSL: fatal protocol error in
/blah/blah/blah/blah.php on line NN
PHP was configured with following arguments:
#!/bin/sh
./configure --with-apache=../apache_1.3.27rusPL30.17 --with-mod_charset
--with-pgsql=/usr/local/pgsql --with-mhash --with-sybase=/usr/local
--with-openssl
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23220&edit=1