Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

default_properties API change fix

  • Loading branch information...
commit 2aecabcc1a2c271aad6c5a59f54e6e49b9753492 1 parent b6d37e4
@alecmocatta alecmocatta authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 php_bloomy.c
View
4 php_bloomy.c
@@ -210,7 +210,11 @@ zend_object_value php_bloom_new(zend_class_entry *ce TSRMLS_DC)
obj = (php_bloom_t *) emalloc(sizeof(*obj));
memset(obj, 0, sizeof(*obj));
zend_object_std_init(&obj->zo, ce TSRMLS_CC);
+#if PHP_VERSION_ID < 50399
zend_hash_copy(obj->zo.properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
+#else
+ object_properties_init(&(obj->std), class_type);
+#endif
retval.handle = zend_objects_store_put(obj, (zend_objects_store_dtor_t)zend_objects_destroy_object, (zend_objects_free_object_storage_t)php_bloom_free_storage, NULL TSRMLS_CC);
retval.handlers = zend_get_std_object_handlers();

0 comments on commit 2aecabc

Please sign in to comment.
Something went wrong with that request. Please try again.