Skip to content

Commit 48ea03f

Browse files
committed
Explicitly return
1 parent 3706db2 commit 48ea03f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/standard/http.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ PHP_FUNCTION(http_get_last_response_headers)
367367
zend_parse_parameters_none();
368368

369369
if (!Z_ISUNDEF(BG(last_http_headers))) {
370-
ZVAL_COPY(return_value, &BG(last_http_headers));
370+
RETURN_COPY_VALUE(return_value, &BG(last_http_headers));
371+
} else {
372+
RETURN_NULL();
371373
}
372374
}
373375

@@ -377,4 +379,5 @@ PHP_FUNCTION(http_clear_last_response_headers)
377379

378380
zval_ptr_dtor(&BG(last_http_headers));
379381
ZVAL_UNDEF(&BG(last_http_headers));
382+
RETURN_NULL();
380383
}

0 commit comments

Comments
 (0)