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)
{
}
/* }}} */
-/* {{{ proto array gettimeofday([bool get_as_float])
+/* {{{ proto array gettimeofday([bool get_as_float]) U
Returns the current time as array */
PHP_FUNCTION(gettimeofday)
{