Bug #15485 Updated: memory ressource with socket_read()

From: Date: Sat, 08 Jun 2002 09:42:42 +0000
Subject: Bug #15485 Updated: memory ressource with socket_read()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9829@lists.php.net to get a copy of this message
ID: 15485 Updated by: mfischer@php.net Reported By: bool@nexenservices.com Status: Feedback Bug Type: Sockets related Operating System: Windows 2000 Pro PHP Version: 4.2.0 New Comment: As suggested, please try http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-06-08 05:35:01] bool@boolsite.net I've just test with PHP 4.2.1 (always under Win2k Pro). And there is always the same pb... ------------------------------------------------------------------------ [2002-06-08 05:28:03] mfischer@php.net Please try the latest snapshot at http://snaps.php.net/win32/php4-win32-latest.zip instead, this one contains the current development code. ------------------------------------------------------------------------ [2002-06-08 05:14:32] bool@nexenservices.com It the same things. I try now whith PHP 4.2.1 (sorry, I can't compile with the last version) ------------------------------------------------------------------------ [2002-06-07 16:47:03] sniper@php.net reclassified where this belongs.. ------------------------------------------------------------------------ [2002-06-07 14:32:00] grangeway2@hotmail.com no output after php terminates. the script is as follows: <? error_reporting (E_NONE); $socket = socket_create (AF_INET, SOCK_STREAM, SOL_TCP); $moo = socket_connect ($socket, "www.php.net", "80"); if ($moo) { socket_set_nonblock ($socket); while ($i<2000000) { $i++; if (($buf = socket_read($socket, 1024)) !== FALSE ) { $buf = NULL; unset($buf); } } } ?> (add a sleep(1) into the while loop and it's fine...) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15485 -- Edit this bug report at http://bugs.php.net/?id=15485&edit=1

« previous php.bugs (#9829) next »