From: Marcus Boerger Date: Sun, 20 Jul 2003 17:50:23 +0000 (+0000) Subject: More informative errors here and these are real core errors X-Git-Tag: BEFORE_ARG_INFO~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9c1fcc026932278462578a7623dad4c7efd87fa;p=php More informative errors here and these are real core errors --- diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c index e162193229..3004144642 100644 --- a/Zend/zend_objects_API.c +++ b/Zend/zend_objects_API.c @@ -166,12 +166,12 @@ ZEND_API zend_object_value zend_objects_store_clone_obj(zval *zobject TSRMLS_DC) zend_object_handle handle = Z_OBJ_HANDLE_P(zobject); if (!EG(objects_store).object_buckets[handle].valid) { - zend_error(E_ERROR, "Trying to clone invalid object"); + zend_error(E_CORE_ERROR, "Trying to clone invalid object of class %s", Z_OBJCE_P(zobject)->name); } obj = &EG(objects_store).object_buckets[handle].bucket.obj; if (obj->clone == NULL) { - zend_error(E_ERROR, "Trying to clone uncloneable object"); + zend_error(E_CORE_ERROR, "Trying to clone uncloneable object of class %s", Z_OBJCE_P(zobject)->name); } obj->clone(obj->object, &new_object TSRMLS_CC);