|
31 | 31 |
|
32 | 32 | static PHP_MINFO_FUNCTION(ctype); |
33 | 33 |
|
34 | | -static PHP_FUNCTION(ctype_alnum); |
35 | | -static PHP_FUNCTION(ctype_alpha); |
36 | | -static PHP_FUNCTION(ctype_cntrl); |
37 | | -static PHP_FUNCTION(ctype_digit); |
38 | | -static PHP_FUNCTION(ctype_lower); |
39 | | -static PHP_FUNCTION(ctype_graph); |
40 | | -static PHP_FUNCTION(ctype_print); |
41 | | -static PHP_FUNCTION(ctype_punct); |
42 | | -static PHP_FUNCTION(ctype_space); |
43 | | -static PHP_FUNCTION(ctype_upper); |
44 | | -static PHP_FUNCTION(ctype_xdigit); |
45 | | -/* }}} */ |
46 | | - |
47 | | -/* {{{ ctype_functions[] |
48 | | - * Every user visible function must have an entry in ctype_functions[]. |
49 | | - */ |
50 | | -static const zend_function_entry ctype_functions[] = { |
51 | | - PHP_FE(ctype_alnum, arginfo_ctype_alnum) |
52 | | - PHP_FE(ctype_alpha, arginfo_ctype_alpha) |
53 | | - PHP_FE(ctype_cntrl, arginfo_ctype_cntrl) |
54 | | - PHP_FE(ctype_digit, arginfo_ctype_digit) |
55 | | - PHP_FE(ctype_lower, arginfo_ctype_lower) |
56 | | - PHP_FE(ctype_graph, arginfo_ctype_graph) |
57 | | - PHP_FE(ctype_print, arginfo_ctype_print) |
58 | | - PHP_FE(ctype_punct, arginfo_ctype_punct) |
59 | | - PHP_FE(ctype_space, arginfo_ctype_space) |
60 | | - PHP_FE(ctype_upper, arginfo_ctype_upper) |
61 | | - PHP_FE(ctype_xdigit, arginfo_ctype_xdigit) |
62 | | - PHP_FE_END |
63 | | -}; |
64 | 34 | /* }}} */ |
65 | 35 |
|
66 | 36 | /* {{{ ctype_module_entry |
67 | 37 | */ |
68 | 38 | zend_module_entry ctype_module_entry = { |
69 | 39 | STANDARD_MODULE_HEADER, |
70 | 40 | "ctype", |
71 | | - ctype_functions, |
| 41 | + ext_functions, |
72 | 42 | NULL, |
73 | 43 | NULL, |
74 | 44 | NULL, |
@@ -129,87 +99,87 @@ static PHP_MINFO_FUNCTION(ctype) |
129 | 99 |
|
130 | 100 | /* {{{ proto bool ctype_alnum(mixed c) |
131 | 101 | Checks for alphanumeric character(s) */ |
132 | | -static PHP_FUNCTION(ctype_alnum) |
| 102 | +PHP_FUNCTION(ctype_alnum) |
133 | 103 | { |
134 | 104 | CTYPE(isalnum, 1, 0); |
135 | 105 | } |
136 | 106 | /* }}} */ |
137 | 107 |
|
138 | 108 | /* {{{ proto bool ctype_alpha(mixed c) |
139 | 109 | Checks for alphabetic character(s) */ |
140 | | -static PHP_FUNCTION(ctype_alpha) |
| 110 | +PHP_FUNCTION(ctype_alpha) |
141 | 111 | { |
142 | 112 | CTYPE(isalpha, 0, 0); |
143 | 113 | } |
144 | 114 | /* }}} */ |
145 | 115 |
|
146 | 116 | /* {{{ proto bool ctype_cntrl(mixed c) |
147 | 117 | Checks for control character(s) */ |
148 | | -static PHP_FUNCTION(ctype_cntrl) |
| 118 | +PHP_FUNCTION(ctype_cntrl) |
149 | 119 | { |
150 | 120 | CTYPE(iscntrl, 0, 0); |
151 | 121 | } |
152 | 122 | /* }}} */ |
153 | 123 |
|
154 | 124 | /* {{{ proto bool ctype_digit(mixed c) |
155 | 125 | Checks for numeric character(s) */ |
156 | | -static PHP_FUNCTION(ctype_digit) |
| 126 | +PHP_FUNCTION(ctype_digit) |
157 | 127 | { |
158 | 128 | CTYPE(isdigit, 1, 0); |
159 | 129 | } |
160 | 130 | /* }}} */ |
161 | 131 |
|
162 | 132 | /* {{{ proto bool ctype_lower(mixed c) |
163 | 133 | Checks for lowercase character(s) */ |
164 | | -static PHP_FUNCTION(ctype_lower) |
| 134 | +PHP_FUNCTION(ctype_lower) |
165 | 135 | { |
166 | 136 | CTYPE(islower, 0, 0); |
167 | 137 | } |
168 | 138 | /* }}} */ |
169 | 139 |
|
170 | 140 | /* {{{ proto bool ctype_graph(mixed c) |
171 | 141 | Checks for any printable character(s) except space */ |
172 | | -static PHP_FUNCTION(ctype_graph) |
| 142 | +PHP_FUNCTION(ctype_graph) |
173 | 143 | { |
174 | 144 | CTYPE(isgraph, 1, 1); |
175 | 145 | } |
176 | 146 | /* }}} */ |
177 | 147 |
|
178 | 148 | /* {{{ proto bool ctype_print(mixed c) |
179 | 149 | Checks for printable character(s) */ |
180 | | -static PHP_FUNCTION(ctype_print) |
| 150 | +PHP_FUNCTION(ctype_print) |
181 | 151 | { |
182 | 152 | CTYPE(isprint, 1, 1); |
183 | 153 | } |
184 | 154 | /* }}} */ |
185 | 155 |
|
186 | 156 | /* {{{ proto bool ctype_punct(mixed c) |
187 | 157 | Checks for any printable character which is not whitespace or an alphanumeric character */ |
188 | | -static PHP_FUNCTION(ctype_punct) |
| 158 | +PHP_FUNCTION(ctype_punct) |
189 | 159 | { |
190 | 160 | CTYPE(ispunct, 0, 0); |
191 | 161 | } |
192 | 162 | /* }}} */ |
193 | 163 |
|
194 | 164 | /* {{{ proto bool ctype_space(mixed c) |
195 | 165 | Checks for whitespace character(s)*/ |
196 | | -static PHP_FUNCTION(ctype_space) |
| 166 | +PHP_FUNCTION(ctype_space) |
197 | 167 | { |
198 | 168 | CTYPE(isspace, 0, 0); |
199 | 169 | } |
200 | 170 | /* }}} */ |
201 | 171 |
|
202 | 172 | /* {{{ proto bool ctype_upper(mixed c) |
203 | 173 | Checks for uppercase character(s) */ |
204 | | -static PHP_FUNCTION(ctype_upper) |
| 174 | +PHP_FUNCTION(ctype_upper) |
205 | 175 | { |
206 | 176 | CTYPE(isupper, 0, 0); |
207 | 177 | } |
208 | 178 | /* }}} */ |
209 | 179 |
|
210 | 180 | /* {{{ proto bool ctype_xdigit(mixed c) |
211 | 181 | Checks for character(s) representing a hexadecimal digit */ |
212 | | -static PHP_FUNCTION(ctype_xdigit) |
| 182 | +PHP_FUNCTION(ctype_xdigit) |
213 | 183 | { |
214 | 184 | CTYPE(isxdigit, 1, 0); |
215 | 185 | } |
|
0 commit comments