@@ -509,7 +509,7 @@ zend_object_handlers php_com_object_handlers = {
509509 0 ,
510510 php_com_object_free_storage ,
511511 zend_objects_destroy_object ,
512- php_com_object_clone ,
512+ NULL , /* clone */
513513 NULL , /* clone_with */
514514 com_property_read ,
515515 com_property_write ,
@@ -587,30 +587,6 @@ void php_com_object_free_storage(zend_object *object)
587587 zend_object_std_dtor (object );
588588}
589589
590- zend_object * php_com_object_clone (zend_object * object )
591- {
592- php_com_dotnet_object * cloneobj , * origobject ;
593-
594- origobject = (php_com_dotnet_object * ) object ;
595- cloneobj = (php_com_dotnet_object * )emalloc (sizeof (php_com_dotnet_object ));
596-
597- memcpy (cloneobj , origobject , sizeof (* cloneobj ));
598-
599- /* VariantCopy will perform VariantClear; we don't want to clobber
600- * the IDispatch that we memcpy'd, so we init a new variant in the
601- * clone structure */
602- VariantInit (& cloneobj -> v );
603- /* We use the Indirection-following version of the API since we
604- * want to clone as much as possible */
605- VariantCopyInd (& cloneobj -> v , & origobject -> v );
606-
607- if (cloneobj -> typeinfo ) {
608- ITypeInfo_AddRef (cloneobj -> typeinfo );
609- }
610-
611- return (zend_object * )cloneobj ;
612- }
613-
614590zend_object * php_com_object_new (zend_class_entry * ce )
615591{
616592 php_com_dotnet_object * obj ;
0 commit comments