Skip to content

Commit f4d08d8

Browse files
committed
Fix incorrect protos
1 parent e08d27d commit f4d08d8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Zend/zend_builtin_functions.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ ZEND_FUNCTION(strncasecmp)
600600
}
601601
/* }}} */
602602

603-
/* {{{ proto array each(array arr)
604-
Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element */
603+
/* {{{ proto mixed each(array &arr)
604+
Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element, or false if there is no element at this place */
605605
ZEND_FUNCTION(each)
606606
{
607607
zval *array, *entry, tmp;
@@ -775,7 +775,7 @@ static void copy_constant_array(zval *dst, zval *src) /* {{{ */
775775
}
776776
/* }}} */
777777

778-
/* {{{ proto bool define(string constant_name, mixed value, boolean case_insensitive=false)
778+
/* {{{ proto bool define(string constant_name, mixed value[, boolean case_insensitive])
779779
Define a new constant */
780780
ZEND_FUNCTION(define)
781781
{
@@ -933,8 +933,8 @@ ZEND_FUNCTION(get_called_class)
933933
}
934934
/* }}} */
935935

936-
/* {{{ proto string get_parent_class([mixed object])
937-
Retrieves the parent class name for object or class or current scope. */
936+
/* {{{ proto mixed get_parent_class([mixed object])
937+
Retrieves the parent class name for object or class or current scope or false if not in a scope. */
938938
ZEND_FUNCTION(get_parent_class)
939939
{
940940
zval *arg;
@@ -1025,15 +1025,15 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass) /*
10251025
}
10261026
/* }}} */
10271027

1028-
/* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string=true])
1028+
/* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string])
10291029
Returns true if the object has this class as one of its parents */
10301030
ZEND_FUNCTION(is_subclass_of)
10311031
{
10321032
is_a_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
10331033
}
10341034
/* }}} */
10351035

1036-
/* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string=false])
1036+
/* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string])
10371037
Returns true if the first argument is an object and is this class or has this class as one of its parents, */
10381038
ZEND_FUNCTION(is_a)
10391039
{
@@ -1566,7 +1566,7 @@ ZEND_FUNCTION(class_alias)
15661566
/* }}} */
15671567

15681568
#if ZEND_DEBUG
1569-
/* {{{ proto void leak(int num_bytes=3)
1569+
/* {{{ proto void leak([int num_bytes])
15701570
Cause an intentional memory leak, for testing/debugging purposes */
15711571
ZEND_FUNCTION(leak)
15721572
{
@@ -1670,7 +1670,7 @@ ZEND_FUNCTION(trigger_error)
16701670
}
16711671
/* }}} */
16721672

1673-
/* {{{ proto string set_error_handler(string error_handler [, int error_types])
1673+
/* {{{ proto string set_error_handler(callable error_handler [, int error_types])
16741674
Sets a user-defined error handler function. Returns the previously defined error handler, or false on error */
16751675
ZEND_FUNCTION(set_error_handler)
16761676
{
@@ -1739,8 +1739,8 @@ ZEND_FUNCTION(restore_error_handler)
17391739
}
17401740
/* }}} */
17411741

1742-
/* {{{ proto string set_exception_handler(callable exception_handler)
1743-
Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */
1742+
/* {{{ proto mixed set_exception_handler(callable exception_handler)
1743+
Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */
17441744
ZEND_FUNCTION(set_exception_handler)
17451745
{
17461746
zval *exception_handler;

0 commit comments

Comments
 (0)