mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00

51 lines
854 B
PHP
51 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
|