From 7bccd7b1008c8c514aa71d7210e76a9a322d2ec1 Mon Sep 17 00:00:00 2001 From: CaledoniaProject Date: Thu, 17 Oct 2013 11:35:52 +0800 Subject: [PATCH 1/2] Compability issue with PHP 5.3.3 - 5.3.10 is_ref / refcount fixes --- php_taint.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/php_taint.h b/php_taint.h index 990c4f3..767cfde 100644 --- a/php_taint.h +++ b/php_taint.h @@ -83,6 +83,11 @@ extern zend_module_entry taint_module_entry; # define TAINT_ARG_PUSH(v) zend_vm_stack_push(v TSRMLS_CC) #endif +#if (PHP_MAJOR_VERSION == 5) && (PHP_RELEASE_VERSION > 3) +# define refcount refcount__gc +# define is_ref is_ref__gc +#endif + #ifndef Z_SET_ISREF_PP # define Z_SET_ISREF_PP(n) ((*n)->is_ref = 1) #endif From 50c23847574933fce6cde731eee77376e7cc9e25 Mon Sep 17 00:00:00 2001 From: CaledoniaProject Date: Thu, 17 Oct 2013 11:37:34 +0800 Subject: [PATCH 2/2] MINOR version --- php_taint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_taint.h b/php_taint.h index 767cfde..b02b01f 100644 --- a/php_taint.h +++ b/php_taint.h @@ -83,7 +83,7 @@ extern zend_module_entry taint_module_entry; # define TAINT_ARG_PUSH(v) zend_vm_stack_push(v TSRMLS_CC) #endif -#if (PHP_MAJOR_VERSION == 5) && (PHP_RELEASE_VERSION > 3) +#if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION == 3) && (PHP_RELEASE_VERSION > 3) # define refcount refcount__gc # define is_ref is_ref__gc #endif