xref: /PHP-8.0/ext/ldap/ldap_arginfo.h (revision 465aa1d3)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 9e097927708f5f1d0a2ed8267422e6095e8583b0 */
3 
4 #if defined(HAVE_ORALDAP)
5 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_connect, 0, 0, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, uri, IS_STRING, 1, "null")
7 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, port, IS_LONG, 0, "389")
8 	ZEND_ARG_TYPE_INFO(0, wallet, IS_STRING, 0)
9 	ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
10 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, auth_mode, IS_LONG, 0, "GSLC_SSL_NO_AUTH")
11 ZEND_END_ARG_INFO()
12 #endif
13 
14 #if !(defined(HAVE_ORALDAP))
15 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_connect, 0, 0, 0)
16 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, uri, IS_STRING, 1, "null")
17 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, port, IS_LONG, 0, "389")
18 ZEND_END_ARG_INFO()
19 #endif
20 
21 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_unbind, 0, 1, _IS_BOOL, 0)
22 	ZEND_ARG_INFO(0, ldap)
23 ZEND_END_ARG_INFO()
24 
25 #define arginfo_ldap_close arginfo_ldap_unbind
26 
27 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_bind, 0, 1, _IS_BOOL, 0)
28 	ZEND_ARG_INFO(0, ldap)
29 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, dn, IS_STRING, 1, "null")
30 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null")
31 ZEND_END_ARG_INFO()
32 
33 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_bind_ext, 0, 0, 1)
34 	ZEND_ARG_INFO(0, ldap)
35 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, dn, IS_STRING, 1, "null")
36 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null")
37 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
38 ZEND_END_ARG_INFO()
39 
40 #if defined(HAVE_LDAP_SASL)
41 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_sasl_bind, 0, 1, _IS_BOOL, 0)
42 	ZEND_ARG_INFO(0, ldap)
43 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, dn, IS_STRING, 1, "null")
44 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null")
45 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mech, IS_STRING, 1, "null")
46 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, realm, IS_STRING, 1, "null")
47 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, authc_id, IS_STRING, 1, "null")
48 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, authz_id, IS_STRING, 1, "null")
49 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, props, IS_STRING, 1, "null")
50 ZEND_END_ARG_INFO()
51 #endif
52 
53 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_read, 0, 0, 3)
54 	ZEND_ARG_INFO(0, ldap)
55 	ZEND_ARG_TYPE_MASK(0, base, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
56 	ZEND_ARG_TYPE_MASK(0, filter, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
57 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, attributes, IS_ARRAY, 0, "[]")
58 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, attributes_only, IS_LONG, 0, "0")
59 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, sizelimit, IS_LONG, 0, "-1")
60 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timelimit, IS_LONG, 0, "-1")
61 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deref, IS_LONG, 0, "LDAP_DEREF_NEVER")
62 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
63 ZEND_END_ARG_INFO()
64 
65 #define arginfo_ldap_list arginfo_ldap_read
66 
67 #define arginfo_ldap_search arginfo_ldap_read
68 
69 #define arginfo_ldap_free_result arginfo_ldap_unbind
70 
71 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_count_entries, 0, 2, IS_LONG, 0)
72 	ZEND_ARG_INFO(0, ldap)
73 	ZEND_ARG_INFO(0, result)
74 ZEND_END_ARG_INFO()
75 
76 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_first_entry, 0, 0, 2)
77 	ZEND_ARG_INFO(0, ldap)
78 	ZEND_ARG_INFO(0, result)
79 ZEND_END_ARG_INFO()
80 
81 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_next_entry, 0, 0, 2)
82 	ZEND_ARG_INFO(0, ldap)
83 	ZEND_ARG_INFO(0, entry)
84 ZEND_END_ARG_INFO()
85 
86 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_get_entries, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
87 	ZEND_ARG_INFO(0, ldap)
88 	ZEND_ARG_INFO(0, result)
89 ZEND_END_ARG_INFO()
90 
91 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_first_attribute, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
92 	ZEND_ARG_INFO(0, ldap)
93 	ZEND_ARG_INFO(0, entry)
94 ZEND_END_ARG_INFO()
95 
96 #define arginfo_ldap_next_attribute arginfo_ldap_first_attribute
97 
98 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_get_attributes, 0, 2, IS_ARRAY, 0)
99 	ZEND_ARG_INFO(0, ldap)
100 	ZEND_ARG_INFO(0, entry)
101 ZEND_END_ARG_INFO()
102 
103 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_get_values_len, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
104 	ZEND_ARG_INFO(0, ldap)
105 	ZEND_ARG_INFO(0, entry)
106 	ZEND_ARG_TYPE_INFO(0, attribute, IS_STRING, 0)
107 ZEND_END_ARG_INFO()
108 
109 #define arginfo_ldap_get_values arginfo_ldap_get_values_len
110 
111 #define arginfo_ldap_get_dn arginfo_ldap_first_attribute
112 
113 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_explode_dn, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
114 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
115 	ZEND_ARG_TYPE_INFO(0, with_attrib, IS_LONG, 0)
116 ZEND_END_ARG_INFO()
117 
118 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_dn2ufn, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
119 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
120 ZEND_END_ARG_INFO()
121 
122 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_add, 0, 3, _IS_BOOL, 0)
123 	ZEND_ARG_INFO(0, ldap)
124 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
125 	ZEND_ARG_TYPE_INFO(0, entry, IS_ARRAY, 0)
126 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
127 ZEND_END_ARG_INFO()
128 
129 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_add_ext, 0, 0, 3)
130 	ZEND_ARG_INFO(0, ldap)
131 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
132 	ZEND_ARG_TYPE_INFO(0, entry, IS_ARRAY, 0)
133 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
134 ZEND_END_ARG_INFO()
135 
136 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_delete, 0, 2, _IS_BOOL, 0)
137 	ZEND_ARG_INFO(0, ldap)
138 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
139 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
140 ZEND_END_ARG_INFO()
141 
142 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_delete_ext, 0, 0, 2)
143 	ZEND_ARG_INFO(0, ldap)
144 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
145 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
146 ZEND_END_ARG_INFO()
147 
148 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_modify_batch, 0, 3, _IS_BOOL, 0)
149 	ZEND_ARG_INFO(0, ldap)
150 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
151 	ZEND_ARG_TYPE_INFO(0, modifications_info, IS_ARRAY, 0)
152 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
153 ZEND_END_ARG_INFO()
154 
155 #define arginfo_ldap_mod_add arginfo_ldap_add
156 
157 #define arginfo_ldap_mod_add_ext arginfo_ldap_add_ext
158 
159 #define arginfo_ldap_mod_replace arginfo_ldap_add
160 
161 #define arginfo_ldap_modify arginfo_ldap_add
162 
163 #define arginfo_ldap_mod_replace_ext arginfo_ldap_add_ext
164 
165 #define arginfo_ldap_mod_del arginfo_ldap_add
166 
167 #define arginfo_ldap_mod_del_ext arginfo_ldap_add_ext
168 
169 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_errno, 0, 1, IS_LONG, 0)
170 	ZEND_ARG_INFO(0, ldap)
171 ZEND_END_ARG_INFO()
172 
173 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_error, 0, 1, IS_STRING, 0)
174 	ZEND_ARG_INFO(0, ldap)
175 ZEND_END_ARG_INFO()
176 
177 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_err2str, 0, 1, IS_STRING, 0)
178 	ZEND_ARG_TYPE_INFO(0, errno, IS_LONG, 0)
179 ZEND_END_ARG_INFO()
180 
181 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_compare, 0, 4, MAY_BE_BOOL|MAY_BE_LONG)
182 	ZEND_ARG_INFO(0, ldap)
183 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
184 	ZEND_ARG_TYPE_INFO(0, attribute, IS_STRING, 0)
185 	ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
186 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
187 ZEND_END_ARG_INFO()
188 
189 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
190 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_rename, 0, 5, _IS_BOOL, 0)
191 	ZEND_ARG_INFO(0, ldap)
192 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
193 	ZEND_ARG_TYPE_INFO(0, new_rdn, IS_STRING, 0)
194 	ZEND_ARG_TYPE_INFO(0, new_parent, IS_STRING, 0)
195 	ZEND_ARG_TYPE_INFO(0, delete_old_rdn, _IS_BOOL, 0)
196 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
197 ZEND_END_ARG_INFO()
198 #endif
199 
200 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
201 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_rename_ext, 0, 0, 5)
202 	ZEND_ARG_INFO(0, ldap)
203 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
204 	ZEND_ARG_TYPE_INFO(0, new_rdn, IS_STRING, 0)
205 	ZEND_ARG_TYPE_INFO(0, new_parent, IS_STRING, 0)
206 	ZEND_ARG_TYPE_INFO(0, delete_old_rdn, _IS_BOOL, 0)
207 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "null")
208 ZEND_END_ARG_INFO()
209 #endif
210 
211 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
212 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_get_option, 0, 2, _IS_BOOL, 0)
213 	ZEND_ARG_INFO(0, ldap)
214 	ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
215 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, value, "null")
216 ZEND_END_ARG_INFO()
217 #endif
218 
219 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
220 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_set_option, 0, 3, _IS_BOOL, 0)
221 	ZEND_ARG_INFO(0, ldap)
222 	ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
223 	ZEND_ARG_INFO(0, value)
224 ZEND_END_ARG_INFO()
225 #endif
226 
227 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
228 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_count_references, 0, 2, IS_LONG, 0)
229 	ZEND_ARG_INFO(0, ldap)
230 	ZEND_ARG_INFO(0, result)
231 ZEND_END_ARG_INFO()
232 #endif
233 
234 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
235 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_first_reference, 0, 0, 2)
236 	ZEND_ARG_INFO(0, ldap)
237 	ZEND_ARG_INFO(0, result)
238 ZEND_END_ARG_INFO()
239 #endif
240 
241 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
242 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_next_reference, 0, 0, 2)
243 	ZEND_ARG_INFO(0, ldap)
244 	ZEND_ARG_INFO(0, entry)
245 ZEND_END_ARG_INFO()
246 #endif
247 
248 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_REFERENCE)
249 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_parse_reference, 0, 3, _IS_BOOL, 0)
250 	ZEND_ARG_INFO(0, ldap)
251 	ZEND_ARG_INFO(0, entry)
252 	ZEND_ARG_INFO(1, referrals)
253 ZEND_END_ARG_INFO()
254 #endif
255 
256 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_RESULT)
257 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_parse_result, 0, 3, _IS_BOOL, 0)
258 	ZEND_ARG_INFO(0, ldap)
259 	ZEND_ARG_INFO(0, result)
260 	ZEND_ARG_INFO(1, error_code)
261 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, matched_dn, "null")
262 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, error_message, "null")
263 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, referrals, "null")
264 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, controls, "null")
265 ZEND_END_ARG_INFO()
266 #endif
267 
268 #if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
269 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_set_rebind_proc, 0, 2, _IS_BOOL, 0)
270 	ZEND_ARG_INFO(0, ldap)
271 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1)
272 ZEND_END_ARG_INFO()
273 #endif
274 
275 #if defined(HAVE_LDAP_START_TLS_S)
276 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_start_tls, 0, 1, _IS_BOOL, 0)
277 	ZEND_ARG_INFO(0, ldap)
278 ZEND_END_ARG_INFO()
279 #endif
280 
281 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_escape, 0, 1, IS_STRING, 0)
282 	ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
283 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, ignore, IS_STRING, 0, "\"\"")
284 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
285 ZEND_END_ARG_INFO()
286 
287 #if defined(STR_TRANSLATION)
288 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_t61_to_8859, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
289 	ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
290 ZEND_END_ARG_INFO()
291 #endif
292 
293 #if defined(STR_TRANSLATION)
294 #define arginfo_ldap_8859_to_t61 arginfo_ldap_t61_to_8859
295 #endif
296 
297 #if defined(HAVE_LDAP_EXTENDED_OPERATION_S)
298 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_exop, 0, 0, 2)
299 	ZEND_ARG_INFO(0, ldap)
300 	ZEND_ARG_TYPE_INFO(0, request_oid, IS_STRING, 0)
301 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, request_data, IS_STRING, 1, "null")
302 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, controls, IS_ARRAY, 1, "NULL")
303 	ZEND_ARG_INFO(1, response_data)
304 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, response_oid, "null")
305 ZEND_END_ARG_INFO()
306 #endif
307 
308 #if defined(HAVE_LDAP_PASSWD)
309 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_exop_passwd, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
310 	ZEND_ARG_INFO(0, ldap)
311 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, user, IS_STRING, 0, "\"\"")
312 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, old_password, IS_STRING, 0, "\"\"")
313 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, new_password, IS_STRING, 0, "\"\"")
314 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, controls, "null")
315 ZEND_END_ARG_INFO()
316 #endif
317 
318 #if defined(HAVE_LDAP_WHOAMI_S)
319 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_exop_whoami, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
320 	ZEND_ARG_INFO(0, ldap)
321 ZEND_END_ARG_INFO()
322 #endif
323 
324 #if defined(HAVE_LDAP_REFRESH_S)
325 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_exop_refresh, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
326 	ZEND_ARG_INFO(0, ldap)
327 	ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
328 	ZEND_ARG_TYPE_INFO(0, ttl, IS_LONG, 0)
329 ZEND_END_ARG_INFO()
330 #endif
331 
332 #if defined(HAVE_LDAP_PARSE_EXTENDED_RESULT)
333 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_parse_exop, 0, 2, _IS_BOOL, 0)
334 	ZEND_ARG_INFO(0, ldap)
335 	ZEND_ARG_INFO(0, result)
336 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, response_data, "null")
337 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, response_oid, "null")
338 ZEND_END_ARG_INFO()
339 #endif
340 
341 
342 #if defined(HAVE_ORALDAP)
343 ZEND_FUNCTION(ldap_connect);
344 #endif
345 #if !(defined(HAVE_ORALDAP))
346 ZEND_FUNCTION(ldap_connect);
347 #endif
348 ZEND_FUNCTION(ldap_unbind);
349 ZEND_FUNCTION(ldap_bind);
350 ZEND_FUNCTION(ldap_bind_ext);
351 #if defined(HAVE_LDAP_SASL)
352 ZEND_FUNCTION(ldap_sasl_bind);
353 #endif
354 ZEND_FUNCTION(ldap_read);
355 ZEND_FUNCTION(ldap_list);
356 ZEND_FUNCTION(ldap_search);
357 ZEND_FUNCTION(ldap_free_result);
358 ZEND_FUNCTION(ldap_count_entries);
359 ZEND_FUNCTION(ldap_first_entry);
360 ZEND_FUNCTION(ldap_next_entry);
361 ZEND_FUNCTION(ldap_get_entries);
362 ZEND_FUNCTION(ldap_first_attribute);
363 ZEND_FUNCTION(ldap_next_attribute);
364 ZEND_FUNCTION(ldap_get_attributes);
365 ZEND_FUNCTION(ldap_get_values_len);
366 ZEND_FUNCTION(ldap_get_dn);
367 ZEND_FUNCTION(ldap_explode_dn);
368 ZEND_FUNCTION(ldap_dn2ufn);
369 ZEND_FUNCTION(ldap_add);
370 ZEND_FUNCTION(ldap_add_ext);
371 ZEND_FUNCTION(ldap_delete);
372 ZEND_FUNCTION(ldap_delete_ext);
373 ZEND_FUNCTION(ldap_modify_batch);
374 ZEND_FUNCTION(ldap_mod_add);
375 ZEND_FUNCTION(ldap_mod_add_ext);
376 ZEND_FUNCTION(ldap_mod_replace);
377 ZEND_FUNCTION(ldap_mod_replace_ext);
378 ZEND_FUNCTION(ldap_mod_del);
379 ZEND_FUNCTION(ldap_mod_del_ext);
380 ZEND_FUNCTION(ldap_errno);
381 ZEND_FUNCTION(ldap_error);
382 ZEND_FUNCTION(ldap_err2str);
383 ZEND_FUNCTION(ldap_compare);
384 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
385 ZEND_FUNCTION(ldap_rename);
386 #endif
387 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
388 ZEND_FUNCTION(ldap_rename_ext);
389 #endif
390 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
391 ZEND_FUNCTION(ldap_get_option);
392 #endif
393 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
394 ZEND_FUNCTION(ldap_set_option);
395 #endif
396 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
397 ZEND_FUNCTION(ldap_count_references);
398 #endif
399 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
400 ZEND_FUNCTION(ldap_first_reference);
401 #endif
402 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
403 ZEND_FUNCTION(ldap_next_reference);
404 #endif
405 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_REFERENCE)
406 ZEND_FUNCTION(ldap_parse_reference);
407 #endif
408 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_RESULT)
409 ZEND_FUNCTION(ldap_parse_result);
410 #endif
411 #if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
412 ZEND_FUNCTION(ldap_set_rebind_proc);
413 #endif
414 #if defined(HAVE_LDAP_START_TLS_S)
415 ZEND_FUNCTION(ldap_start_tls);
416 #endif
417 ZEND_FUNCTION(ldap_escape);
418 #if defined(STR_TRANSLATION)
419 ZEND_FUNCTION(ldap_t61_to_8859);
420 #endif
421 #if defined(STR_TRANSLATION)
422 ZEND_FUNCTION(ldap_8859_to_t61);
423 #endif
424 #if defined(HAVE_LDAP_EXTENDED_OPERATION_S)
425 ZEND_FUNCTION(ldap_exop);
426 #endif
427 #if defined(HAVE_LDAP_PASSWD)
428 ZEND_FUNCTION(ldap_exop_passwd);
429 #endif
430 #if defined(HAVE_LDAP_WHOAMI_S)
431 ZEND_FUNCTION(ldap_exop_whoami);
432 #endif
433 #if defined(HAVE_LDAP_REFRESH_S)
434 ZEND_FUNCTION(ldap_exop_refresh);
435 #endif
436 #if defined(HAVE_LDAP_PARSE_EXTENDED_RESULT)
437 ZEND_FUNCTION(ldap_parse_exop);
438 #endif
439 
440 
441 static const zend_function_entry ext_functions[] = {
442 #if defined(HAVE_ORALDAP)
443 	ZEND_FE(ldap_connect, arginfo_ldap_connect)
444 #endif
445 #if !(defined(HAVE_ORALDAP))
446 	ZEND_FE(ldap_connect, arginfo_ldap_connect)
447 #endif
448 	ZEND_FE(ldap_unbind, arginfo_ldap_unbind)
449 	ZEND_FALIAS(ldap_close, ldap_unbind, arginfo_ldap_close)
450 	ZEND_FE(ldap_bind, arginfo_ldap_bind)
451 	ZEND_FE(ldap_bind_ext, arginfo_ldap_bind_ext)
452 #if defined(HAVE_LDAP_SASL)
453 	ZEND_FE(ldap_sasl_bind, arginfo_ldap_sasl_bind)
454 #endif
455 	ZEND_FE(ldap_read, arginfo_ldap_read)
456 	ZEND_FE(ldap_list, arginfo_ldap_list)
457 	ZEND_FE(ldap_search, arginfo_ldap_search)
458 	ZEND_FE(ldap_free_result, arginfo_ldap_free_result)
459 	ZEND_FE(ldap_count_entries, arginfo_ldap_count_entries)
460 	ZEND_FE(ldap_first_entry, arginfo_ldap_first_entry)
461 	ZEND_FE(ldap_next_entry, arginfo_ldap_next_entry)
462 	ZEND_FE(ldap_get_entries, arginfo_ldap_get_entries)
463 	ZEND_FE(ldap_first_attribute, arginfo_ldap_first_attribute)
464 	ZEND_FE(ldap_next_attribute, arginfo_ldap_next_attribute)
465 	ZEND_FE(ldap_get_attributes, arginfo_ldap_get_attributes)
466 	ZEND_FE(ldap_get_values_len, arginfo_ldap_get_values_len)
467 	ZEND_FALIAS(ldap_get_values, ldap_get_values_len, arginfo_ldap_get_values)
468 	ZEND_FE(ldap_get_dn, arginfo_ldap_get_dn)
469 	ZEND_FE(ldap_explode_dn, arginfo_ldap_explode_dn)
470 	ZEND_FE(ldap_dn2ufn, arginfo_ldap_dn2ufn)
471 	ZEND_FE(ldap_add, arginfo_ldap_add)
472 	ZEND_FE(ldap_add_ext, arginfo_ldap_add_ext)
473 	ZEND_FE(ldap_delete, arginfo_ldap_delete)
474 	ZEND_FE(ldap_delete_ext, arginfo_ldap_delete_ext)
475 	ZEND_FE(ldap_modify_batch, arginfo_ldap_modify_batch)
476 	ZEND_FE(ldap_mod_add, arginfo_ldap_mod_add)
477 	ZEND_FE(ldap_mod_add_ext, arginfo_ldap_mod_add_ext)
478 	ZEND_FE(ldap_mod_replace, arginfo_ldap_mod_replace)
479 	ZEND_FALIAS(ldap_modify, ldap_mod_replace, arginfo_ldap_modify)
480 	ZEND_FE(ldap_mod_replace_ext, arginfo_ldap_mod_replace_ext)
481 	ZEND_FE(ldap_mod_del, arginfo_ldap_mod_del)
482 	ZEND_FE(ldap_mod_del_ext, arginfo_ldap_mod_del_ext)
483 	ZEND_FE(ldap_errno, arginfo_ldap_errno)
484 	ZEND_FE(ldap_error, arginfo_ldap_error)
485 	ZEND_FE(ldap_err2str, arginfo_ldap_err2str)
486 	ZEND_FE(ldap_compare, arginfo_ldap_compare)
487 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
488 	ZEND_FE(ldap_rename, arginfo_ldap_rename)
489 #endif
490 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
491 	ZEND_FE(ldap_rename_ext, arginfo_ldap_rename_ext)
492 #endif
493 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
494 	ZEND_FE(ldap_get_option, arginfo_ldap_get_option)
495 #endif
496 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
497 	ZEND_FE(ldap_set_option, arginfo_ldap_set_option)
498 #endif
499 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
500 	ZEND_FE(ldap_count_references, arginfo_ldap_count_references)
501 #endif
502 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
503 	ZEND_FE(ldap_first_reference, arginfo_ldap_first_reference)
504 #endif
505 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
506 	ZEND_FE(ldap_next_reference, arginfo_ldap_next_reference)
507 #endif
508 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_REFERENCE)
509 	ZEND_FE(ldap_parse_reference, arginfo_ldap_parse_reference)
510 #endif
511 #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_RESULT)
512 	ZEND_FE(ldap_parse_result, arginfo_ldap_parse_result)
513 #endif
514 #if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
515 	ZEND_FE(ldap_set_rebind_proc, arginfo_ldap_set_rebind_proc)
516 #endif
517 #if defined(HAVE_LDAP_START_TLS_S)
518 	ZEND_FE(ldap_start_tls, arginfo_ldap_start_tls)
519 #endif
520 	ZEND_FE(ldap_escape, arginfo_ldap_escape)
521 #if defined(STR_TRANSLATION)
522 	ZEND_FE(ldap_t61_to_8859, arginfo_ldap_t61_to_8859)
523 #endif
524 #if defined(STR_TRANSLATION)
525 	ZEND_FE(ldap_8859_to_t61, arginfo_ldap_8859_to_t61)
526 #endif
527 #if defined(HAVE_LDAP_EXTENDED_OPERATION_S)
528 	ZEND_FE(ldap_exop, arginfo_ldap_exop)
529 #endif
530 #if defined(HAVE_LDAP_PASSWD)
531 	ZEND_FE(ldap_exop_passwd, arginfo_ldap_exop_passwd)
532 #endif
533 #if defined(HAVE_LDAP_WHOAMI_S)
534 	ZEND_FE(ldap_exop_whoami, arginfo_ldap_exop_whoami)
535 #endif
536 #if defined(HAVE_LDAP_REFRESH_S)
537 	ZEND_FE(ldap_exop_refresh, arginfo_ldap_exop_refresh)
538 #endif
539 #if defined(HAVE_LDAP_PARSE_EXTENDED_RESULT)
540 	ZEND_FE(ldap_parse_exop, arginfo_ldap_parse_exop)
541 #endif
542 	ZEND_FE_END
543 };
544