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

From: Date: Sun, 22 Oct 2000 08:14:32 +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-35759@lists.php.net to get a copy of this message
ID: 7310 Updated by: chrisv Reported By: mmlynarcik@charmed.sk Status: Assigned Bug Type: Sockets related Assigned To: chrisv Comments: Try with the current CVS version, I made some changes to that particular function to change that behavior. Previous Comments: --------------------------------------------------------------------------- [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 (#35759) next »