From: [EMAIL PROTECTED] Operating system: winNT 4.0 PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: usleep function doesn't work properly under winNT 4.0 here is the wrong code (current) + my correction: ---- > Wrong (current) <---- PHP_FUNCTION(usleep) { #if HAVE_USLEEP pval **num; if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_long_ex(num); usleep((*num)->value.lval); #endif } ---- > Correction <---- PHP_FUNCTION(usleep) { pval **num; if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_long_ex(num); #if HAVE_USLEEP usleep((*num)->value.lval); #elif PHP_WIN32 Sleep( ((*num)->value.lval+999)/1000); #endif } Dror. -- Edit Bug report at: http://bugs.php.net/?id=9340&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]