Back to index

php5  5.3.10
php_ldap.h
Go to the documentation of this file.
00001 /* 
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Authors: Amitay Isaacs <amitay@w-o-i.com>                            |
00016    |          Eric Warnke   <ericw@albany.edu>                            |
00017    |          Jani Taskinen <sniper@iki.fi>                               |
00018    +----------------------------------------------------------------------+
00019 */
00020 
00021 /* $Id: php_ldap.h 321634 2012-01-01 13:15:04Z felipe $ */
00022 
00023 #ifndef PHP_LDAP_H
00024 #define PHP_LDAP_H
00025 
00026 #ifndef HAVE_ORALDAP
00027 #include <lber.h>
00028 #endif
00029 
00030 #include <ldap.h>
00031 
00032 extern zend_module_entry ldap_module_entry;
00033 #define ldap_module_ptr &ldap_module_entry
00034 
00035 /* LDAP functions */
00036 PHP_MINIT_FUNCTION(ldap);
00037 PHP_MSHUTDOWN_FUNCTION(ldap);
00038 PHP_MINFO_FUNCTION(ldap);
00039 
00040 ZEND_BEGIN_MODULE_GLOBALS(ldap)
00041        long num_links;
00042        long max_links;
00043 ZEND_END_MODULE_GLOBALS(ldap)
00044 
00045 #ifdef ZTS
00046 # define LDAPG(v) TSRMG(ldap_globals_id, zend_ldap_globals *, v)
00047 #else
00048 # define LDAPG(v) (ldap_globals.v)
00049 #endif
00050 
00051 #define phpext_ldap_ptr ldap_module_ptr
00052 
00053 #endif /* PHP_LDAP_H */