Date: 10/31/00
- Next message: Stanislav Malyshev: "Re: [PHP-DEV] Concerning bug #5076"
- Previous message: ms <email protected>: "[PHP-DEV] Bug #7543: HTTP POST with enctype=multipart/form-data"
- Next in thread: a.weerman <email protected>: "[PHP-DEV] PHP 4.0 Bug #7542 Updated: socket_set_blocking is not working"
- Maybe reply: a.weerman <email protected>: "[PHP-DEV] PHP 4.0 Bug #7542 Updated: socket_set_blocking is not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7542
User Update by: a.weerman <email protected>
Status: Open
Old-Bug Type: *General Issues
Bug Type: *Function Specific
Description: socket_set_blocking is not working
Previous Comments:
---------------------------------------------------------------------------
[2000-10-31 08:07:30] a.weerman <email protected>
$tek = "&";
$fp = fsockopen(.., .., &$errno, &$errstr, 15);
socket_set_blocking ($fp, 0);
if(!$fp):
//error
else:
fputs($fp,"GET / HTTP/1.0nn");
$counter = 0;
while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) {
if ($counter < count($HTTP_POST_VARS)-1):
fputs($fp, $key . "=" . $val . $tek);
else:
fputs($fp, $key . "=" . $val);
endif;
$counter += 1;
}
$running = false;
$stop = time() + 15;
while(!feof($fp)&& time()<$stop) {
echo fgets($fp,128);
$running = true;
}
fclose($fp);
if (!$running):
// error
endif;
endif;
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7542
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Stanislav Malyshev: "Re: [PHP-DEV] Concerning bug #5076"
- Previous message: ms <email protected>: "[PHP-DEV] Bug #7543: HTTP POST with enctype=multipart/form-data"
- Next in thread: a.weerman <email protected>: "[PHP-DEV] PHP 4.0 Bug #7542 Updated: socket_set_blocking is not working"
- Maybe reply: a.weerman <email protected>: "[PHP-DEV] PHP 4.0 Bug #7542 Updated: socket_set_blocking is not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

