#26449 [Opn->Csd]: usleep doesnt work correctly
| From: | derick@php.net | Date: | Sat, 05 Jun 2004 09:07:37 +0000 |
| Subject: | #26449 [Opn->Csd]: usleep doesnt work correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60394@lists.php.net to get a copy of this message | ||
ID: 26449
Updated by: derick@php.net
Reported By: marcus at quintic dot co dot uk
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows XP
PHP Version: 4.3.4
Assigned To: wez
New Comment:
We do not make new features available in PHP 4 as it's in "bug fix only
mode".
Previous Comments:
------------------------------------------------------------------------
[2004-06-04 16:42:12] marcus at quintic dot co dot uk
Looks like it works with PHP5 RC2 thanks! How about a backport to v4?
Thanks again
------------------------------------------------------------------------
[2004-01-12 21:05:15] wez@php.net
The next php5 snapshot should include a correctly working usleep().
------------------------------------------------------------------------
[2004-01-12 19:45:57] antispammail at gmx dot de
I also really NEEED this usleep function to work,
but tested the latest php 5 as advised an
it does not work :(
Have you removed this feature allready again? why?
according to this :
http://groups.google.com/groups?q=usleep+win32&hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=9401pp%242fgt%241%40FreeBSD.csie.NCTU.edu.tw&rnum=3
===========================================================
[2001-01-15 18:22:56] christophe@winamp.com
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)
===========================================================
I just don't know how to do this change as a "user" of php ... PLEASE
HELP and put this in the new release!
Chris
------------------------------------------------------------------------
[2003-12-04 02:26:47] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-11-29 17:58:18] wez@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
I've implemented this in PHP 5.
Since it requires win98 and later, it might not go into the php4
branch.
Please try a php 5 snapshot and let us know how well it works for you.
------------------------------------------------------------------------
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/26449
--
Edit this bug report at http://bugs.php.net/?id=26449&edit=1