blob: b86c8a3197fec489beb5ce990e39061bd2590dbf (
plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
--TEST--
show information about extension
--SKIPIF--
<?php
include "skipif.inc";
if (!extension_loaded("reflection") || !extension_loaded("session")) {
die("skip reflection and session extensions required");
}
?>
--INI--
date.timezone=
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n --re unknown`);
var_dump(`$php -n --re ""`);
var_dump(`$php -n --re pcre`);
echo "Done\n";
?>
--EXPECTF--
string(44) "Exception: Extension unknown does not exist
"
string(37) "Exception: Extension does not exist
"
string(%d) "Extension [ <persistent> extension #%d pcre version %d.%d.%d%a ] {
- INI {
Entry [ pcre.backtrack_limit <ALL> ]
Current = '%d'
}
Entry [ pcre.recursion_limit <ALL> ]
Current = '%d'
}
Entry [ pcre.jit <ALL> ]
Current = '%d'
}
}
- Constants [14] {
Constant [ integer PREG_PATTERN_ORDER ] { 1 }
Constant [ integer PREG_SET_ORDER ] { 2 }
Constant [ integer PREG_OFFSET_CAPTURE ] { 256 }
Constant [ integer PREG_SPLIT_NO_EMPTY ] { 1 }
Constant [ integer PREG_SPLIT_DELIM_CAPTURE ] { 2 }
Constant [ integer PREG_SPLIT_OFFSET_CAPTURE ] { 4 }
Constant [ integer PREG_GREP_INVERT ] { 1 }
Constant [ integer PREG_NO_ERROR ] { 0 }
Constant [ integer PREG_INTERNAL_ERROR ] { 1 }
Constant [ integer PREG_BACKTRACK_LIMIT_ERROR ] { 2 }
Constant [ integer PREG_RECURSION_LIMIT_ERROR ] { 3 }
Constant [ integer PREG_BAD_UTF8_ERROR ] { 4 }
Constant [ integer PREG_BAD_UTF8_OFFSET_ERROR ] { 5 }
Constant [ string PCRE_VERSION ] { %s }
}
- Functions {
Function [ <internal:pcre> function preg_match ] {
- Parameters [5] {
Parameter #0 [ <required> $pattern ]
Parameter #1 [ <required> $subject ]
Parameter #2 [ <optional> &$subpatterns ]
Parameter #3 [ <optional> $flags ]
Parameter #4 [ <optional> $offset ]
}
}
Function [ <internal:pcre> function preg_match_all ] {
- Parameters [5] {
Parameter #0 [ <required> $pattern ]
Parameter #1 [ <required> $subject ]
Parameter #2 [ <optional> &$subpatterns ]
Parameter #3 [ <optional> $flags ]
Parameter #4 [ <optional> $offset ]
}
}
Function [ <internal:pcre> function preg_replace ] {
- Parameters [5] {
Parameter #0 [ <required> $regex ]
Parameter #1 [ <required> $replace ]
Parameter #2 [ <required> $subject ]
Parameter #3 [ <optional> $limit ]
Parameter #4 [ <optional> &$count ]
}
}
Function [ <internal:pcre> function preg_replace_callback ] {
- Parameters [5] {
Parameter #0 [ <required> $regex ]
Parameter #1 [ <required> $callback ]
Parameter #2 [ <required> $subject ]
Parameter #3 [ <optional> $limit ]
Parameter #4 [ <optional> &$count ]
}
}
Function [ <internal:pcre> function preg_replace_callback_array ] {
- Parameters [4] {
Parameter #0 [ <required> $pattern ]
Parameter #1 [ <required> $subject ]
Parameter #2 [ <optional> $limit ]
Parameter #3 [ <optional> &$count ]
}
}
Function [ <internal:pcre> function preg_filter ] {
- Parameters [5] {
Parameter #0 [ <required> $regex ]
Parameter #1 [ <required> $replace ]
Parameter #2 [ <required> $subject ]
Parameter #3 [ <optional> $limit ]
Parameter #4 [ <optional> &$count ]
}
}
Function [ <internal:pcre> function preg_split ] {
- Parameters [4] {
Parameter #0 [ <required> $pattern ]
Parameter #1 [ <required> $subject ]
Parameter #2 [ <optional> $limit ]
Parameter #3 [ <optional> $flags ]
}
}
Function [ <internal:pcre> function preg_quote ] {
- Parameters [2] {
Parameter #0 [ <required> $str ]
Parameter #1 [ <optional> $delim_char ]
}
}
Function [ <internal:pcre> function preg_grep ] {
- Parameters [3] {
Parameter #0 [ <required> $regex ]
Parameter #1 [ <required> $input ]
Parameter #2 [ <optional> $flags ]
}
}
Function [ <internal:pcre> function preg_last_error ] {
- Parameters [0] {
}
}
}
}
"
Done
|