Skip to content

Commit 964de03

Browse files
committed
Deprecate restore_include_path()
1 parent b3668aa commit 964de03

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3047,7 +3047,7 @@ static const zend_function_entry basic_functions[] = { /* {{{ */
30473047
PHP_FE(ini_restore, arginfo_ini_restore)
30483048
PHP_FE(get_include_path, arginfo_get_include_path)
30493049
PHP_FE(set_include_path, arginfo_set_include_path)
3050-
PHP_FE(restore_include_path, arginfo_restore_include_path)
3050+
PHP_DEP_FE(restore_include_path, arginfo_restore_include_path)
30513051

30523052
PHP_FE(setcookie, arginfo_setcookie)
30533053
PHP_FE(setrawcookie, arginfo_setrawcookie)

ext/standard/tests/general_functions/include_path.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ string(1) "."
4646

4747
Warning: get_include_path() expects exactly 0 parameters, 1 given in %s on line %d
4848
NULL
49+
50+
Deprecated: Function restore_include_path() is deprecated in %s on line %d
4951
NULL
5052

53+
Deprecated: Function restore_include_path() is deprecated in %s on line %d
54+
5155
Warning: restore_include_path() expects exactly 0 parameters, 1 given in %s on line %d
5256
NULL
5357

@@ -56,20 +60,28 @@ NULL
5660
string(1) "."
5761
string(1) "."
5862
string(3) "var"
63+
64+
Deprecated: Function restore_include_path() is deprecated in %s on line %d
5965
NULL
6066
string(1) "."
6167
string(1) "."
6268
string(14) ".:/path/to/dir"
69+
70+
Deprecated: Function restore_include_path() is deprecated in %s on line %d
6371
NULL
6472
string(1) "."
6573
bool(false)
6674
string(1) "."
75+
76+
Deprecated: Function restore_include_path() is deprecated in %s on line %d
6777
NULL
6878
string(1) "."
6979

7080
Warning: set_include_path() expects parameter 1 to be a valid path, array given in %s on line %d
7181
NULL
7282
string(1) "."
83+
84+
Deprecated: Function restore_include_path() is deprecated in %s on line %d
7385
NULL
7486
string(1) "."
7587
Done

0 commit comments

Comments
 (0)