summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReeze Xia <reeze@php.net>2015-02-07 19:45:22 +0800
committerReeze Xia <reeze@php.net>2015-02-07 19:45:22 +0800
commit49073fcf382875e1301b94a552de52db226f3d07 (patch)
treed99d400a126aff8fbae4ea0fccb0021527a58e50
parent61239e1e8bd53260c3c280df3e990e3d303e45bd (diff)
downloadphp-git-49073fcf382875e1301b94a552de52db226f3d07.tar.gz
Add zend assert deleted by accident
-rw-r--r--Zend/zend_API.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index cd7c202007..393ed398e6 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2003,6 +2003,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_functio
}
if (info->type_hint) {
if (info->class_name) {
+ ZEND_ASSERT(info->type_hint == IS_OBJECT);
if (!scope && (!strcasecmp(info->class_name, "self") || !strcasecmp(info->class_name, "parent"))) {
zend_error(E_CORE_ERROR, "Cannot declare a return type of %s outside of a class scope", info->class_name);
}