diff options
Diffstat (limited to 'src/classinfo.cpp')
-rw-r--r-- | src/classinfo.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/classinfo.cpp b/src/classinfo.cpp index f1ffb8e..8e78df7 100644 --- a/src/classinfo.cpp +++ b/src/classinfo.cpp @@ -65,9 +65,6 @@ static zend_object_value create_object(zend_class_entry *type TSRMLS_DC) // retrieve the classinfo object _ClassInfo *info = (_ClassInfo *)base->info.user.doc_comment; - // construct the cpp object - object->cpp = info->construct(); - // store the class object->php.ce = type; @@ -90,6 +87,12 @@ static zend_object_value create_object(zend_class_entry *type TSRMLS_DC) // put the object in the storage, and assign a method for deallocating and cloning result.handle = zend_objects_store_put(object, NULL, deallocate_object, clone_object TSRMLS_CC); + // finally, construct the cpp object + object->cpp = info->construct(); + + std::cout << "Allocate object" << std::endl; + std::cout << object->cpp << " " << object << std::endl; + // done return result; } |