com php-src: Add zend assert deleted by accident: Zend/zend_A PI.c
| From: | Dmitry Stogov | Date: | Sat, 07 Feb 2015 11:45:22 +0000 |
| Subject: | com php-src: Add zend assert deleted by accident: Zend/zend_A PI.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85204@lists.php.net to get a copy of this message | ||
Commit: 49073fcf382875e1301b94a552de52db226f3d07
Author: Reeze Xia <reeze@php.net> Sat, 7 Feb 2015 19:45:22 +0800
Parents: 61239e1e8bd53260c3c280df3e990e3d303e45bd
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=49073fcf382875e1301b94a552de52db226f3d07
Log:
Add zend assert deleted by accident
Changed paths:
M Zend/zend_API.c
Diff:
diff --git a/Zend/zend_API..c b/Zend/zend_API.c
index cd7c202..393ed39 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);
}