summaryrefslogtreecommitdiff
path: root/tests/php/phpt/ini_entries/002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/phpt/ini_entries/002.phpt')
-rw-r--r--tests/php/phpt/ini_entries/002.phpt69
1 files changed, 69 insertions, 0 deletions
diff --git a/tests/php/phpt/ini_entries/002.phpt b/tests/php/phpt/ini_entries/002.phpt
new file mode 100644
index 0000000..04b1b46
--- /dev/null
+++ b/tests/php/phpt/ini_entries/002.phpt
@@ -0,0 +1,69 @@
+--TEST--
+Test ini entries #2
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--INI--
+ini2=ReValIni2
+ini6=33
+--FILEEOF--
+<?php
+
+var_export( ini_get_all ( 'extension_for_tests' ) );
+
+--EXPECT--
+array (
+ 'ini1' =>
+ array (
+ 'global_value' => 'valIni1',
+ 'local_value' => 'valIni1',
+ 'access' => 7,
+ ),
+ 'ini2' =>
+ array (
+ 'global_value' => 'OrigValIni2',
+ 'local_value' => 'ReValIni2',
+ 'access' => 7,
+ ),
+ 'ini3' =>
+ array (
+ 'global_value' => 'OrigValIni3',
+ 'local_value' => 'valIni3',
+ 'access' => 4,
+ ),
+ 'ini4' =>
+ array (
+ 'global_value' => 'Off',
+ 'local_value' => 'On',
+ 'access' => 1,
+ ),
+ 'ini5' =>
+ array (
+ 'global_value' => 'Off',
+ 'local_value' => 'Off',
+ 'access' => 7,
+ ),
+ 'ini6' =>
+ array (
+ 'global_value' => '11',
+ 'local_value' => '33',
+ 'access' => 7,
+ ),
+ 'ini7' =>
+ array (
+ 'global_value' => '5',
+ 'local_value' => '74',
+ 'access' => 7,
+ ),
+ 'ini8' =>
+ array (
+ 'global_value' => '6.283185',
+ 'local_value' => '3.141593',
+ 'access' => 7,
+ ),
+ 'ini9' =>
+ array (
+ 'global_value' => '5.436564',
+ 'local_value' => '2.718282',
+ 'access' => 1,
+ ),
+) \ No newline at end of file