diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-04-03 14:34:45 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-04-03 14:34:45 +0000 |
commit | ee26bf084d44a45f95fb9098c5c8a6ca4e0ecdce (patch) | |
tree | 77a8b0060510c8862dd3743004f93de05e2cd7d6 /tests/func/007.phpt | |
parent | fea3b0a7f8d78794feb4ce8b9b05816e64b0fe2f (diff) | |
download | php-git-ee26bf084d44a45f95fb9098c5c8a6ca4e0ecdce.tar.gz |
Added ini_set()/ini_get()/ini_restore() test
Diffstat (limited to 'tests/func/007.phpt')
-rw-r--r-- | tests/func/007.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/func/007.phpt b/tests/func/007.phpt new file mode 100644 index 0000000000..310ca6f263 --- /dev/null +++ b/tests/func/007.phpt @@ -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 |