source: branches/version-2_5-dev/data/module/Compat/tests/function/restore_include_path.phpt @ 20116

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--
2Function -- restore_include_path
3--SKIPIF--
4<?php if (function_exists('restore_include_path')) { echo 'skip'; } ?>
5--FILE--
6<?php
7require_once 'PHP/Compat.php';
8PHP_Compat::loadFunction('restore_include_path');
9
10$orig = ini_get('include_path');
11ini_set('include_path', 'foo');
12echo ini_get('include_path'), "\n";
13
14restore_include_path();
15$new = ini_get('include_path');
16
17if ($orig == $new) {
18    echo 'true';
19}
20?>
21--EXPECT--
22foo
23true
Note: See TracBrowser for help on using the repository browser.