@@ -129,7 +129,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_error_reporting, 0, 0, 0)
129
129
ZEND_ARG_INFO (0 , new_error_level )
130
130
ZEND_END_ARG_INFO ()
131
131
132
- ZEND_BEGIN_ARG_INFO_EX (arginfo_define , 0 , 0 , 3 )
132
+ ZEND_BEGIN_ARG_INFO_EX (arginfo_define , 0 , 0 , 2 )
133
133
ZEND_ARG_INFO (0 , constant_name )
134
134
ZEND_ARG_INFO (0 , value )
135
135
ZEND_ARG_INFO (0 , case_insensitive )
@@ -600,8 +600,8 @@ ZEND_FUNCTION(strncasecmp)
600
600
}
601
601
/* }}} */
602
602
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 */
605
605
ZEND_FUNCTION (each )
606
606
{
607
607
zval * array , * entry , tmp ;
@@ -775,7 +775,7 @@ static void copy_constant_array(zval *dst, zval *src) /* {{{ */
775
775
}
776
776
/* }}} */
777
777
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] )
779
779
Define a new constant */
780
780
ZEND_FUNCTION (define )
781
781
{
@@ -933,8 +933,8 @@ ZEND_FUNCTION(get_called_class)
933
933
}
934
934
/* }}} */
935
935
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 . */
938
938
ZEND_FUNCTION (get_parent_class )
939
939
{
940
940
zval * arg ;
@@ -1025,15 +1025,15 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass) /*
1025
1025
}
1026
1026
/* }}} */
1027
1027
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])
1029
1029
Returns true if the object has this class as one of its parents */
1030
1030
ZEND_FUNCTION (is_subclass_of )
1031
1031
{
1032
1032
is_a_impl (INTERNAL_FUNCTION_PARAM_PASSTHRU , 1 );
1033
1033
}
1034
1034
/* }}} */
1035
1035
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])
1037
1037
Returns true if the first argument is an object and is this class or has this class as one of its parents, */
1038
1038
ZEND_FUNCTION (is_a )
1039
1039
{
@@ -1566,7 +1566,7 @@ ZEND_FUNCTION(class_alias)
1566
1566
/* }}} */
1567
1567
1568
1568
#if ZEND_DEBUG
1569
- /* {{{ proto void leak(int num_bytes=3 )
1569
+ /* {{{ proto void leak([ int num_bytes] )
1570
1570
Cause an intentional memory leak, for testing/debugging purposes */
1571
1571
ZEND_FUNCTION (leak )
1572
1572
{
@@ -1670,7 +1670,7 @@ ZEND_FUNCTION(trigger_error)
1670
1670
}
1671
1671
/* }}} */
1672
1672
1673
- /* {{{ proto string set_error_handler(string error_handler [, int error_types])
1673
+ /* {{{ proto string set_error_handler(callable error_handler [, int error_types])
1674
1674
Sets a user-defined error handler function. Returns the previously defined error handler, or false on error */
1675
1675
ZEND_FUNCTION (set_error_handler )
1676
1676
{
@@ -1739,8 +1739,8 @@ ZEND_FUNCTION(restore_error_handler)
1739
1739
}
1740
1740
/* }}} */
1741
1741
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 */
1744
1744
ZEND_FUNCTION (set_exception_handler )
1745
1745
{
1746
1746
zval * exception_handler ;
@@ -2115,7 +2115,7 @@ static int add_constant_info(zval *item, void *arg) /* {{{ */
2115
2115
}
2116
2116
/* }}} */
2117
2117
2118
- /* {{{ proto array get_loaded_extensions([bool zend_extensions]) U
2118
+ /* {{{ proto array get_loaded_extensions([bool zend_extensions])
2119
2119
Return an array containing names of loaded extensions */
2120
2120
ZEND_FUNCTION (get_loaded_extensions )
2121
2121
{
0 commit comments