#22205 [Bgs]: some strange chars when using sockets
| From: | marrtins at hackers dot lv | Date: | Thu, 13 Feb 2003 13:55:47 +0000 |
| Subject: | #22205 [Bgs]: some strange chars when using sockets | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33024@lists.php.net to get a copy of this message | ||
ID: 22205
User updated by: marrtins@hackers.lv
Reported By: marrtins@hackers.lv
Status: Bogus
Bug Type: *General Issues
Operating System: w2k
PHP Version: 4.3.0
New Comment:
tried some tests with HTTP/1.0, at least now it seems to work ok
Previous Comments:
------------------------------------------------------------------------
[2003-02-13 07:34:12] wez@php.net
You just discovered HTTP/1.1 chunked transfer encoding.
Change your scripts to request data using HTTP/1.0.
Not a bug in php -> bogus.
------------------------------------------------------------------------
[2003-02-13 07:32:42] moriyoshi@php.net
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
------------------------------------------------------------------------
[2003-02-13 07:30:26] marrtins@hackers.lv
sometimes i'm getting strange symbols in recieved stream when using
$data .= fgets($socket, $buff_len) or the same with
while($peace = @socket_read($socket, $buff_len, PHP_BINARY_READ))
$data .= $peace;
somewhere in the stream i get string "\r\n1ffc\r\n" why? there is no
such string in resource. and not always the stream contains these
chars.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22205&edit=1