Revision 20116,
442 bytes
checked in by nanasess, 13 years ago
(diff) |
- svn properties を再設定
- 再設定用のスクリプト追加
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Id
|
Line | |
---|
1 | --TEST-- |
---|
2 | Function -- restore_include_path |
---|
3 | --SKIPIF-- |
---|
4 | <?php if (function_exists('restore_include_path')) { echo 'skip'; } ?> |
---|
5 | --FILE-- |
---|
6 | <?php |
---|
7 | require_once 'PHP/Compat.php'; |
---|
8 | PHP_Compat::loadFunction('restore_include_path'); |
---|
9 | |
---|
10 | $orig = ini_get('include_path'); |
---|
11 | ini_set('include_path', 'foo'); |
---|
12 | echo ini_get('include_path'), "\n"; |
---|
13 | |
---|
14 | restore_include_path(); |
---|
15 | $new = ini_get('include_path'); |
---|
16 | |
---|
17 | if ($orig == $new) { |
---|
18 | echo 'true'; |
---|
19 | } |
---|
20 | ?> |
---|
21 | --EXPECT-- |
---|
22 | foo |
---|
23 | true |
---|
Note: See
TracBrowser
for help on using the repository browser.