Return to php_ldap.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / ldap |
1.1 ! misho 1: /* ! 2: +----------------------------------------------------------------------+ ! 3: | PHP Version 5 | ! 4: +----------------------------------------------------------------------+ ! 5: | Copyright (c) 1997-2012 The PHP Group | ! 6: +----------------------------------------------------------------------+ ! 7: | This source file is subject to version 3.01 of the PHP license, | ! 8: | that is bundled with this package in the file LICENSE, and is | ! 9: | available through the world-wide-web at the following url: | ! 10: | http://www.php.net/license/3_01.txt | ! 11: | If you did not receive a copy of the PHP license and are unable to | ! 12: | obtain it through the world-wide-web, please send a note to | ! 13: | license@php.net so we can mail you a copy immediately. | ! 14: +----------------------------------------------------------------------+ ! 15: | Authors: Amitay Isaacs <amitay@w-o-i.com> | ! 16: | Eric Warnke <ericw@albany.edu> | ! 17: | Jani Taskinen <sniper@iki.fi> | ! 18: +----------------------------------------------------------------------+ ! 19: */ ! 20: ! 21: /* $Id: php_ldap.h 321634 2012-01-01 13:15:04Z felipe $ */ ! 22: ! 23: #ifndef PHP_LDAP_H ! 24: #define PHP_LDAP_H ! 25: ! 26: #ifndef HAVE_ORALDAP ! 27: #include <lber.h> ! 28: #endif ! 29: ! 30: #include <ldap.h> ! 31: ! 32: extern zend_module_entry ldap_module_entry; ! 33: #define ldap_module_ptr &ldap_module_entry ! 34: ! 35: /* LDAP functions */ ! 36: PHP_MINIT_FUNCTION(ldap); ! 37: PHP_MSHUTDOWN_FUNCTION(ldap); ! 38: PHP_MINFO_FUNCTION(ldap); ! 39: ! 40: ZEND_BEGIN_MODULE_GLOBALS(ldap) ! 41: long num_links; ! 42: long max_links; ! 43: ZEND_END_MODULE_GLOBALS(ldap) ! 44: ! 45: #ifdef ZTS ! 46: # define LDAPG(v) TSRMG(ldap_globals_id, zend_ldap_globals *, v) ! 47: #else ! 48: # define LDAPG(v) (ldap_globals.v) ! 49: #endif ! 50: ! 51: #define phpext_ldap_ptr ldap_module_ptr ! 52: ! 53: #endif /* PHP_LDAP_H */