Closed ghost closed 11 years ago
When compile under 5.4, it failed. the code in master not works:
`#if PHP_VERSION_ID >= 50400 object_properties_init( (zend_object *) i_obj, ce);
zend_hash_copy(i_obj->zo.properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
` So I change to the method below, and it works now:
`#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 ));
object_properties_init( (zend_object *) i_obj, ce);
` here is bug : https://bugs.php.net/bug.php?id=64336
When compile under 5.4, it failed. the code in master not works:
`#if PHP_VERSION_ID >= 50400 object_properties_init( (zend_object *) i_obj, ce);
else
endif
` So I change to the method below, and it works now:
`#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
endif
` here is bug : https://bugs.php.net/bug.php?id=64336