]> granicus.if.org Git - php/commitdiff
Added ini_set()/ini_get()/ini_restore() test
authorYasuo Ohgaki <yohgaki@php.net>
Wed, 3 Apr 2002 14:34:45 +0000 (14:34 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Wed, 3 Apr 2002 14:34:45 +0000 (14:34 +0000)
tests/func/007.phpt [new file with mode: 0644]

diff --git a/tests/func/007.phpt b/tests/func/007.phpt
new file mode 100644 (file)
index 0000000..310ca6f
--- /dev/null
@@ -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