Skip to content

Commit 851b95f

Browse files
committed
Several return type fixes, still not completed... Incomplete prototypes :-/
1 parent db6990a commit 851b95f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Zend/zend_builtin_functions.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strncasecmp, 0, 3, IS_LONG, 0, 0
163163
ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
164164
ZEND_END_ARG_INFO()
165165

166-
/* array each(array &arr) */
166+
/* mixed each(array &arr) */
167167
ZEND_BEGIN_ARG_INFO_EX(arginfo_each, 0, 0, 1)
168168
ZEND_ARG_TYPE_INFO(1, arr, IS_ARRAY, 0)
169169
ZEND_END_ARG_INFO()
@@ -194,8 +194,8 @@ ZEND_END_ARG_INFO()
194194
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_called_class, 0, 0, IS_STRING, 0, 0)
195195
ZEND_END_ARG_INFO()
196196

197-
/* string get_parent_class([mixed object]) */
198-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_parent_class, 0, 0, IS_STRING, 0, 0)
197+
/* mixed get_parent_class([mixed object]) */
198+
ZEND_BEGIN_ARG_TYPE_INFO_EX(arginfo_get_parent_class, 0, 0, 0)
199199
ZEND_ARG_INFO(0, object)
200200
ZEND_END_ARG_INFO()
201201

@@ -307,8 +307,8 @@ ZEND_END_ARG_INFO()
307307
ZEND_BEGIN_ARG_INFO_EX(arginfo_restore_error_handler, 0, 0, 0)
308308
ZEND_END_ARG_INFO()
309309

310-
/* string set_exception_handler(callable exception_handler) */
311-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_exception_handler, 0, 1, IS_STRING, 0, 0)
310+
/* mixed set_exception_handler(callable exception_handler) */
311+
ZEND_BEGIN_ARG_INFO_EX(arginfo_set_exception_handler, 0, 0, 1)
312312
ZEND_ARG_TYPE_INFO(0, exception_handler, IS_CALLABLE, 0)
313313
ZEND_END_ARG_INFO()
314314

@@ -1071,8 +1071,8 @@ ZEND_FUNCTION(get_called_class)
10711071
}
10721072
/* }}} */
10731073

1074-
/* {{{ proto string get_parent_class([mixed object])
1075-
Retrieves the parent class name for object or class or current scope. */
1074+
/* {{{ proto mixed get_parent_class([mixed object])
1075+
Retrieves the parent class name for object or class or current scope or false if not in a scope. */
10761076
ZEND_FUNCTION(get_parent_class)
10771077
{
10781078
zval *arg;
@@ -1878,7 +1878,7 @@ ZEND_FUNCTION(restore_error_handler)
18781878
/* }}} */
18791879

18801880
/* {{{ proto mixed set_exception_handler(callable exception_handler)
1881-
Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */
1881+
Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */
18821882
ZEND_FUNCTION(set_exception_handler)
18831883
{
18841884
zval *exception_handler;

0 commit comments

Comments
 (0)