php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33174 Socket_Read() error
Submitted: 2005-05-28 23:42 UTC Modified: 2005-05-30 11:23 UTC
From: donnib at gmail dot com Assigned:
Status: Not a bug Package: Sockets related
PHP Version: 5CVS-2005-05-28 (dev) OS: Windows XP sp2
Private report: No CVE-ID: None
 [2005-05-28 23:42 UTC] 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..

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-30 11:23 UTC] sniper@php.net
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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC