bbcode_object *oldobj = (bbcode_object *)((char *)obj - XtOffsetOf(bbcode_object, std));
+ printf("bbcode_clone=%d\n", sizeof(bbcode_object) + zend_object_properties_size(Z_OBJCE_P(obj)));
+
bbcode_object *newobj = ecalloc(1, sizeof(bbcode_object) + zend_object_properties_size(Z_OBJCE_P(obj)));
zend_object_std_init(&newobj->std, Z_OBJCE_P(obj) TSRMLS_CC);
#endif
static zend_object *bbcode_create(zend_class_entry *ce TSRMLS_DC) {
+ printf("bbcode_clone=%d\n", sizeof(bbcode_object) + zend_object_properties_size(ce));
+
bbcode_object *obj = ecalloc(1, sizeof(bbcode_object) + zend_object_properties_size(ce));//emalloc(sizeof(bbcode_object));
obj->flag = 0;
//memset(obj, 0, sizeof(bbcode_object));