Skip to content

Commit b20d2ba

Browse files
author
Rob Richards
committed
fix windows build
1 parent 1fc379a commit b20d2ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/standard/microtime.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ PHP_FUNCTION(microtime)
8989
PHP_FUNCTION(gettimeofday)
9090
{
9191
zend_bool get_as_float = 0;
92+
struct timeval tp;
93+
struct timezone tz;
9294

9395
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &get_as_float) == FAILURE) {
9496
return;
9597
}
96-
97-
struct timeval tp;
98-
struct timezone tz;
9998

10099
memset(&tp, 0, sizeof(tp));
101100
memset(&tz, 0, sizeof(tz));

0 commit comments

Comments
 (0)