mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
set second argument of gettimeofday() to NULL (fixes #48346,
patch by adriano at guiadohardware dot net)
This commit is contained in:
@@ -54,13 +54,12 @@ static void _php_gettimeofday(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
|
||||
{
|
||||
zend_bool get_as_float = 0;
|
||||
struct timeval tp = {0};
|
||||
struct timezone tz = {0};
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &get_as_float) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (gettimeofday(&tp, &tz)) {
|
||||
if (gettimeofday(&tp, NULL)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user