summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-04-03 14:34:45 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-04-03 14:34:45 +0000
commitee26bf084d44a45f95fb9098c5c8a6ca4e0ecdce (patch)
tree77a8b0060510c8862dd3743004f93de05e2cd7d6
parentfea3b0a7f8d78794feb4ce8b9b05816e64b0fe2f (diff)
downloadphp-git-ee26bf084d44a45f95fb9098c5c8a6ca4e0ecdce.tar.gz
Added ini_set()/ini_get()/ini_restore() test
-rw-r--r--tests/func/007.phpt24
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