Skip to content

Commit 473c63e

Browse files
committed
Use proper version check.
1 parent 0e30553 commit 473c63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_memcached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2457,7 +2457,7 @@ zend_object_value php_memc_new(zend_class_entry *ce TSRMLS_DC)
24572457

24582458
i_obj = ecalloc(1, sizeof(*i_obj));
24592459
zend_object_std_init( &i_obj->zo, ce TSRMLS_CC );
2460-
#ifdef ZEND_ENGINE_2_4
2460+
#if PHP_VERSION_ID >= 50400
24612461
object_properties_init( (zend_object *) i_obj, ce);
24622462
#else
24632463
zend_hash_copy(i_obj->zo.properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));

0 commit comments

Comments
 (0)