diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-06-23 17:47:58 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-06-23 17:47:58 -0700 |
commit | a2e794a1366fcd71f04496c206869ffa158547ac (patch) | |
tree | 4c9d6554f3dc658aeaa76892aeecfc3d7eb56b61 /php/src/IcePHP/Config.h | |
parent | Add x64 configurations to C++ projects (diff) | |
download | ice-a2e794a1366fcd71f04496c206869ffa158547ac.tar.bz2 ice-a2e794a1366fcd71f04496c206869ffa158547ac.tar.xz ice-a2e794a1366fcd71f04496c206869ffa158547ac.zip |
PHP changes:
- static translation
- more traditional language mapping (multiple communicators, etc.)
- support for registered (persistent) communicators
- support for PHP namespaces (PHP 5.3 or later)
Diffstat (limited to 'php/src/IcePHP/Config.h')
-rw-r--r-- | php/src/IcePHP/Config.h | 42 |
1 files changed, 34 insertions, 8 deletions
diff --git a/php/src/IcePHP/Config.h b/php/src/IcePHP/Config.h index 304d31dd625..46601ec260b 100644 --- a/php/src/IcePHP/Config.h +++ b/php/src/IcePHP/Config.h @@ -21,7 +21,6 @@ #endif #include <Ice/Ice.h> -#include <Slice/Parser.h> #ifdef _WIN32 # undef WIN32_LEAN_AND_MEAN @@ -60,6 +59,13 @@ extern zend_module_entry ice_module_entry; #include "TSRM.h" #endif +// +// The PHP header files define a macro named "inline". +// +#ifdef inline +# undef inline +#endif + ZEND_MINIT_FUNCTION(ice); ZEND_MSHUTDOWN_FUNCTION(ice); ZEND_RINIT_FUNCTION(ice); @@ -67,17 +73,37 @@ ZEND_RSHUTDOWN_FUNCTION(ice); ZEND_MINFO_FUNCTION(ice); ZEND_BEGIN_MODULE_GLOBALS(ice) - zval* communicator; - void* marshalerMap; - void* profile; - void* properties; - void* objectFactoryMap; + void* communicatorMap; + void* idToClassInfoMap; + void* nameToClassInfoMap; + void* proxyInfoMap; + void* exceptionInfoMap; ZEND_END_MODULE_GLOBALS(ice) #ifdef ZTS -#define ICE_G(v) TSRMG(ice_globals_id, zend_ice_globals*, v) +# define ICE_G(v) TSRMG(ice_globals_id, zend_ice_globals*, v) +#else +# define ICE_G(v) (ice_globals.v) +#endif + +#ifndef Z_ADDREF_P +# ifndef ZVAL_ADDREF +# error "Unknown PHP version" +# endif +# define Z_ADDREF_P(zv) ZVAL_ADDREF(zv) +#endif + +#ifndef ZEND_MN +# define ZEND_MN(name) ZEND_FN(name) +#endif + +#ifdef STRCAST +# error "STRCAST already defined!" +#endif +#if PHP_MAJOR_VERSION > 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 3) +# define STRCAST(s) s #else -#define ICE_G(v) (ice_globals.v) +# define STRCAST(s) const_cast<char*>(s) #endif #endif |