Skip to content

Commit 993059b

Browse files
committed
Use copy
1 parent 267c6f5 commit 993059b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/http_fopen_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *pa
993993
PHP_URL_REDIRECT_MAX, HTTP_WRAPPER_HEADER_INIT, &headers STREAMS_CC);
994994

995995
if (!Z_ISUNDEF(headers)) {
996-
ZVAL_DUP(&BG(last_http_headers), &headers);
996+
ZVAL_COPY(&BG(last_http_headers), &headers);
997997

998998
if (FAILURE == zend_set_local_var_str(
999999
"http_response_header", sizeof("http_response_header")-1, &headers, 0)) {

0 commit comments

Comments
 (0)