forked from laruence/yaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
018.phpt
83 lines (72 loc) · 2.26 KB
/
018.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
--TEST--
Bug Yaf_Config_Ini crash due to inaccurate refcount
--SKIPIF--
<?php if (!extension_loaded("yaf")) print "skip"; ?>
--INI--
yaf.use_namespace=0
--FILE--
<?php
$file = dirname(__FILE__) . "/simple.ini";
$config = new Yaf_Config_Ini($file, 'base');
print_r($config);
?>
--EXPECTF--
Yaf_Config_Ini Object
(
[_config:protected] => Array
(
[application] => Array
(
[directory] => APPLICATION_PATH/applcation
)
[name] => base
[array] => Array
(
[1] => 1
[name] => name
)
[5] => 5
[routes] => Array
(
[regex] => Array
(
[type] => regex
[match] => ^/ap/(.*)
[route] => Array
(
[controller] => Index
[action] => action
)
[map] => Array
(
[0] => name
[1] => name
[2] => value
)
)
[simple] => Array
(
[type] => simple
[controller] => c
[module] => m
[action] => a
)
[supervar] => Array
(
[type] => supervar
[varname] => c
)
[rewrite] => Array
(
[type] => rewrite
[match] => /yaf/:name/:value
[route] => Array
(
[controller] => Index
[action] => action
)
)
)
)
[_readonly:protected] => 1
)