diff --git a/lua.c b/lua.c index 9a0c18a..3c9b5ba 100644 --- a/lua.c +++ b/lua.c @@ -212,7 +212,7 @@ static zend_object_value php_lua_create_object(zend_class_entry *ce TSRMLS_DC) { #if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION < 4) zend_hash_copy(lua_obj->obj.properties, &ce->default_properties, -#if (PHP_MINOR_VERSION < 3) +#if (PHP_MINOR_VERSION < 4) (copy_ctor_func_t) zval_add_ref, #else zval_copy_property_ctor(ce), diff --git a/lua_closure.c b/lua_closure.c index ac17206..24346dd 100644 --- a/lua_closure.c +++ b/lua_closure.c @@ -203,7 +203,7 @@ static zend_object_value php_lua_closure_create_object(zend_class_entry *ce TSRM zend_object_std_init(lua_closure_obj, ce TSRMLS_CC); #if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION < 4) zend_hash_copy(lua_closure_obj->properties, &ce->default_properties, -#if (PHP_MINOR_VERSION < 3) +#if (PHP_MINOR_VERSION < 4) (copy_ctor_func_t) zval_add_ref, #else zval_copy_property_ctor(ce),