summaryrefslogtreecommitdiff
path: root/Zend/zend_objects.c
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2015-07-07 12:10:22 -0500
committerAaron Piotrowski <aaron@trowski.com>2015-07-07 12:10:55 -0500
commit5df893ce3c6630fc77337ab0d78097eab1002bc1 (patch)
tree999340047c771e7ba4a6a17677330016bd803162 /Zend/zend_objects.c
parent29c3cd44485fb8e43b29c46b1f9451e99bca92c8 (diff)
downloadphp-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.c4
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) : "");