From 9c83ae05496814ea6c7ded2839ffa40360cf21b0 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Thu, 19 Oct 2006 22:11:04 +0000 Subject: [PATCH] Unicode support in microtime() and gettimeofday(). --- ext/standard/microtime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.50.1