From: Andrei Zmievski Date: Thu, 19 Oct 2006 22:11:04 +0000 (+0000) Subject: Unicode support in microtime() and gettimeofday(). X-Git-Tag: RELEASE_1_0_0RC1~1239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c83ae05496814ea6c7ded2839ffa40360cf21b0;p=php Unicode support in microtime() and gettimeofday(). --- diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c index c9d8b971eb..449ecc133a 100644 --- a/ext/standard/microtime.c +++ b/ext/standard/microtime.c @@ -85,11 +85,11 @@ static void _php_gettimeofday(INTERNAL_FUNCTION_PARAMETERS, int mode) char ret[100]; snprintf(ret, 100, "%.8f %ld", tp.tv_usec / MICRO_IN_SEC, tp.tv_sec); - RETURN_STRING(ret, 1); + RETURN_ASCII_STRING(ret, ZSTR_DUPLICATE); } } -/* {{{ proto mixed microtime([bool get_as_float]) +/* {{{ proto mixed microtime([bool get_as_float]) U Returns either a string or a float containing the current time in seconds and microseconds */ PHP_FUNCTION(microtime) { @@ -97,7 +97,7 @@ PHP_FUNCTION(microtime) } /* }}} */ -/* {{{ proto array gettimeofday([bool get_as_float]) +/* {{{ proto array gettimeofday([bool get_as_float]) U Returns the current time as array */ PHP_FUNCTION(gettimeofday) {