From 5bf7a3bf400cc6480123da022b19a6338913c8f6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 22 Apr 2013 17:58:30 +0000 Subject: [PATCH] fix php 5.4 build --- missing.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/missing.h b/missing.h index 0186ea5..3efe1a2 100644 --- a/missing.h +++ b/missing.h @@ -21,11 +21,15 @@ #define ZEND_ENGINE_2_4 #endif -#if defined(PHP_VERSION_ID) && (PHP_VERSION_ID >= 50399) -# if defined(PHP_VERSION_ID) && (PHP_VERSION_ID >= 50500) -# define ZEND_GET_PPTR_TYPE_DC , int type -# define ZEND_GET_PPTR_TYPE_CC , type +#if defined(PHP_VERSION_ID) && (PHP_VERSION_ID >= 50500) +# define ZEND_GET_PPTR_TYPE_DC , int type +# define ZEND_GET_PPTR_TYPE_CC , type +#else +# define ZEND_GET_PPTR_TYPE_DC +# define ZEND_GET_PPTR_TYPE_CC #endif + +#if defined(PHP_VERSION_ID) && (PHP_VERSION_ID >= 50399) # define ZEND_LITERAL_KEY_DC , const zend_literal *_zend_literal_key # define ZEND_LITERAL_KEY_CC , _zend_literal_key # define ZEND_LITERAL_NIL_CC , NULL @@ -46,8 +50,6 @@ } #else -# define ZEND_GET_PPTR_TYPE_DC -# define ZEND_GET_PPTR_TYPE_CC # define ZEND_LITERAL_KEY_DC # define ZEND_LITERAL_KEY_CC # define ZEND_LITERAL_NIL_CC -- 2.30.2