Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions handlersocket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,13 @@ static zend_object_value php_handlersocket_new(zend_class_entry *ce TSRMLS_DC)
hs->object.ce = ce;
#endif

#if PHP_VERSION_ID < 50399
zend_hash_copy(
hs->object.properties, &ce->default_properties,
(copy_ctor_func_t)zval_add_ref, (void *)&tmp, sizeof(zval *));
#else
object_properties_init((zend_object*) &(hs->object), ce);
#endif

retval.handle = zend_objects_store_put(
hs, (zend_objects_store_dtor_t)zend_objects_destroy_object,
Expand Down