You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-php/pecl-memcached/files/pecl-memcached-1.0.2-php54_...

16 lines
684 B

--- a/php_memcached.c 1970-01-01 04:13:08.000000000 -0500
+++ b/php_memcached.c 2015-02-16 20:46:34.849201777 -0500
@@ -1862,8 +1862,11 @@
i_obj = ecalloc(1, sizeof(*i_obj));
zend_object_std_init( &i_obj->zo, ce TSRMLS_CC );
+#if PHP_VERSION_ID < 50399
zend_hash_copy(i_obj->zo.properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
-
+#else
+ object_properties_init((zend_object*) &(i_obj->zo), ce);
+#endif
i_obj->compression = 1;
retval.handle = zend_objects_store_put(i_obj, (zend_objects_store_dtor_t)zend_objects_destroy_object, (zend_objects_free_object_storage_t)php_memc_free_storage, NULL TSRMLS_CC);