From da8ce17f7ae1abae2adaf7c36049001208e0863a Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 25 Oct 2003 19:28:31 +0000 Subject: This forces a better error message for non working clone calls. --- ext/reflection/php_reflection.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 9dec257d58..99aaecd3e2 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3039,6 +3039,7 @@ ZEND_API void zend_register_reflection_api(TSRMLS_D) { zend_class_entry _reflection_entry; memcpy(&reflection_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); + reflection_object_handlers.clone_obj = NULL; INIT_CLASS_ENTRY(_reflection_entry, "reflection_exception", reflection_exception_functions); reflection_exception_ptr = zend_register_internal_class_ex(&_reflection_entry, zend_exception_get_default(), NULL TSRMLS_CC); -- cgit v1.2.1