1
0
Fork 0

compile against PHP_5_3

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@480 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2007-10-01 11:24:34 +00:00
parent c81abedaec
commit 6b0f3f9cdf
3 changed files with 12 additions and 0 deletions

View File

@ -256,6 +256,9 @@ dnl FIXME: handle common.function_name here
SET_IF_SAME_NAME(__isset);
#endif
SET_IF_SAME_NAME(__call);
#ifdef ZEND_CALLSTATIC_FUNC_NAME
SET_IF_SAME_NAME(__callstatic);
#endif
#if defined(ZEND_ENGINE_2_2) || PHP_MAJOR_VERSION >= 6
SET_IF_SAME_NAME(__tostring);
#endif

View File

@ -364,6 +364,9 @@ DEF_STRUCT_P_FUNC(`zend_class_entry', , `dnl {{{
COPY(create_object)
COPY(get_iterator)
COPY(interface_gets_implemented)
#ifdef ZEND_ENGINE_2_3
COPY(get_static_method)
#endif
COPY(serialize)
COPY(unserialize)
/* deal with it inside xc_fix_method */
@ -381,6 +384,9 @@ DEF_STRUCT_P_FUNC(`zend_class_entry', , `dnl {{{
# endif
#endif
COPY(__call)
#ifdef ZEND_CALLSTATIC_FUNC_NAME
COPY(__callstatic)
#endif
/* # NOT DONE */
COPY(module)
#else

View File

@ -25,6 +25,9 @@
#if !defined(ZEND_ENGINE_2_2) && (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2 || PHP_MAJOR_VERSION > 5)
# define ZEND_ENGINE_2_2
#endif
#if !defined(ZEND_ENGINE_2_3) && (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 3 || PHP_MAJOR_VERSION > 5)
# define ZEND_ENGINE_2_3
#endif
#define NOTHING
/* ZendEngine code Switcher */