mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
Files
dddb40313bf8acdf0294deb3b41fbe94de2806e6
52 lines
854 B
PHP
52 lines
854 B
PHP
--TEST--
|
|
*_include_path() tests
|
|
--INI--
|
|
include_path=.
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(get_include_path());
|
|
var_dump(ini_restore("include_path"));
|
|
|
|
var_dump(set_include_path("var"));
|
|
var_dump(get_include_path());
|
|
|
|
var_dump(ini_restore("include_path"));
|
|
var_dump(get_include_path());
|
|
|
|
var_dump(set_include_path(".:/path/to/dir"));
|
|
var_dump(get_include_path());
|
|
|
|
var_dump(ini_restore("include_path"));
|
|
var_dump(get_include_path());
|
|
|
|
var_dump(set_include_path(""));
|
|
var_dump(get_include_path());
|
|
|
|
var_dump(ini_restore("include_path"));
|
|
var_dump(get_include_path());
|
|
|
|
var_dump(ini_restore("include_path"));
|
|
var_dump(get_include_path());
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
string(1) "."
|
|
NULL
|
|
string(1) "."
|
|
string(3) "var"
|
|
NULL
|
|
string(1) "."
|
|
string(1) "."
|
|
string(14) ".:/path/to/dir"
|
|
NULL
|
|
string(1) "."
|
|
bool(false)
|
|
string(1) "."
|
|
NULL
|
|
string(1) "."
|
|
NULL
|
|
string(1) "."
|
|
Done
|