php-src/ext/standard/tests/general_functions/include_path.phpt

76 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-11-16 13:00:03 +00:00
--TEST--
*_include_path() tests
--INI--
include_path=.
--FILE--
<?php
var_dump(get_include_path());
var_dump(get_include_path("var"));
var_dump(restore_include_path());
var_dump(restore_include_path(""));
var_dump(set_include_path());
var_dump(get_include_path());
var_dump(set_include_path("var"));
var_dump(get_include_path());
var_dump(restore_include_path());
var_dump(get_include_path());
var_dump(set_include_path(".:/path/to/dir"));
var_dump(get_include_path());
var_dump(restore_include_path());
var_dump(get_include_path());
var_dump(set_include_path(""));
var_dump(get_include_path());
var_dump(restore_include_path());
var_dump(get_include_path());
var_dump(set_include_path(array()));
var_dump(get_include_path());
var_dump(restore_include_path());
var_dump(get_include_path());
echo "Done\n";
?>
--EXPECTF--
string(1) "."
Warning: Wrong parameter count for get_include_path() in %s on line %d
NULL
NULL
Warning: Wrong parameter count for restore_include_path() in %s on line %d
NULL
Warning: Wrong parameter count for set_include_path() in %s on line %d
NULL
string(1) "."
string(1) "."
string(3) "var"
NULL
string(1) "."
string(1) "."
string(14) ".:/path/to/dir"
NULL
string(1) "."
string(1) "."
string(1) "."
NULL
string(1) "."
Notice: Array to string conversion in %s on line %d
string(1) "."
string(5) "Array"
NULL
string(1) "."
Done