We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23ec35b commit ad2143fCopy full SHA for ad2143f
1 file changed
ext/standard/hrtime.c
@@ -46,7 +46,6 @@
46
delivered timestamp is monotonic and cannot be adjusted. */
47
PHP_FUNCTION(hrtime)
48
{
49
-#if ZEND_HRTIME_AVAILABLE
50
bool get_as_num = 0;
51
zend_hrtime_t t = zend_hrtime();
52
@@ -55,6 +54,7 @@ PHP_FUNCTION(hrtime)
55
54
Z_PARAM_BOOL(get_as_num)
56
ZEND_PARSE_PARAMETERS_END();
57
+#if ZEND_HRTIME_AVAILABLE
58
if (UNEXPECTED(get_as_num)) {
59
PHP_RETURN_HRTIME(t);
60
} else {
0 commit comments