summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-01-29 00:01:24 +0800
committerXinchen Hui <laruence@php.net>2015-01-29 00:01:24 +0800
commit659395e3dd41cd6013d27b0bd13284f2fedd94d3 (patch)
tree2cfe5784562f1336a9a54e74469a60020cae0a10 /Zend/zend_API.c
parentf2f98e51e1c886e162aca0442f77599f19272b55 (diff)
parent4d1693744996f78618da768114a2b225fe4fd503 (diff)
downloadphp-git-659395e3dd41cd6013d27b0bd13284f2fedd94d3.tar.gz
Merge branch 'master' of https://git.php.net/repository/php-src
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index f160bb4456..440e96d311 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2001,6 +2001,9 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_functio
/* Don't count the variadic argument */
internal_function->num_args--;
}
+ if (info->type_hint) {
+ internal_function->fn_flags |= ZEND_ACC_HAS_RETURN_TYPE;
+ }
} else {
internal_function->arg_info = NULL;
internal_function->num_args = 0;