Skip to content

Commit 350c10d

Browse files
committed
fix GH-14785 pedantic error
close GH-15071
1 parent ba909d7 commit 350c10d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/fsock.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent)
8282
efree(hashkey);
8383
}
8484

85-
zend_argument_value_error(6, "must be -1 or between 0 and " ZEND_ULONG_FMT, (PHP_TIMEOUT_ULL_MAX / 1000000.0));
85+
zend_argument_value_error(6, "must be -1 or between 0 and " ZEND_ULONG_FMT, ((double) PHP_TIMEOUT_ULL_MAX / 1000000.0));
8686
RETURN_THROWS();
8787
} else {
8888
#ifndef PHP_WIN32

0 commit comments

Comments
 (0)