php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_ldap.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Amitay Isaacs <amitay@w-o-i.com> |
14 | Eric Warnke <ericw@albany.edu> |
15 | Jani Taskinen <sniper@iki.fi> |
16 +----------------------------------------------------------------------+
17*/
18
19#ifndef PHP_LDAP_H
20#define PHP_LDAP_H
21
22#ifndef HAVE_ORALDAP
23#include <lber.h>
24#endif
25
26#include <ldap.h>
27
29#define ldap_module_ptr &ldap_module_entry
30
31#include "php_version.h"
32#define PHP_LDAP_VERSION PHP_VERSION
33
34/* LDAP functions */
38
42 bool tls_newctx; /* create new TLS context before connect */
44
45#if defined(ZTS) && defined(COMPILE_DL_LDAP)
47#endif
48
50#define LDAPG(v) ZEND_MODULE_GLOBALS_ACCESSOR(ldap, v)
51
52#define phpext_ldap_ptr ldap_module_ptr
53
54/* Constants for ldap_modify_batch */
55#define LDAP_MODIFY_BATCH_ADD 0x01
56#define LDAP_MODIFY_BATCH_REMOVE 0x02
57#define LDAP_MODIFY_BATCH_REMOVE_ALL 0x12
58#define LDAP_MODIFY_BATCH_REPLACE 0x03
59
60#define LDAP_MODIFY_BATCH_ATTRIB "attrib"
61#define LDAP_MODIFY_BATCH_MODTYPE "modtype"
62#define LDAP_MODIFY_BATCH_VALUES "values"
63
64#endif /* PHP_LDAP_H */
zend_module_entry ldap_module_entry
Definition ldap.c:4316
#define PHP_MSHUTDOWN_FUNCTION
Definition php.h:401
#define PHP_MINIT_FUNCTION
Definition php.h:400
#define PHP_MINFO_FUNCTION
Definition php.h:404
zend_long num_links
Definition php_ldap.h:40
zend_long max_links
Definition php_ldap.h:41
bool tls_newctx
Definition php_ldap.h:42
#define ZEND_TSRMLS_CACHE_EXTERN()
Definition zend.h:67
#define ZEND_END_MODULE_GLOBALS(module_name)
Definition zend_API.h:248
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
Definition zend_API.h:270
#define ZEND_BEGIN_MODULE_GLOBALS(module_name)
Definition zend_API.h:246
int32_t zend_long
Definition zend_long.h:42
struct _zend_module_entry zend_module_entry