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:
24
tests/func/007.phpt
Normal file
24
tests/func/007.phpt
Normal 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
|
||||
Reference in New Issue
Block a user