Skip to content

Commit b3f74b0

Browse files
committed
Deprecate allow_url_include
1 parent 964de03 commit b3f74b0

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

Zend/tests/require_parse_exception.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ var_dump("\u{ffffff}");');
4242

4343
?>
4444
--EXPECT--
45+
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
4546
syntax error, unexpected end of file on line 2
4647
syntax error, unexpected end of file on line 3
4748
syntax error, unexpected end of file, expecting '(' on line 2

ext/opcache/tests/bug64353.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ include "php://filter/read=bug.test/resource=data://text/plain,<?php\n";
2626
echo "OK\n";
2727
?>
2828
--EXPECT--
29+
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
2930
OK

ext/opcache/tests/bug65510.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ function parseQuery() {
1717
parseQuery();
1818
echo "ok\n";
1919
--EXPECT--
20+
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
2021
ok

ext/standard/tests/file/include_userstream_003.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ include "test1://hello";
9494
echo file_get_contents("test2://hello"),"\n";
9595
include "test2://hello";
9696
--EXPECTF--
97+
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
98+
9799
Warning: file_get_contents(): test1:// wrapper is disabled in the server configuration by allow_url_fopen=0 in %sinclude_userstream_003.php on line 86
98100

99101
Warning: file_get_contents(test1://hello): failed to open stream: no suitable wrapper could be found in %sinclude_userstream_003.php on line 86

ext/standard/tests/strings/highlight_file.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ var_dump(highlight_file($filename));
3737
echo "Done\n";
3838
?>
3939
--EXPECTF--
40+
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
41+
4042
Warning: highlight_file() expects at least 1 parameter, 0 given in %s on line %d
4143
bool(false)
4244

main/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,6 +2359,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
23592359
"Directive '%s' is deprecated",
23602360
{
23612361
"track_errors",
2362+
"allow_url_include",
23622363
NULL
23632364
}
23642365
},

0 commit comments

Comments
 (0)