]> granicus.if.org Git - php/commitdiff
MFH: set second argument of gettimeofday() to NULL (fixes #48346,
authorArnaud Le Blanc <lbarnaud@php.net>
Thu, 21 May 2009 14:21:53 +0000 (14:21 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Thu, 21 May 2009 14:21:53 +0000 (14:21 +0000)
patch by adriano at guiadohardware dot net)

ext/standard/microtime.c

index 8d192b151a4d5a04d25a7f4898384e4d1f61b6dd..5d9aa79af330b1f90656f1b5fbd791b6cdb44889 100644 (file)
@@ -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;
        }