From 5df893ce3c6630fc77337ab0d78097eab1002bc1 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Tue, 7 Jul 2015 12:10:22 -0500 Subject: Use NULL where possible for exception class Matches usage of zend_throw_exception()/zend_throw_exception_ex(). --- Zend/zend_objects.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zend/zend_objects.c') diff --git a/Zend/zend_objects.c b/Zend/zend_objects.c index 93b21e00d9..9694cd6958 100644 --- a/Zend/zend_objects.c +++ b/Zend/zend_objects.c @@ -94,7 +94,7 @@ ZEND_API void zend_objects_destroy_object(zend_object *object) zend_class_entry *ce = object->ce; if (EG(current_execute_data)) { - zend_throw_error(zend_ce_error, + zend_throw_error(NULL, "Call to private %s::__destruct() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); @@ -113,7 +113,7 @@ ZEND_API void zend_objects_destroy_object(zend_object *object) zend_class_entry *ce = object->ce; if (EG(current_execute_data)) { - zend_throw_error(zend_ce_error, + zend_throw_error(NULL, "Call to protected %s::__destruct() from context '%s'", ZSTR_VAL(ce->name), EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); -- cgit v1.2.1