Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support for php 5.4

  • Loading branch information...
commit 463f6ae59dc807427f41978efcbd2df8b6472d97 1 parent 14ecba8
@sebcode sebcode authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 php_chdb.c
4 php_chdb.c
@@ -155,8 +155,12 @@ static zend_object_value php_chdb_new(zend_class_entry *ce TSRMLS_DC)
intern = ecalloc(1, sizeof(*intern));
intern->chdb = NULL;
zend_object_std_init(&intern->zo, ce TSRMLS_CC);
+#if PHP_VERSION_ID < 50399
zend_hash_copy(intern->, &ce->default_properties,
(copy_ctor_func_t)zval_add_ref, (void *)&tmp, sizeof(zval *));
+ object_properties_init(&(intern->zo), ce);
retval.handle = zend_objects_store_put(intern, NULL,
Please sign in to comment.
Something went wrong with that request. Please try again.