From: donnib at gmail dot com Operating system: Windows XP sp2 PHP version: 5CVS-2005-05-28 (dev) PHP Bug Type: Sockets related Bug description: Socket_Read() error
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 bug report at http://bugs.php.net/?id=33174&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33174&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33174&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33174&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33174&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33174&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33174&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33174&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33174&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33174&r=support Expected behavior: http://bugs.php.net/fix.php?id=33174&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33174&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33174&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33174&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33174&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33174&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33174&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33174&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33174&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33174&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33174&r=mysqlcfg