diff --git a/curl/curl.php b/curl/curl.php index 0203f198..55f05c5b 100644 --- a/curl/curl.php +++ b/curl/curl.php @@ -2384,7 +2384,7 @@ function curl_multi_add_handle ($mh, $ch) {} * @link https://php.net/manual/en/function.curl-multi-remove-handle.php * @param resource $mh * @param resource $ch - * @return int Returns 0 on success, or one of the CURLM_XXX error codes. + * @return int|false On success, returns one of the CURLM_XXX error codes, false on failure. * @since 5.0 */ function curl_multi_remove_handle ($mh, $ch) {} diff --git a/enchant/enchant.php b/enchant/enchant.php index c173fcf3..78973c30 100644 --- a/enchant/enchant.php +++ b/enchant/enchant.php @@ -135,7 +135,7 @@ function enchant_broker_set_ordering ($broker, $tag, $ordering) {} * @param resource $broker

* Broker resource *

- * @return array + * @return array|false */ function enchant_broker_describe ($broker) {} @@ -163,7 +163,7 @@ function enchant_dict_check ($dict, $word) {} * @param string $word

* Word to use for the suggestions. *

- * @return array Will returns an array of suggestions if the word is bad spelled. + * @return array|false Will returns an array of suggestions if the word is bad spelled. */ function enchant_dict_suggest ($dict, $word) {} diff --git a/geoip/geoip.php b/geoip/geoip.php index add89b32..fa64c3d0 100644 --- a/geoip/geoip.php +++ b/geoip/geoip.php @@ -131,7 +131,7 @@ function geoip_isp_by_name ($hostname) {} * various constants defined with * this extension (ie: GEOIP_*_EDITION). *

- * @return bool|false TRUE is database exists, FALSE if not found, or NULL on error. + * @return bool|null TRUE is database exists, FALSE if not found, or NULL on error. */ function geoip_db_avail ($database) {} diff --git a/http/http.php b/http/http.php index c298ac90..ca241f2a 100644 --- a/http/http.php +++ b/http/http.php @@ -2230,7 +2230,7 @@ function http_negotiate_content_type (array $supported, array &$result = null ) * @param int $status [optional]

* custom response status code *

- * @return void + * @return void returns false or exits with the specified redirection status code */ function http_redirect ($url = null, array $params = null , $session = null, $status = null) {} diff --git a/interbase/interbase.php b/interbase/interbase.php index 1df9c79d..1d583138 100644 --- a/interbase/interbase.php +++ b/interbase/interbase.php @@ -128,7 +128,7 @@ function ibase_drop_db ($connection = null) {} *

* @param int $bind_args [optional]

*

- * @return resource|false If the query raises an error, returns false. If it is successful and + * @return resource|bool If the query raises an error, returns false. If it is successful and * there is a (possibly empty) result set (such as with a SELECT query), * returns a result identifier. If the query was successful and there were * no results, returns true. @@ -257,7 +257,7 @@ function ibase_prepare ($query) {} * @param mixed $bind_arg [optional]

*

* @param mixed $_ [optional] - * @return resource|false If the query raises an error, returns false. If it is successful and + * @return resource|bool If the query raises an error, returns false. If it is successful and * there is a (possibly empty) result set (such as with a SELECT query), * returns a result identifier. If the query was successful and there were * no results, returns true. diff --git a/mcrypt/mcrypt.php b/mcrypt/mcrypt.php index 1e19f00b..5c9d1e6b 100644 --- a/mcrypt/mcrypt.php +++ b/mcrypt/mcrypt.php @@ -396,7 +396,7 @@ function mcrypt_generic_deinit ($td) {} * @param resource $td

* The encryption descriptor. *

- * @return int|false If the self test succeeds it returns false. In case of an error, it + * @return int|bool If the self test succeeds it returns false. In case of an error, it * returns true. * @since 4.0.2 * @since 5.0 diff --git a/mongo/mongo.php b/mongo/mongo.php index 802bfdd4..740eaa14 100644 --- a/mongo/mongo.php +++ b/mongo/mongo.php @@ -1162,7 +1162,7 @@ class MongoCollection { * @link https://secure.php.net/manual/en/mongocollection.ensureindex.php * @param array $keys Field or fields to use as index. * @param array $options [optional] This parameter is an associative array of the form array("optionname" => , ...). - * @return bool always true + * @return true always true */ public function ensureIndex(array $keys, array $options = array()) {} diff --git a/mysql/mysql.php b/mysql/mysql.php index 7323d122..e6e2c0ac 100644 --- a/mysql/mysql.php +++ b/mysql/mysql.php @@ -128,7 +128,7 @@ function mysql_select_db ($database_name, $link_identifier = null) {} * Data inside the query should be properly escaped. *

* @param resource $link_identifier [optional] - * @return resource|false For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, + * @return resource|bool For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, * mysql_query * returns a resource on success, or false on * error. diff --git a/sodium/sodium.php b/sodium/sodium.php index 7e659326..25930bd6 100644 --- a/sodium/sodium.php +++ b/sodium/sodium.php @@ -1009,9 +1009,9 @@ function sodium_randombytes_buf( * Generate a 16-bit integer * /dev/urandom * - * @return int|string + * @return int */ -function sodium_randombytes_random16(): string { +function sodium_randombytes_random16(): int { return ''; } diff --git a/zend/zend.php b/zend/zend.php index 264d8584..3e3e1656 100644 --- a/zend/zend.php +++ b/zend/zend.php @@ -620,9 +620,9 @@ function zend_send_file($filename, $mime_type, $custom_headers) {} /** * Send a buffer using ZDS - * @param $buffer string the content that will be send - * @param $mime_type string[optional] MIME type of the buffer, if omitted, taken from configured MIME types file - * @param $custom_headers string[optional] user defined headers that will be send instead of regular ZDS headers. few basic essential headers will be send anyway + * @param string $buffer the content that will be send + * @param string $mime_type [optional] MIME type of the buffer, if omitted, taken from configured MIME types file + * @param string $custom_headers [optional] user defined headers that will be send instead of regular ZDS headers. few basic essential headers will be send anyway * @return void|false FALSE if sending file failed, does not return otherwise */ function zend_send_buffer($buffer, $mime_type, $custom_headers) {}