mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Rename nanosleep() to time_nanosleep().
This commit is contained in:
parent
6b7bd4be8f
commit
c53b53f926
3 changed files with 5 additions and 5 deletions
2
NEWS
2
NEWS
|
@ -3,7 +3,7 @@ PHP NEWS
|
|||
?? Oct 2003, PHP 5 Beta 3
|
||||
- Added new functions:
|
||||
. dba_key_split() to split inifile keys in an array. (Marcus)
|
||||
. nanosleep() signal safe sleep (Magnus, Ilia)
|
||||
. time_nanosleep() signal safe sleep (Magnus, Ilia)
|
||||
- Fixed bug #26072 (--disable-libxml does not work). (Jani)
|
||||
- Fixed bug #26083 (Non-working write support in ext/dom). (Ilia)
|
||||
- Fixed bug #24394 (Serializing cross-referenced objects causes segfault).
|
||||
|
|
|
@ -302,7 +302,7 @@ function_entry basic_functions[] = {
|
|||
PHP_FE(sleep, NULL)
|
||||
PHP_FE(usleep, NULL)
|
||||
#if HAVE_NANOSLEEP
|
||||
PHP_FE(nanosleep, NULL)
|
||||
PHP_FE(time_nanosleep, NULL)
|
||||
#endif
|
||||
PHP_FE(time, NULL)
|
||||
PHP_FE(mktime, NULL)
|
||||
|
@ -1694,9 +1694,9 @@ PHP_FUNCTION(usleep)
|
|||
/* }}} */
|
||||
|
||||
#if HAVE_NANOSLEEP
|
||||
/* {{{ proto mixed nanosleep(long seconds, long nanoseconds)
|
||||
/* {{{ proto mixed time_nanosleep(long seconds, long nanoseconds)
|
||||
Delay for a number of seconds and nano seconds */
|
||||
PHP_FUNCTION(nanosleep)
|
||||
PHP_FUNCTION(time_nanosleep)
|
||||
{
|
||||
long tv_sec, tv_nsec;
|
||||
struct timespec php_req, php_rem;
|
||||
|
|
|
@ -49,7 +49,7 @@ PHP_FUNCTION(toggle_short_open_tag);
|
|||
PHP_FUNCTION(sleep);
|
||||
PHP_FUNCTION(usleep);
|
||||
#if HAVE_NANOSLEEP
|
||||
PHP_FUNCTION(nanosleep);
|
||||
PHP_FUNCTION(time_nanosleep);
|
||||
#endif
|
||||
PHP_FUNCTION(flush);
|
||||
PHP_FUNCTION(ip2long);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue