Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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