diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2015-07-07 12:10:22 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2015-07-07 12:10:55 -0500 |
commit | 5df893ce3c6630fc77337ab0d78097eab1002bc1 (patch) | |
tree | 999340047c771e7ba4a6a17677330016bd803162 /Zend/zend_objects.c | |
parent | 29c3cd44485fb8e43b29c46b1f9451e99bca92c8 (diff) | |
download | php-git-5df893ce3c6630fc77337ab0d78097eab1002bc1.tar.gz |
Use NULL where possible for exception class
Matches usage of zend_throw_exception()/zend_throw_exception_ex().
Diffstat (limited to 'Zend/zend_objects.c')
-rw-r--r-- | Zend/zend_objects.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) : ""); |