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";
|
|
|
|
?>
|
2008-05-27 00:04:31 +00:00
|
|
|
--EXPECTF--
|
2006-12-27 19:17:02 +00:00
|
|
|
unicode(1) "."
|
|
|
|
|
|
|
|
Warning: get_include_path() expects exactly 0 parameters, 1 given in %s on line %d
|
|
|
|
NULL
|
|
|
|
NULL
|
|
|
|
|
|
|
|
Warning: restore_include_path() expects exactly 0 parameters, 1 given in %s on line %d
|
|
|
|
NULL
|
|
|
|
|
|
|
|
Warning: set_include_path() expects exactly 1 parameter, 0 given in %s on line %d
|
|
|
|
NULL
|
|
|
|
unicode(1) "."
|
|
|
|
unicode(1) "."
|
|
|
|
unicode(3) "var"
|
|
|
|
NULL
|
|
|
|
unicode(1) "."
|
|
|
|
unicode(1) "."
|
|
|
|
unicode(14) ".:/path/to/dir"
|
|
|
|
NULL
|
|
|
|
unicode(1) "."
|
2008-12-09 12:56:39 +00:00
|
|
|
bool(false)
|
2006-12-27 19:17:02 +00:00
|
|
|
unicode(1) "."
|
|
|
|
NULL
|
|
|
|
unicode(1) "."
|
|
|
|
|
|
|
|
Warning: set_include_path() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
|
|
|
|
NULL
|
|
|
|
unicode(1) "."
|
|
|
|
NULL
|
|
|
|
unicode(1) "."
|
|
|
|
Done
|