Skip to content

Commit c01413b

Browse files
Merge pull request phpmyadmin#19826 from liviuconcioiu/deprecation
Fix $http_response_header deprecation
2 parents 6c6fa51 + 47b233f commit c01413b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libraries/classes/Utils/HttpRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ private function fopen(
267267
stream_context_create($context)
268268
);
269269

270+
if (function_exists('http_get_last_response_headers')) {
271+
$http_response_header = http_get_last_response_headers();
272+
}
273+
270274
if (! isset($http_response_header)) {
271275
return null;
272276
}

0 commit comments

Comments
 (0)