summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_def.h
diff options
context:
space:
mode:
authorBoro Sitnikovski <bsitnikovski@sugarcrm.com>2013-09-20 02:58:11 +0200
committerStanislav Malyshev <stas@php.net>2014-06-08 19:14:58 -0700
commitcfccdc63628944cde2c9fe9bfbc897cce3e22dc5 (patch)
tree24b13ae2178fea8a84e6210aa3fc30e087ff850c /Zend/zend_vm_def.h
parentd2783fbf6c7db7e3c4bbfefc101dc5be818f8c33 (diff)
downloadphp-git-cfccdc63628944cde2c9fe9bfbc897cce3e22dc5.tar.gz
Bug 64744
Show the type of the non-object for more descriptive errors
Diffstat (limited to 'Zend/zend_vm_def.h')
-rw-r--r--Zend/zend_vm_def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h
index ba3ed8793e..cd7dbf498d 100644
--- a/Zend/zend_vm_def.h
+++ b/Zend/zend_vm_def.h
@@ -2463,7 +2463,7 @@ ZEND_VM_HANDLER(112, ZEND_INIT_METHOD_CALL, TMP|VAR|UNUSED|CV, CONST|TMP|VAR|CV)
FREE_OP2();
HANDLE_EXCEPTION();
}
- zend_error_noreturn(E_ERROR, "Call to a member function %s() on a non-object", function_name_strval);
+ zend_error_noreturn(E_ERROR, "Call to a member function %s() on %s", function_name_strval, zend_get_type_by_const(Z_TYPE_P(call->object)));
}
if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {