Skip to content

Commit ecf87a9

Browse files
committed
Use correct property ctor, should fix threading issue in bug #55334
# The code was refactored in 5_4/trunk, no need to merge
1 parent b976eba commit ecf87a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqli/mysqli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry *class_
502502
(void **) &intern->prop_handler);
503503

504504
zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
505-
zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref,
505+
zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor,
506506
(void *) &tmp, sizeof(zval *));
507507

508508
/* link object */

0 commit comments

Comments
 (0)