cvs: php-src /ext/standard microtime.c

From: Date: Thu, 19 Oct 2006 22:11:05 +0000
Subject: cvs: php-src /ext/standard microtime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-41173@lists.php.net to get a copy of this message
andrei Thu Oct 19 22:11:05 2006 UTC Modified files: /php-src/ext/standard microtime.c Log: Unicode support in microtime() and gettimeofday(). http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.56&r2=1.57&diff_format=u Index: php-src/ext/standard/microtime.c diff -u php-src/ext/standard/microtime.c:1.56 php-src/ext/standard/microtime.c:1.57 --- php-src/ext/standard/microtime.c:1.56 Tue Sep 19 10:38:31 2006 +++ php-src/ext/standard/microtime.c Thu Oct 19 22:11:04 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: microtime.c,v 1.56 2006/09/19 10:38:31 dmitry Exp $ */ +/* $Id: microtime.c,v 1.57 2006/10/19 22:11:04 andrei Exp $ */ #include "php.h" @@ -85,11 +85,11 @@ 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 @@ } /* }}} */ -/* {{{ proto array gettimeofday([bool get_as_float]) +/* {{{ proto array gettimeofday([bool get_as_float]) U Returns the current time as array */ PHP_FUNCTION(gettimeofday) {

« previous php.cvs (#41173) next »