-#if 0
-static zend_object_value bbcode_clone(zval *obj TSRMLS_DC)
-{
- bbcode_object *oldobj = zend_object_store_get_object(obj TSRMLS_CC);
- zend_object_value newobj_val = array_buffer_create_object(Z_OBJCE_P(obj) TSRMLS_CC);
- bbcode_object *newobj = zend_object_store_get_object_by_handle(newobj_val.handle TSRMLS_CC);
-
- zend_objects_clone_members(&newobj->std, &oldobj->std);
-
- /* TODO: clone the members of bbcode_object
- newobj->buffer = oldobj->buffer;
- newobj->length = oldobj->length;
-
- if (oldobj->flag) {
- newobj->buffer = emalloc(oldobj->length);
- memcpy(newobj->buffer, oldobj->buffer, oldobj->length);
- }*/
-
- return newobj_val;
-}
-#endif
-