PHP 4.0 Bug #8728: Patch: usleep() working on win32 platforms

From: Date: Mon, 15 Jan 2001 23:22:56 +0000
Subject: PHP 4.0 Bug #8728: Patch: usleep() working on win32 platforms
Groups: php.dev 
Request: Send a blank email to php-dev+get-44181@lists.php.net to get a copy of this message
From: christophe@winamp.com Operating system: Any Windows OS PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Patch: usleep() working on win32 platforms usleep exists on Win32 as the Sleep command (it takes a millisecond value as parameter) so here is the patch for making the usleep() php function to work on win32 platforms: in main/win95nt.h, line 27: #define php_sleep(t) Sleep(t*1000) add the following line so it looks like: #define php_sleep(t) Sleep(t*1000) #define usleep(t) Sleep(t) and in config.w32.h, line 93: /* Define if you have the usleep function. */ #undef HAVE_USLEEP change it to: /* Define if you have the usleep function. */ #define HAVE_USLEEP 1 -Christophe Thibault Nullsoft (www.nullsoft.com/www.winamp.com) -- Edit Bug report at: http://bugs.php.net/?id=8728&edit=1

« previous php.dev (#44181) next »