summaryrefslogtreecommitdiff
path: root/Zend/zend_objects.c
diff options
context:
space:
mode:
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) : "");