#33174 [Opn->Bgs]: Socket_Read() error
| From: | sniper@php.net | Date: | Mon, 30 May 2005 09:23:49 +0000 |
| Subject: | #33174 [Opn->Bgs]: Socket_Read() error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79693@lists.php.net to get a copy of this message | ||
ID: 33174
Updated by: sniper@php.net
Reported By: donnib at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Sockets related
Operating System: Windows XP sp2
PHP Version: 5CVS-2005-05-28 (dev)
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
See bug #21197
Previous Comments:
------------------------------------------------------------------------
[2005-05-28 23:42:37] donnib at gmail dot com
Description:
------------
Hai
Socket_read() seems to be bugged on Win32 when you add PHP_NORMAL_READ
as parameter..
the script will execute just fine until you connect to it with
telnet..
Reproduce code:
---------------
the soruce code can be found at http://dk2.php.net/sockets
example 1. line 37
if (false === ( $buf = socket_read($msgsock, 2048, PHP_NORMAL_READ) ) )
{
Expected result:
----------------
i had expected it to work like it says in the documention
Actual result:
--------------
When you do so, it will give an error, saying: socket_read() failed:
reason: Forkert funktion.
"Forkert funktion" translate into Wrong Function..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33174&edit=1