Skip to content

Commit ec52f5b

Browse files
committed
Create http_response_header_deprecated_dynamic_fetch.phpt
1 parent 2288cb1 commit ec52f5b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
$http_response_header dynamic fetch should warn
3+
--FILE--
4+
<?php
5+
6+
function http_response_header() {
7+
${__FUNCTION__} = "OK";
8+
var_dump(${__FUNCTION__});
9+
}
10+
11+
http_response_header();
12+
13+
?>
14+
--EXPECTF--
15+
Deprecated: The predefined locally scoped $http_response_header variable is deprecated, call http_get_last_response_headers() instead in %s on line %d
16+
string(2) "OK"

0 commit comments

Comments
 (0)