From f7c7805f751ca6e29837dbd6c3592e903de05b59 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 16 Jul 2006 09:19:40 +0000 Subject: [PATCH] PHP_5_2: !__tostring cache was MFH by php git-svn-id: svn://svn.lighttpd.net/xcache/trunk@94 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- processor/head.m4 | 2 +- processor/processor.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/head.m4 b/processor/head.m4 index 9589b75..27012ef 100644 --- a/processor/head.m4 +++ b/processor/head.m4 @@ -200,7 +200,7 @@ static void xc_fix_method(processor_t *processor, zend_op_array *dst) /* {{{ */ SET_IF_SAME_NAME(__isset); #endif SET_IF_SAME_NAME(__call); -#if PHP_MAJOR_VERSION >= 6 +#if defined(ZEND_ENGINE_2_2) || PHP_MAJOR_VERSION >= 6 SET_IF_SAME_NAME(__tostring); #endif diff --git a/processor/processor.m4 b/processor/processor.m4 index e49c035..fc18451 100644 --- a/processor/processor.m4 +++ b/processor/processor.m4 @@ -347,7 +347,7 @@ DEF_STRUCT_P_FUNC(`zend_class_entry', , `dnl {{{ #ifdef ZEND_ENGINE_2_1 COPY(__unset) COPY(__isset) -# if PHP_MAJOR_VERSION >= 6 +# if defined(ZEND_ENGINE_2_2) || PHP_MAJOR_VERSION >= 6 COPY(__tostring) # endif #endif