From: Arnaud Le Blanc Date: Thu, 21 May 2009 14:21:40 +0000 (+0000) Subject: MFH: set second argument of gettimeofday() to NULL (fixes #48346, X-Git-Tag: php-5.3.0RC3~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9aca3c04a074ed79308c823b5eacae0e8ba1dc53;p=php MFH: set second argument of gettimeofday() to NULL (fixes #48346, patch by adriano at guiadohardware dot net) --- diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c index 8d192b151a..5d9aa79af3 100644 --- a/ext/standard/microtime.c +++ b/ext/standard/microtime.c @@ -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; }