]> Raphaël G. Git Repositories - bbcode/commitdiff
Add debug
authorRaphaël Gertz <git@rapsys.eu>
Tue, 26 Jun 2018 08:50:23 +0000 (10:50 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 26 Jun 2018 08:50:23 +0000 (10:50 +0200)
bbcode.c

index 8c15a10427651d0bb0cbd1f77d58cf94754f1686..863d84f523578408f9db9429f6709ff3985381f7 100644 (file)
--- a/bbcode.c
+++ b/bbcode.c
@@ -110,6 +110,8 @@ static zend_object *bbcode_clone(zval *obj TSRMLS_DC) {
 
        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);
@@ -165,6 +167,8 @@ static zend_object_value bbcode_clone(zval *obj TSRMLS_DC)
 #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));