diff options
| author | Christoph M. Becker <cmb@php.net> | 2015-06-24 01:15:44 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmb@php.net> | 2015-06-24 01:15:44 +0200 |
| commit | 27e557a169629991f899b2088100ec3a6ee67e88 (patch) | |
| tree | bf770ba8896d6f89bb7e788f462a67921e648b99 /Zend/zend_builtin_functions.c | |
| parent | 74644247764b0e3de7264d949571e0ed474573fc (diff) | |
| parent | 28d7bb97a11c8eb55d568cb095517861c2e33d45 (diff) | |
| download | php-git-27e557a169629991f899b2088100ec3a6ee67e88.tar.gz | |
Merge branch 'master' of https://git.php.net/repository/php-src
# By Rasmus Lerdorf (3) and others
# Via Rasmus Lerdorf
* 'master' of https://git.php.net/repository/php-src:
Fix more proto comments
prepare NEWS for next
Fix more minor mistakes in the proto comments
Avoid op_num = -1 in unfinished generator cleanup
Fix incorrect protos
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 8ea758adcc..93e19fd869 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -600,8 +600,8 @@ ZEND_FUNCTION(strncasecmp) } /* }}} */ -/* {{{ proto array each(array arr) - Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element */ +/* {{{ proto mixed each(array &arr) + 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 */ ZEND_FUNCTION(each) { zval *array, *entry, tmp; @@ -775,7 +775,7 @@ static void copy_constant_array(zval *dst, zval *src) /* {{{ */ } /* }}} */ -/* {{{ proto bool define(string constant_name, mixed value, boolean case_insensitive=false) +/* {{{ proto bool define(string constant_name, mixed value[, boolean case_insensitive]) Define a new constant */ ZEND_FUNCTION(define) { @@ -933,8 +933,8 @@ ZEND_FUNCTION(get_called_class) } /* }}} */ -/* {{{ proto string get_parent_class([mixed object]) - Retrieves the parent class name for object or class or current scope. */ +/* {{{ proto mixed get_parent_class([mixed object]) + Retrieves the parent class name for object or class or current scope or false if not in a scope. */ ZEND_FUNCTION(get_parent_class) { zval *arg; @@ -1025,7 +1025,7 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass) /* } /* }}} */ -/* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string=true]) +/* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string]) Returns true if the object has this class as one of its parents */ ZEND_FUNCTION(is_subclass_of) { @@ -1033,7 +1033,7 @@ ZEND_FUNCTION(is_subclass_of) } /* }}} */ -/* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string=false]) +/* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string]) Returns true if the first argument is an object and is this class or has this class as one of its parents, */ ZEND_FUNCTION(is_a) { @@ -1566,7 +1566,7 @@ ZEND_FUNCTION(class_alias) /* }}} */ #if ZEND_DEBUG -/* {{{ proto void leak(int num_bytes=3) +/* {{{ proto void leak([int num_bytes]) Cause an intentional memory leak, for testing/debugging purposes */ ZEND_FUNCTION(leak) { @@ -1670,7 +1670,7 @@ ZEND_FUNCTION(trigger_error) } /* }}} */ -/* {{{ proto string set_error_handler(string error_handler [, int error_types]) +/* {{{ proto string set_error_handler(callable error_handler [, int error_types]) Sets a user-defined error handler function. Returns the previously defined error handler, or false on error */ ZEND_FUNCTION(set_error_handler) { @@ -1739,8 +1739,8 @@ ZEND_FUNCTION(restore_error_handler) } /* }}} */ -/* {{{ proto string set_exception_handler(callable exception_handler) - Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */ +/* {{{ proto mixed set_exception_handler(callable exception_handler) + Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */ ZEND_FUNCTION(set_exception_handler) { zval *exception_handler; @@ -2115,7 +2115,7 @@ static int add_constant_info(zval *item, void *arg) /* {{{ */ } /* }}} */ -/* {{{ proto array get_loaded_extensions([bool zend_extensions]) U +/* {{{ proto array get_loaded_extensions([bool zend_extensions]) Return an array containing names of loaded extensions */ ZEND_FUNCTION(get_loaded_extensions) { |
