1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Added ini_set()/ini_get()/ini_restore() test

This commit is contained in:
Yasuo Ohgaki
2002-04-03 14:34:45 +00:00
parent fea3b0a7f8
commit ee26bf084d

24
tests/func/007.phpt Normal file
View File

@@ -0,0 +1,24 @@
--TEST--
INI functions test
--POST--
--GET--
--FILE--
<?php
$ini1 = ini_get('include_path');
ini_set('include_path','ini_set_works');
echo ini_get('include_path')."\n";
ini_restore('include_path');
$ini2 = ini_get('include_path');
if ($ini1 !== $ini2) {
echo "ini_restore() does not work.\n";
}
else {
echo "ini_restore_works\n";
}
?>
--EXPECT--
ini_set_works
ini_restore_works