PHP 4.0 Bug #7310 Updated: Error in php_read() function in file ext/sockets/socket.c

From: Date: Fri, 24 Nov 2000 03:56:24 +0000
Subject: PHP 4.0 Bug #7310 Updated: Error in php_read() function in file ext/sockets/socket.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-39074@lists.php.net to get a copy of this message
ID: 7310 Updated by: chrisv Reported By: mmlynarcik@charmed.sk Status: Closed Bug Type: Sockets related Assigned To: chrisv Comments: No reply to report, bug believed fixed in current CVS. Closing report; reopen if bug persists. Previous Comments: --------------------------------------------------------------------------- [2000-10-22 04:14:32] chrisv@php.net Try with the current CVS version, I made some changes to that particular function to change that behavior. --------------------------------------------------------------------------- [2000-10-18 08:29:23] mmlynarcik@charmed.sk Problem is with third argument in this function ( for example $n). If you write script like this: <? // ... socket definisions ... $ret = read($cur_sock, &$buf, 1); ?> ... then it recive one string but must be sent 2 characters from client( I try it with telnet ). Then I look with my friend in source code and there is a bug because when it reads for frist time m = 0, so it doesn't increment n. Thats why it reads one more character. Hope it was helpfull. That's all folks, Milan Mlynarcik --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7310

« previous php.dev (#39074) next »