Skip to content

Commit ad2143f

Browse files
committed
Fix arginfo/zpp violation if zend_hrtime is not available
Part of GH-19210. Closes GH-19218.
1 parent 23ec35b commit ad2143f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/hrtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
delivered timestamp is monotonic and cannot be adjusted. */
4747
PHP_FUNCTION(hrtime)
4848
{
49-
#if ZEND_HRTIME_AVAILABLE
5049
bool get_as_num = 0;
5150
zend_hrtime_t t = zend_hrtime();
5251

@@ -55,6 +54,7 @@ PHP_FUNCTION(hrtime)
5554
Z_PARAM_BOOL(get_as_num)
5655
ZEND_PARSE_PARAMETERS_END();
5756

57+
#if ZEND_HRTIME_AVAILABLE
5858
if (UNEXPECTED(get_as_num)) {
5959
PHP_RETURN_HRTIME(t);
6060
} else {

0 commit comments

Comments
 (0)