From ea4d53c2d4fa3235bbe17d374d37c301db421270 Mon Sep 17 00:00:00 2001
From: Artemy Pestretsov
* An object instance.
*
* This parameter must be in lowercase.
*
* An offset to check for.
*
* The return value will be casted to boolean if non-boolean was returned. diff --git a/Ev/Ev.php b/Ev/Ev.php index 9af54a0c..17554266 100644 --- a/Ev/Ev.php +++ b/Ev/Ev.php @@ -388,8 +388,8 @@ final class Ev /** * Class EvWatcher * - * @property-read $is_active boolean TRUE if the watcher is active. FALSE otherwise. - * @property-read $is_pending boolean TRUE if the watcher is pending, i.e. it has outstanding events, but its callback + * @property-read $is_active bool TRUE if the watcher is active. FALSE otherwise. + * @property-read $is_pending bool TRUE if the watcher is pending, i.e. it has outstanding events, but its callback * has not yet been invoked. FALSE otherwise. As long, as a watcher is pending (but not active), one must not * change its priority. */ diff --git a/PDO/PDO.php b/PDO/PDO.php index f5f761e6..f8424c82 100644 --- a/PDO/PDO.php +++ b/PDO/PDO.php @@ -941,7 +941,7 @@ class PDO { *
* Data inside the query should be properly escaped. *
- * @return int PDO::exec returns the number of rows that were modified + * @return int|false PDO::exec returns the number of rows that were modified * or deleted by the SQL statement you issued. If no rows were affected, * PDO::exec returns 0. * @@ -1116,7 +1116,7 @@ class PDO { * @param int $parameter_type [optional]* Provides a data type hint for drivers that have alternate quoting styles. *
- * @return string a quoted string that is theoretically safe to pass into an + * @return string|false a quoted string that is theoretically safe to pass into an * SQL statement. Returns FALSE if the driver does not support quoting in * this way. */ @@ -1471,7 +1471,7 @@ class PDOStatement implements Traversable { * @param int $column* The 0-indexed column in the result set. *
- * @return array an associative array containing the following values representing + * @return array|false an associative array containing the following values representing * the metadata for a single column: * ** One of the {@link https://curl.haxx.se/libcurl/c/libcurl-errors.html CURLM error codes} constants. *
- * @return string|NULL Returns error string for valid error code, NULL otherwise. + * @return string|null Returns error string for valid error code, NULL otherwise. * @since 5.5.0 */ function curl_multi_strerror ($errornum) {} diff --git a/date/date.php b/date/date.php index c836eaa1..60e2a371 100644 --- a/date/date.php +++ b/date/date.php @@ -1094,7 +1094,7 @@ function date_offset_get ($object) {} * @link https://php.net/manual/en/function.date-diff.php * @param DateTime $object * @param DateTime $object2 The date to compare to - * @param boolean $absolute [optional] Whether to return absolute difference. + * @param bool $absolute [optional] Whether to return absolute difference. * @return DateInterval|false The DateInterval object representing the difference between the two dates or FALSE on failure. * @since 5.3.0 */ @@ -1223,7 +1223,7 @@ function timezone_name_from_abbr ($abbr, $gmtOffset = null, $isdst = null) {} * returned by * {@see timezone_open()} * @param $datetimeDateTime that contains the date/time to compute the offset from.
- * @return int|booleanReturns time zone offset in seconds on success or FALSE on failure.
+ * @return int|falseReturns time zone offset in seconds on success or FALSE on failure.
* @since 5.1.0 */ function timezone_offset_get ($object, $datetime) {} diff --git a/date/date_c.php b/date/date_c.php index 29697cdf..479e4a8a 100644 --- a/date/date_c.php +++ b/date/date_c.php @@ -176,7 +176,7 @@ class DateTimeImmutable implements DateTimeInterface { * @param int $yearYear of the date.
* @param int $monthMonth of the date.
* @param int $dayDay of the date.
- * @return static|bool + * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. * */ @@ -189,7 +189,7 @@ class DateTimeImmutable implements DateTimeInterface { * @param int $yearYear of the date.
* @param int $weekWeek of the date.
* @param int $day [optional]Offset from the first day of the week.
- * @return static|bool + * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ public function setISODate($year, $week, $day = 1) { } @@ -213,7 +213,7 @@ class DateTimeImmutable implements DateTimeInterface { * Sets the date and time based on an Unix timestamp * @link https://secure.php.net/manual/en/datetimeimmutable.settimestamp.php * @param int $unixtimestampUnix timestamp representing the date.
- * @return static|bool + * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ public function setTimestamp($unixtimestamp) { } @@ -226,7 +226,7 @@ class DateTimeImmutable implements DateTimeInterface { * A {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object representing the * desired time zone. * - * @return static|bool + * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ public function setTimezone(DateTimeZone $timezone) { } @@ -238,7 +238,7 @@ class DateTimeImmutable implements DateTimeInterface { * @param DateInterval $interval* A {@link https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object *
- * @return static|bool + * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ public function sub(DateInterval $interval) { } @@ -460,8 +460,8 @@ class DateTime implements DateTimeInterface { /** * Returns the difference between two DateTime objects represented as a DateInterval. * @param DateTimeInterface $datetime2 The date to compare to. - * @param boolean $absolute [optional] Whether to return absolute difference. - * @return DateInterval|boolean The DateInterval object representing the difference between the two dates or FALSE on failure. + * @param bool $absolute [optional] Whether to return absolute difference. + * @return DateInterval|false The DateInterval object representing the difference between the two dates or FALSE on failure. * @link https://php.net/manual/en/datetime.diff.php */ public function diff ($datetime2, $absolute = false) {} @@ -472,7 +472,7 @@ class DateTime implements DateTimeInterface { * @param string $format Format accepted by date(). * @param string $time String representing the time. * @param DateTimeZone $timezone A DateTimeZone object representing the desired time zone. - * @return DateTime|boolean + * @return DateTime|false * @link https://php.net/manual/en/datetime.createfromformat.php */ public static function createFromFormat ($format, $time, DateTimeZone $timezone=null) {} diff --git a/dba/dba.php b/dba/dba.php index 8710b3a8..281c5822 100644 --- a/dba/dba.php +++ b/dba/dba.php @@ -208,7 +208,7 @@ function dba_exists ($key, $handle) {} * The database handler, returned by dba_open or * dba_popen. * - * @return string the associated string if the key/data pair is found, FALSE + * @return string|false the associated string if the key/data pair is found, FALSE * otherwise. * @since 4.0 * @since 5.0 diff --git a/dom/dom_c.php b/dom/dom_c.php index 53d6ca35..3b40a707 100644 --- a/dom/dom_c.php +++ b/dom/dom_c.php @@ -294,7 +294,7 @@ class DOMNode { /** * @param DOMNode $arg - * @return boolean + * @return bool */ public function isEqualNode (DOMNode $arg) {} @@ -352,7 +352,7 @@ class DOMNode { * @param $with_comments [optional] Retain comments in output. * @param $xpath [optional] An array of xpaths to filter the nodes by. * @param $ns_prefixes [optional] An array of namespace prefixes to filter the nodes by. - * @return int Number of bytes written or FALSE on failure + * @return int|false Number of bytes written or FALSE on failure */ public function C14NFile ($uri, $exclusive, array $with_comments, array $xpath = null, $ns_prefixes = null) {} @@ -1147,7 +1147,7 @@ class DOMNodeList implements Traversable, Countable { * @param int $index* Index of the node into the collection. *
- * @return DOMNode|null The node at the indexth position in the + * @return DOMNode|null The node at the indexth position in the * DOMNodeList, or &null; if that is not a valid * index. * @since 5.0 diff --git a/enchant/enchant.php b/enchant/enchant.php index 0bbd0e07..c173fcf3 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 TRUE on success or FALSE on failure. + * @return array */ function enchant_broker_describe ($broker) {} @@ -177,7 +177,7 @@ function enchant_dict_suggest ($dict, $word) {} * @param string $word* The word to add *
- * @return void TRUE on success or FALSE on failure. + * @return void */ function enchant_dict_add_to_personal ($dict, $word) {} @@ -222,7 +222,7 @@ function enchant_dict_is_in_session ($dict, $word) {} * @param string $cor* The correct word *
- * @return void TRUE on success or FALSE on failure. + * @return void */ function enchant_dict_store_replacement ($dict, $mis, $cor) {} diff --git a/exif/exif.php b/exif/exif.php index f67960ee..4e0a8493 100644 --- a/exif/exif.php +++ b/exif/exif.php @@ -98,7 +98,7 @@ function read_exif_data ($filename, $sections = null, $arrays = false, $thumbnai * @param int $index* The Tag ID for which a Tag Name will be looked up. *
- * @return string the header name, or FALSE if index is + * @return string|false the header name, or FALSE if index is * not a defined EXIF tag id. * @since 4.2.0 * @since 5.0 @@ -122,7 +122,7 @@ function exif_tagname ($index) {} * The returned image type of the returned thumbnail. This is either * TIFF or JPEG. * - * @return string the embedded thumbnail, or FALSE if the image contains no + * @return string|false the embedded thumbnail, or FALSE if the image contains no * thumbnail. * @since 4.2.0 * @since 5.0 @@ -133,7 +133,7 @@ function exif_thumbnail ($filename, &$width = null, &$height = null, &$imagetype * Determine the type of an image * @link https://php.net/manual/en/function.exif-imagetype.php * @param string $filename The image being checked. - * @return int When a correct signature is found, the appropriate constant value will be + * @return int|false When a correct signature is found, the appropriate constant value will be * returned otherwise the return value is FALSE. The return value is the * same value that getimagesize returns in index 2 but * exif_imagetype is much faster. diff --git a/fann/fann.php b/fann/fann.php index bbcaceef..6400f770 100644 --- a/fann/fann.php +++ b/fann/fann.php @@ -115,7 +115,7 @@ function fann_clear_scaling_params($ann) * * @param resource $ann * - * @return resource Returns a copy of neural network resource on success, or false on error + * @return resource|false Returns a copy of neural network resource on success, or false on error */ function fann_copy($ann) { @@ -142,7 +142,7 @@ function fann_create_from_file($configuration_file) * @param int $num_layers * @param array $layers * - * @return resource Returns a neural network resource on success, or false on error. + * @return resource|false Returns a neural network resource on success, or false on error. */ function fann_create_shortcut_array($num_layers, $layers) { @@ -159,7 +159,7 @@ function fann_create_shortcut_array($num_layers, $layers) * @param int $num_neurons2 * @param int $_ * - * @return reference Returns a neural network resource on success, or false on error. + * @return resource|false Returns a neural network resource on success, or false on error. */ function fann_create_shortcut($num_layers, $num_neurons1, $num_neurons2, $_ = NULL) { @@ -174,7 +174,7 @@ function fann_create_shortcut($num_layers, $num_neurons1, $num_neurons2, $_ = NU * @param int $num_layers * @param array $layers * - * @return ReturnType Returns a neural network resource on success, or false on error. + * @return resource|false Returns a neural network resource on success, or false on error. */ function fann_create_sparse_array($connection_rate, $num_layers, $layers) { @@ -192,7 +192,7 @@ function fann_create_sparse_array($connection_rate, $num_layers, $layers) * @param int $num_neurons2 * @param int $_ * - * @return ReturnType Returns a neural network resource on success, or false on error. + * @return resource|false Returns a neural network resource on success, or false on error. */ function fann_create_sparse($connection_rate, $num_layers, $num_neurons1, $num_neurons2, $_ = NULL) { @@ -206,7 +206,7 @@ function fann_create_sparse($connection_rate, $num_layers, $num_neurons1, $num_n * @param int $num_layers * @param array $layers * - * @return resource Returns a neural network resource on success, or false on error. + * @return resource|false Returns a neural network resource on success, or false on error. */ function fann_create_standard_array($num_layers, $layers) { @@ -223,7 +223,7 @@ function fann_create_standard_array($num_layers, $layers) * @param int $num_neurons2 * @param int $_ * - * @return resource Returns a neural network resource on success, or false on error. + * @return resource|false Returns a neural network resource on success, or false on error. */ function fann_create_standard($num_layers, $num_neurons1, $num_neurons2, $_ = NULL) { @@ -350,7 +350,7 @@ function fann_duplicate_train_data($data) * @param int $layer * @param int $neuron * - * @return int constant or -1 if the neuron is not defined in the neural network, or false on error. + * @return int|false constant or -1 if the neuron is not defined in the neural network, or false on error. */ function fann_get_activation_function($ann, $layer, $neuron) { @@ -365,7 +365,7 @@ function fann_get_activation_function($ann, $layer, $neuron) * @param int $layer * @param int $neuron * - * @return float The activation steepness for the neuron or -1 if the neuron is not defined in the neural network, or false on error. + * @return float|false The activation steepness for the neuron or -1 if the neuron is not defined in the neural network, or false on error. */ function fann_get_activation_steepness($ann, $layer, $neuron) { @@ -391,7 +391,7 @@ function fann_get_bias_array($ann) * * @param resource $ann * - * @return float The bit fail limit, or false on error. + * @return float|false The bit fail limit, or false on error. */ function fann_get_bit_fail_limit($ann) { @@ -404,7 +404,7 @@ function fann_get_bit_fail_limit($ann) * * @param resource $ann * - * @return int The number of bits fail, or false on error. + * @return int|false The number of bits fail, or false on error. */ function fann_get_bit_fail($ann) { @@ -417,7 +417,7 @@ function fann_get_bit_fail($ann) * * @param resource $ann * - * @return int The number of cascade activation functions, or false on error. + * @return int|false The number of cascade activation functions, or false on error. */ function fann_get_cascade_activation_functions_count($ann) { @@ -430,7 +430,7 @@ function fann_get_cascade_activation_functions_count($ann) * * @param resource $ann * - * @return array The cascade activation functions, or false on error. + * @return array|false The cascade activation functions, or false on error. */ function fann_get_cascade_activation_functions($ann) { @@ -443,7 +443,7 @@ function fann_get_cascade_activation_functions($ann) * * @param resource $ann * - * @return int The number of activation steepnesses, or false on error. + * @return int|false The number of activation steepnesses, or false on error. */ function fann_get_cascade_activation_steepnesses_count($ann) { @@ -456,7 +456,7 @@ function fann_get_cascade_activation_steepnesses_count($ann) * * @param resource $ann * - * @return array The cascade activation steepnesses, or false on error. + * @return array|false The cascade activation steepnesses, or false on error. */ function fann_get_cascade_activation_steepnesses($ann) { @@ -469,7 +469,7 @@ function fann_get_cascade_activation_steepnesses($ann) * * @param resource $ann * - * @return float The cascade candidate change fraction, or false on error. + * @return float|false The cascade candidate change fraction, or false on error. */ function fann_get_cascade_candidate_change_fraction($ann) { @@ -482,7 +482,7 @@ function fann_get_cascade_candidate_change_fraction($ann) * * @param resource $ann * - * @return float The candidate limit, or false on error. + * @return float|false The candidate limit, or false on error. */ function fann_get_cascade_candidate_limit($ann) { @@ -495,7 +495,7 @@ function fann_get_cascade_candidate_limit($ann) * * @param resource $ann * - * @return float The number of cascade candidate stagnation epochs, or false on error. + * @return float|false The number of cascade candidate stagnation epochs, or false on error. */ function fann_get_cascade_candidate_stagnation_epochs($ann) { @@ -508,7 +508,7 @@ function fann_get_cascade_candidate_stagnation_epochs($ann) * * @param resource $ann * - * @return int The maximum candidate epochs, or false on error. + * @return int|false The maximum candidate epochs, or false on error. */ function fann_get_cascade_max_cand_epochs($ann) { @@ -521,7 +521,7 @@ function fann_get_cascade_max_cand_epochs($ann) * * @param resource $ann * - * @return int The maximum out epochs, or false on error. + * @return int|false The maximum out epochs, or false on error. */ function fann_get_cascade_max_out_epochs($ann) { @@ -534,7 +534,7 @@ function fann_get_cascade_max_out_epochs($ann) * * @param resource $ann * - * @return int The minimum candidate epochs, or false on error. + * @return int|false The minimum candidate epochs, or false on error. */ function fann_get_cascade_min_cand_epochs($ann) { @@ -547,7 +547,7 @@ function fann_get_cascade_min_cand_epochs($ann) * * @param resource $ann * - * @return int The minimum out epochs, or false on error. + * @return int|false The minimum out epochs, or false on error. */ function fann_get_cascade_min_out_epochs($ann) { @@ -560,7 +560,7 @@ function fann_get_cascade_min_out_epochs($ann) * * @param resource $ann * - * @return int The number of candidate groups, or false on error. + * @return int|false The number of candidate groups, or false on error. */ function fann_get_cascade_num_candidate_groups($ann) { @@ -573,7 +573,7 @@ function fann_get_cascade_num_candidate_groups($ann) * * @param resource $ann * - * @return int The number of candidates used during training, or false on error. + * @return int|false The number of candidates used during training, or false on error. */ function fann_get_cascade_num_candidates($ann) { @@ -586,7 +586,7 @@ function fann_get_cascade_num_candidates($ann) * * @param resource $ann * - * @return float The cascade output change fraction, or false on error. + * @return float|false The cascade output change fraction, or false on error. */ function fann_get_cascade_output_change_fraction($ann) { @@ -599,7 +599,7 @@ function fann_get_cascade_output_change_fraction($ann) * * @param resource $ann * - * @return int The number of cascade output stagnation epochs, or false on error. + * @return int|false The number of cascade output stagnation epochs, or false on error. */ function fann_get_cascade_output_stagnation_epochs($ann) { @@ -612,7 +612,7 @@ function fann_get_cascade_output_stagnation_epochs($ann) * * @param resource $ann * - * @return float The weight multiplier, or false on error. + * @return float|false The weight multiplier, or false on error. */ function fann_get_cascade_weight_multiplier($ann) { @@ -638,7 +638,7 @@ function fann_get_connection_array($ann) * * @param resource $ann * - * @return float The connection rate used when the network was created, or false on error. + * @return float|false The connection rate used when the network was created, or false on error. */ function fann_get_connection_rate($ann) { @@ -651,7 +651,7 @@ function fann_get_connection_rate($ann) * * @param resource $errdat * - * @return int The error number, or false on error. + * @return int|false The error number, or false on error. */ function fann_get_errno($errdat) { @@ -664,7 +664,7 @@ function fann_get_errno($errdat) * * @param resource $errdat * - * @return string The last error string, or false on error. + * @return string|false The last error string, or false on error. */ function fann_get_errstr($errdat) { @@ -690,7 +690,7 @@ function fann_get_layer_array($ann) * * @param resource $ann * - * @return float The learning momentum, or false on error. + * @return float|false The learning momentum, or false on error. */ function fann_get_learning_momentum($ann) { @@ -703,7 +703,7 @@ function fann_get_learning_momentum($ann) * * @param resource $ann * - * @return float The learning rate, or false on error. + * @return float|false The learning rate, or false on error. */ function fann_get_learning_rate($ann) { @@ -716,7 +716,7 @@ function fann_get_learning_rate($ann) * * @param resource $ann * - * @return float The mean square error, or false on error. + * @return float|false The mean square error, or false on error. */ function fann_get_MSE($ann) { @@ -729,7 +729,7 @@ function fann_get_MSE($ann) * * @param resource $ann * - * @return int constant, or false on error. + * @return int|false constant, or false on error. */ function fann_get_network_type($ann) { @@ -742,7 +742,7 @@ function fann_get_network_type($ann) * * @param resource $ann * - * @return int Number of input neurons, or false on error + * @return int|false Number of input neurons, or false on error */ function fann_get_num_input($ann) { @@ -755,7 +755,7 @@ function fann_get_num_input($ann) * * @param resource $ann * - * @return int The number of leayers in the neural network, or false on error. + * @return int|false The number of leayers in the neural network, or false on error. */ function fann_get_num_layers($ann) { @@ -768,7 +768,7 @@ function fann_get_num_layers($ann) * * @param resource $ann * - * @return int Number of output neurons, or false on error + * @return int|false Number of output neurons, or false on error */ function fann_get_num_output($ann) { @@ -781,7 +781,7 @@ function fann_get_num_output($ann) * * @param resource $ann * - * @return float The decay, or false on error. + * @return float|false The decay, or false on error. */ function fann_get_quickprop_decay($ann) { @@ -794,7 +794,7 @@ function fann_get_quickprop_decay($ann) * * @param resource $ann * - * @return float The mu factor, or false on error. + * @return float|false The mu factor, or false on error. */ function fann_get_quickprop_mu($ann) { @@ -807,7 +807,7 @@ function fann_get_quickprop_mu($ann) * * @param resource $ann * - * @return float The decrease factor, or false on error. + * @return float|false The decrease factor, or false on error. */ function fann_get_rprop_decrease_factor($ann) { @@ -820,7 +820,7 @@ function fann_get_rprop_decrease_factor($ann) * * @param resource $ann * - * @return float The maximum step-size, or false on error. + * @return float|false The maximum step-size, or false on error. */ function fann_get_rprop_delta_max($ann) { @@ -833,7 +833,7 @@ function fann_get_rprop_delta_max($ann) * * @param resource $ann * - * @return float The minimum step-size, or false on error. + * @return float|false The minimum step-size, or false on error. */ function fann_get_rprop_delta_min($ann) { @@ -846,7 +846,7 @@ function fann_get_rprop_delta_min($ann) * * @param resource $ann * - * @return ReturnType The initial step-size, or false on error. + * @return int|false The initial step-size, or false on error. */ function fann_get_rprop_delta_zero($ann) { @@ -859,7 +859,7 @@ function fann_get_rprop_delta_zero($ann) * * @param resource $ann * - * @return float The increase factor, or false on error. + * @return float|false The increase factor, or false on error. */ function fann_get_rprop_increase_factor($ann) { @@ -872,7 +872,7 @@ function fann_get_rprop_increase_factor($ann) * * @param resource $ann * - * @return float The sarprop step error shift , or false on error. + * @return float|false The sarprop step error shift , or false on error. */ function fann_get_sarprop_step_error_shift($ann) { @@ -885,7 +885,7 @@ function fann_get_sarprop_step_error_shift($ann) * * @param resource $ann * - * @return float The sarprop step error threshold factor, or false on error. + * @return float|false The sarprop step error threshold factor, or false on error. */ function fann_get_sarprop_step_error_threshold_factor($ann) { @@ -898,7 +898,7 @@ function fann_get_sarprop_step_error_threshold_factor($ann) * * @param resource $ann * - * @return float The sarprop temperature, or false on error. + * @return float|false The sarprop temperature, or false on error. */ function fann_get_sarprop_temperature($ann) { @@ -911,7 +911,7 @@ function fann_get_sarprop_temperature($ann) * * @param resource $ann * - * @return float The sarprop weight decay shift, or false on error. + * @return float|false The sarprop weight decay shift, or false on error. */ function fann_get_sarprop_weight_decay_shift($ann) { @@ -924,7 +924,7 @@ function fann_get_sarprop_weight_decay_shift($ann) * * @param resource $ann * - * @return int Total number of connections in the entire network, or false on error + * @return int|false Total number of connections in the entire network, or false on error */ function fann_get_total_connections($ann) { @@ -937,7 +937,7 @@ function fann_get_total_connections($ann) * * @param resource $ann * - * @return int Total number of neurons in the entire network, or false on error. + * @return int|false Total number of neurons in the entire network, or false on error. */ function fann_get_total_neurons($ann) { @@ -950,7 +950,7 @@ function fann_get_total_neurons($ann) * * @param resource $ann * - * @return int The constant, or false on error. + * @return int|false The constant, or false on error. */ function fann_get_train_error_function($ann) { @@ -963,7 +963,7 @@ function fann_get_train_error_function($ann) * * @param resource $ann * - * @return int constant, or false on error. + * @return int|false constant, or false on error. */ function fann_get_training_algorithm($ann) { @@ -976,7 +976,7 @@ function fann_get_training_algorithm($ann) * * @param resource $ann * - * @return int The constant, or false on error. + * @return int|false The constant, or false on error. */ function fann_get_train_stop_function($ann) { @@ -1003,7 +1003,7 @@ function fann_init_weights($ann, $train_data) * * @param resource $data * - * @return int Number of elements in the train data ``resource``, or false on error. + * @return int|false Number of elements in the train data ``resource``, or false on error. */ function fann_length_train_data($data) { @@ -1017,7 +1017,7 @@ function fann_length_train_data($data) * @param resource $data1 * @param resource $data2 * - * @return resource New merged train data ``resource``, or false on error. + * @return resource|false New merged train data ``resource``, or false on error. */ function fann_merge_train_data($data1, $data2) { @@ -1030,7 +1030,7 @@ function fann_merge_train_data($data1, $data2) * * @param resource $data * - * @return int The number of inputs, or false on error. + * @return int|false The number of inputs, or false on error. */ function fann_num_input_train_data($data) { @@ -1043,7 +1043,7 @@ function fann_num_input_train_data($data) * * @param resource $data * - * @return int The number of outputs, or false on error. + * @return int|false The number of outputs, or false on error. */ function fann_num_output_train_data($data) { @@ -1137,7 +1137,7 @@ function fann_reset_MSE($ann) * @param resource $ann * @param array $input * - * @return array Array of output values, or false on error + * @return array|false Array of output values, or false on error */ function fann_run($ann, $input) { @@ -1940,7 +1940,7 @@ function fann_subset_train_data($data, $pos, $length) * @param resource $ann * @param resource $data * - * @return float The updated MSE, or false on error. + * @return float|false The updated MSE, or false on error. */ function fann_test_data($ann, $data) { @@ -1969,7 +1969,7 @@ function fann_test($ann, $input, $desired_output) * @param resource $ann * @param resource $data * - * @return float The MSE, or false on error. + * @return float|false The MSE, or false on error. */ function fann_train_epoch($ann, $data) { diff --git a/ffmpeg/ffmpeg.php b/ffmpeg/ffmpeg.php index a8d16639..483aaca2 100644 --- a/ffmpeg/ffmpeg.php +++ b/ffmpeg/ffmpeg.php @@ -3,7 +3,7 @@ class ffmpeg_movie { /** Open a video or audio file and return it as an object. * @param string $path_to_media - File path of video or audio file to open. - * @param boolean $persistent - Whether to open this media as a persistent resource. See the PHP documentation for more info about persistent resources + * @param bool $persistent - Whether to open this media as a persistent resource. See the PHP documentation for more info about persistent resources */ public function __construct($path_to_media, $persistent) { } @@ -146,13 +146,13 @@ class ffmpeg_movie { } /** Return boolean value indicating whether the movie has an audio stream. - * @return boolean + * @return bool */ public function hasAudio() { } /** Return boolean value indicating whether the movie has a video stream. - * @return boolean + * @return bool */ public function hasVideo() { } diff --git a/filter/filter.php b/filter/filter.php index 69327be9..1f91690a 100644 --- a/filter/filter.php +++ b/filter/filter.php @@ -182,7 +182,7 @@ function filter_has_var ($type, $variable_name) {} * @param string $filtername* Name of a filter to get. *
- * @return int ID of a filter on success or FALSE if filter doesn't exist. + * @return int|false ID of a filter on success or FALSE if filter doesn't exist. * @since 5.2.0 */ function filter_id ($filtername) {} diff --git a/ftp/ftp.php b/ftp/ftp.php index ff9ea149..c8e71b26 100644 --- a/ftp/ftp.php +++ b/ftp/ftp.php @@ -37,7 +37,7 @@ function ftp_mlsd ($ftp, $directory) {} * queried at any time with ftp_set_option and * ftp_get_option. * - * @return resource a FTP stream on success or FALSE on error. + * @return resource|false a FTP stream on success or FALSE on error. * @since 4.0 * @since 5.0 */ @@ -60,7 +60,7 @@ function ftp_connect ($host, $port = 21, $timeout = 90) {} * queried at any time with ftp_set_option and * ftp_get_option. * - * @return resource a SSL-FTP stream on success or FALSE on error. + * @return resource|false a SSL-FTP stream on success or FALSE on error. * @since 4.3.0 * @since 5.0 */ @@ -200,7 +200,7 @@ function ftp_rmdir ($ftp_stream, $directory) {} * @param string $filename* The remote file. *
- * @return int the new file permissions on success or FALSE on error. + * @return int|false the new file permissions on success or FALSE on error. * @since 5.0 */ function ftp_chmod ($ftp_stream, $mode, $filename) {} diff --git a/gearman/gearman.php b/gearman/gearman.php index 00a8af12..5c153b47 100644 --- a/gearman/gearman.php +++ b/gearman/gearman.php @@ -1606,7 +1606,7 @@ class GearmanClient { * @param string $workload * @param mixed $context * @param string $unique - * @return GearmanTask A GearmanTask object or false if the task could not be added + * @return GearmanTask|false A GearmanTask object or false if the task could not be added */ public function addTask($function_name, $workload, $context = null, $unique = null) {} @@ -1621,7 +1621,7 @@ class GearmanClient { * @param string $workload * @param mixed $context * @param string $unique - * @return GearmanTask A GearmanTask object or false if the task could not be added + * @return GearmanTask|false A GearmanTask object or false if the task could not be added */ public function addTaskHigh($function_name, $workload, $context = null, $unique = null) {} @@ -1636,7 +1636,7 @@ class GearmanClient { * @param string $workload * @param mixed $context * @param string $unique - * @return GearmanTask A GearmanTask object or false if the task could not be added + * @return GearmanTask|false A GearmanTask object or false if the task could not be added */ public function addTaskLow($function_name, $workload, $context = null, $unique = null) {} @@ -1650,7 +1650,7 @@ class GearmanClient { * @param string $workload * @param mixed $context * @param string $unique - * @return GearmanTask A GearmanTask object or false if the task could not be added + * @return GearmanTask|false A GearmanTask object or false if the task could not be added */ public function addTaskBackground($function_name, $workload, $context = null, $unique = null) {} @@ -1665,7 +1665,7 @@ class GearmanClient { * @param string $workload * @param mixed $context * @param string $unique - * @return GearmanTask A GearmanTask object or false if the task could not be added + * @return GearmanTask|false A GearmanTask object or false if the task could not be added */ public function addTaskHighBackground($function_name, $workload, $context = null, $unique = null) {} @@ -1680,7 +1680,7 @@ class GearmanClient { * @param string $workload * @param mixed $context * @param string $unique - * @return GearmanTask A GearmanTask object or false if the task could not be added + * @return GearmanTask|false A GearmanTask object or false if the task could not be added */ public function addTaskLowBackground($function_name, $workload, $context = null, $unique = null) {} @@ -1837,7 +1837,7 @@ class GearmanTask { * server. * * @link https://php.net/manual/en/gearmantask.unique.php - * @return string The unique identifier, or false if no identifier is assigned + * @return string|false The unique identifier, or false if no identifier is assigned */ public function unique() {} @@ -1871,7 +1871,7 @@ class GearmanTask { * as a fraction. * * @link https://php.net/manual/en/gearmantask.tasknumerator.php - * @return int A number between 0 and 100, or false if cannot be determined + * @return int|false A number between 0 and 100, or false if cannot be determined */ public function taskNumerator() {} @@ -1880,7 +1880,7 @@ class GearmanTask { * as a fraction. * * @link https://php.net/manual/en/gearmantask.taskdenominator.php - * @return int A number between 0 and 100, or false if cannot be determined + * @return int|false A number between 0 and 100, or false if cannot be determined */ public function taskDenominator() {} @@ -1889,7 +1889,7 @@ class GearmanTask { * * @link https://php.net/manual/en/gearmantask.sendworkload.php * @param string $data Data to send to the worker - * @return int The length of data sent, or false if the send failed + * @return int|false The length of data sent, or false if the send failed */ public function sendWorkload($data) {} @@ -1897,7 +1897,7 @@ class GearmanTask { * Returns data being returned for a task by a worker. * * @link https://php.net/manual/en/gearmantask.data.php - * @return string The serialized data, or false if no data is present + * @return string|false The serialized data, or false if no data is present */ public function data() {} @@ -1905,7 +1905,7 @@ class GearmanTask { * Returns the size of the data being returned for a task. * * @link https://php.net/manual/en/gearmantask.datasize.php - * @return int The data size, or false if there is no data + * @return int|false The data size, or false if there is no data */ public function dataSize() {} @@ -1914,7 +1914,7 @@ class GearmanTask { * * @link https://php.net/manual/en/gearmantask.recvdata.php * @param int $data_len Length of data to be read - * @return array An array whose first element is the length of data read and the second is + * @return array|false An array whose first element is the length of data read and the second is * the data buffer. Returns false if the read failed */ public function recvData($data_len) {} diff --git a/geoip/geoip.php b/geoip/geoip.php index 5ec47af2..add89b32 100644 --- a/geoip/geoip.php +++ b/geoip/geoip.php @@ -22,7 +22,7 @@ function geoip_database_info ($database = GEOIP_COUNTRY_EDITION) {} * @param string $hostname* The hostname or IP address whose location is to be looked-up. *
- * @return string the two letter ISO country code on success, or FALSE + * @return string|false the two letter ISO country code on success, or FALSE * if the address cannot be found in the database. */ function geoip_country_code_by_name ($hostname) {} @@ -34,7 +34,7 @@ function geoip_country_code_by_name ($hostname) {} * @param string $hostname* The hostname or IP address whose location is to be looked-up. *
- * @return string the three letter country code on success, or FALSE + * @return string|false the three letter country code on success, or FALSE * if the address cannot be found in the database. */ function geoip_country_code3_by_name ($hostname) {} @@ -46,7 +46,7 @@ function geoip_country_code3_by_name ($hostname) {} * @param string $hostname* The hostname or IP address whose location is to be looked-up. *
- * @return string the country name on success, or FALSE if the address cannot + * @return string|false the country name on success, or FALSE if the address cannot * be found in the database. */ function geoip_country_name_by_name ($hostname) {} @@ -58,7 +58,7 @@ function geoip_country_name_by_name ($hostname) {} * @param string $hostname* The hostname or IP address whose location is to be looked-up. *
- * @return string the two letter continent code on success, or FALSE if the + * @return string|false the two letter continent code on success, or FALSE if the * address cannot be found in the database. */ function geoip_continent_code_by_name ($hostname) {} @@ -70,7 +70,7 @@ function geoip_continent_code_by_name ($hostname) {} * @param string $hostname* The hostname or IP address. *
- * @return string the organization name on success, or FALSE if the address + * @return string|false the organization name on success, or FALSE if the address * cannot be found in the database. */ function geoip_org_by_name ($hostname) {} @@ -82,7 +82,7 @@ function geoip_org_by_name ($hostname) {} * @param string $hostname* The hostname or IP address whose record is to be looked-up. *
- * @return array the associative array on success, or FALSE if the address + * @return array|false the associative array on success, or FALSE if the address * cannot be found in the database. */ function geoip_record_by_name ($hostname) {} @@ -105,7 +105,7 @@ function geoip_id_by_name ($hostname) {} * @param string $hostname* The hostname or IP address whose region is to be looked-up. *
- * @return array the associative array on success, or FALSE if the address + * @return array|false the associative array on success, or FALSE if the address * cannot be found in the database. */ function geoip_region_by_name ($hostname) {} @@ -117,7 +117,7 @@ function geoip_region_by_name ($hostname) {} * @param string $hostname* The hostname or IP address. *
- * @return string the ISP name on success, or FALSE if the address + * @return string|false the ISP name on success, or FALSE if the address * cannot be found in the database. */ function geoip_isp_by_name ($hostname) {} @@ -131,7 +131,7 @@ function geoip_isp_by_name ($hostname) {} * various constants defined with * this extension (ie: GEOIP_*_EDITION). * - * @return bool TRUE is database exists, FALSE if not found, or NULL on error. + * @return bool|false TRUE is database exists, FALSE if not found, or NULL on error. */ function geoip_db_avail ($database) {} @@ -168,7 +168,7 @@ function geoip_db_filename ($database) {} * The two-letter (or digit) region code (see * geoip_region_by_name) * - * @return string the region name on success, or FALSE if the country and region code + * @return string|false the region name on success, or FALSE if the country and region code * combo cannot be found. */ function geoip_region_name_by_code ($country_code, $region_code) {} @@ -185,7 +185,7 @@ function geoip_region_name_by_code ($country_code, $region_code) {} * The two-letter (or digit) region code (see * geoip_region_by_name) * - * @return string the time zone on success, or FALSE if the country and region code + * @return string|false the time zone on success, or FALSE if the country and region code * combo cannot be found. */ function geoip_time_zone_by_country_and_region ($country_code, $region_code = null) {} diff --git a/gmagick/gmagick.php b/gmagick/gmagick.php index 3458cb28..b94b5ef4 100644 --- a/gmagick/gmagick.php +++ b/gmagick/gmagick.php @@ -1037,7 +1037,7 @@ class Gmagick * * @link https://php.net/manual/en/gmagick.getimagematte.php * - * @return int Returns TRUE if the image has a matte channel, otherwise FALSE. + * @return bool Returns TRUE if the image has a matte channel, otherwise FALSE. * * @throws GmagickException On error. */ @@ -2625,7 +2625,7 @@ class GmagickDraw * * @link https://php.net/manual/en/gmagickdraw.getfont.php * - * @return string|bool A string on success and false if no font is set. + * @return string|false A string on success and false if no font is set. */ public function getfont() { @@ -2713,7 +2713,7 @@ class GmagickDraw * * @link https://php.net/manual/en/gmagickdraw.gettextencoding.php * - * @return string|bool Returns a string specifying the code set or false if text encoding is not set. + * @return string|false Returns a string specifying the code set or false if text encoding is not set. */ public function gettextencoding() { diff --git a/gmp/gmp.php b/gmp/gmp.php index a1ba90ce..f2a9fed9 100644 --- a/gmp/gmp.php +++ b/gmp/gmp.php @@ -705,7 +705,7 @@ function gmp_hamdist ($a, $b) {} * @param integer $word_size Default value is 1. The number of bytes in each chunk of binary * data. This is mainly used in conjunction with the options parameter. * @param integer $options Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN. - * @return GMP|bool Returns a GMP number or FALSE on failure. + * @return GMP|false Returns a GMP number or FALSE on failure. * @since 5.6.1 */ function gmp_import ($data, $word_size = 1, $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN) {} @@ -717,7 +717,7 @@ function gmp_import ($data, $word_size = 1, $options = GMP_MSW_FIRST | GMP_NATIV * @param integer $word_size Default value is 1. The number of bytes in each chunk of binary * data. This is mainly used in conjunction with the options parameter. * @param integer $options Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN. - * @return string|bool Returns a string or FALSE on failure. + * @return string|false Returns a string or FALSE on failure. * @since 5.6.1 */ function gmp_export (GMP $gmpnumber, $word_size = 1, $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN) {} diff --git a/gnupg/gnupg.php b/gnupg/gnupg.php index 718fa504..f1881d00 100644 --- a/gnupg/gnupg.php +++ b/gnupg/gnupg.php @@ -58,7 +58,7 @@ class gnupg { * @param string $signature * @param string $plaintext * - * @return array On success, this function returns information about the signature. + * @return array|false On success, this function returns information about the signature. * On failure, this function returns false. */ function verify($signed_text, $signature, &$plaintext = NULL) @@ -134,7 +134,7 @@ class gnupg { * * @param string $text * - * @return string On success, this function returns the decrypted text. + * @return string|false On success, this function returns the decrypted text. * On failure, this function returns false. */ function decrypt($text) @@ -149,7 +149,7 @@ class gnupg { * @param string $text * @param string $plaintext * - * @return array On success, this function returns information about the signature and + * @return array|false On success, this function returns information about the signature and * fills the parameter with the decrypted text. * On failure, this function returns false. */ @@ -164,7 +164,7 @@ class gnupg { * * @param string $plaintext * - * @return string On success, this function returns the encrypted text. + * @return string|false On success, this function returns the encrypted text. * On failure, this function returns false. */ function encrypt($plaintext) @@ -178,7 +178,7 @@ class gnupg { * * @param string $plaintext * - * @return string On success, this function returns the encrypted and signed text. + * @return string|false On success, this function returns the encrypted and signed text. * On failure, this function returns false. */ function encryptsign($plaintext) @@ -192,7 +192,7 @@ class gnupg { * * @param string $fingerprint * - * @return string On success, this function returns the keydata. + * @return string|false On success, this function returns the keydata. * On failure, this function returns false. */ function export($fingerprint) @@ -205,7 +205,7 @@ class gnupg { * @phpstub * * - * @return string Returns an errortext, if an error has occurred, otherwise false. + * @return string|false Returns an errortext, if an error has occurred, otherwise false. */ function geterror() { @@ -232,7 +232,7 @@ class gnupg { * * @param string $keydata * - * @return array On success, this function returns and info-array about the importprocess. + * @return array|false On success, this function returns and info-array about the importprocess. * On failure, this function returns false. */ function import($keydata) @@ -310,7 +310,7 @@ class gnupg { * * @param string $plaintext * - * @return string On success, this function returns the signed text or the signature. + * @return string|false On success, this function returns the signed text or the signature. * On failure, this function returns false. */ function sign($plaintext) diff --git a/hash/hash.php b/hash/hash.php index 39e9352d..4f86d818 100644 --- a/hash/hash.php +++ b/hash/hash.php @@ -27,7 +27,7 @@ function hash ($algo, $data, $raw_output = false) {} * @link https://php.net/manual/en/function.hash-equals.php * @param string $known_stringThe string of known length to compare against
* @param string $user_stringThe user-supplied string
- * @return booleanReturns TRUE when the two strings are equal, FALSE otherwise.
+ * @return boolReturns TRUE when the two strings are equal, FALSE otherwise.
* @since 5.6.0 */ function hash_equals($known_string, $user_string) {} @@ -225,7 +225,7 @@ function hash_algos () {} * If length is 0, the output length will default to the chosen hash function size. * @param string $info [optional]Application/context-specific info string.
* @param string $salt [optional]Salt to use during derivation. While optional, adding random salt significantly improves the strength of HKDF.
- * @return stringReturns a string containing a raw binary representation of the derived key (also known as output keying material - OKM); or FALSE on failure.
+ * @return string|falseReturns a string containing a raw binary representation of the derived key (also known as output keying material - OKM); or FALSE on failure.
*/ function hash_hkdf(string $algo , string $ikm, int $length = 0, string $info = '', string $salt = '') {} @@ -272,7 +272,7 @@ function hash_pbkdf2 ($algo, $password, $salt, $iterations, $length = 0, $raw_ou * @param int $bytes* The key length, in bytes. *
- * @return string the generated key as a string, or FALSE on error. + * @return string|false the generated key as a string, or FALSE on error. * @since 4.0.4 * @since 5.0 */ @@ -284,7 +284,7 @@ function mhash_keygen_s2k ($hash, $password, $salt, $bytes) {} * @param int $hash* The hash ID. One of the MHASH_hashname constants. *
- * @return int the size in bytes or FALSE, if the hash + * @return int|false the size in bytes or FALSE, if the hash * does not exist. * @since 4.0 * @since 5.0 @@ -297,7 +297,7 @@ function mhash_get_block_size ($hash) {} * @param int $hash* The hash ID. One of the MHASH_hashname constants. *
- * @return string the name of the hash or FALSE, if the hash does not exist. + * @return string|false the name of the hash or FALSE, if the hash does not exist. * @since 4.0 * @since 5.0 */ diff --git a/http/http.php b/http/http.php index 707139c0..c298ac90 100644 --- a/http/http.php +++ b/http/http.php @@ -69,7 +69,7 @@ class HttpDeflateStream { * @param string $data* data to deflate *
- * @return string deflated data on success or false on failure. + * @return string|false deflated data on success or false on failure. */ public function update ($data) {} @@ -80,7 +80,7 @@ class HttpDeflateStream { * @param string $data [optional]* more data to deflate *
- * @return string some deflated data as string on success or false on failure. + * @return string|false some deflated data as string on success or false on failure. */ public function flush ($data = null) {} @@ -137,7 +137,7 @@ class HttpInflateStream { * @param string $data* data to inflate *
- * @return string inflated data on success or false on failure. + * @return string|false inflated data on success or false on failure. */ public function update ($data) {} @@ -148,7 +148,7 @@ class HttpInflateStream { * @param string $data [optional]* more data to inflate *
- * @return string some inflated data as string on success or false on failure. + * @return string|false some inflated data as string on success or false on failure. */ public function flush ($data = null) {} @@ -234,7 +234,7 @@ class HttpMessage implements Countable, Serializable, Iterator { * @param string $header* header name *
- * @return string the header value on success or NULL if the header does not exist. + * @return string|null the header value on success or NULL if the header does not exist. */ public function getHeader ($header) {} @@ -269,7 +269,7 @@ class HttpMessage implements Countable, Serializable, Iterator { * header will be converted to an array containing both header values, otherwise * it will be overwritten with the new header value * - * @return void true on success or false on failure. + * @return void */ public function addHeaders (array $headers, $append = null) {} @@ -344,7 +344,7 @@ class HttpMessage implements Countable, Serializable, Iterator { * (PECL pecl_http >= 0.10.0)* flags for libmagic *
- * @return string the guessed content type on success or false on failure. + * @return string|false the guessed content type on success or false on failure. */ public function guessContentType ($magic_file, $magic_mode = null) {} @@ -446,7 +446,7 @@ class HttpMessage implements Countable, Serializable, Iterator { * (PECL pecl_http >= 0.22.0)* a class extending HttpMessage *
- * @return HttpMessage an HttpMessage object on success or NULL on failure. + * @return HttpMessage|null an HttpMessage object on success or NULL on failure. */ public static function factory ($raw_message = null, $class_name = null) {} @@ -498,7 +498,7 @@ class HttpMessage implements Countable, Serializable, Iterator { * @param string $class_name [optional]* a class extending HttpMessage *
- * @return HttpMessage an HttpMessage object on success or NULL on failure. + * @return HttpMessage|null an HttpMessage object on success or NULL on failure. */ public static function fromString ($raw_message = null, $class_name = null) {} @@ -512,7 +512,7 @@ class HttpMessage implements Countable, Serializable, Iterator { * @param string $class_name [optional]* a class extending HttpMessage *
- * @return HttpMessage an HttpMessage object on success or NULL on failure. + * @return HttpMessage|null an HttpMessage object on success or NULL on failure. */ public static function fromEnv ($message_type, $class_name = null) {} @@ -755,7 +755,7 @@ class HttpQueryString implements Serializable, ArrayAccess { * @param mixed $offset* An offset to check for. *
- * @return boolean true on success or false on failure. + * @return bool true on success or false on failure. * ** The return value will be casted to boolean if non-boolean was returned. @@ -1787,7 +1787,7 @@ class HttpResponse { * @param int $magic_mode [optional]
* flags for libmagic *
- * @return string the guessed content type on success or false on failure. + * @return string|false the guessed content type on success or false on failure. */ public static function guessContentType ($magic_file, $magic_mode = null) {} @@ -2230,8 +2230,7 @@ function http_negotiate_content_type (array $supported, array &$result = null ) * @param int $status [optional]* custom response status code *
- * @return void &returns.http.false.orexits; with the specified redirection status code. - * &see.http.configuration.force_exit; + * @return void */ function http_redirect ($url = null, array $params = null , $session = null, $status = null) {} @@ -2390,7 +2389,7 @@ function http_send_stream ($stream) {} * @param string $encoded* chunked encoded string *
- * @return string the decoded string on success or false on failure. + * @return string|false the decoded string on success or false on failure. */ function http_chunked_decode ($encoded) {} @@ -2412,7 +2411,7 @@ function http_parse_message ($message) {} * @param string $header* string containing HTTP headers *
- * @return array an array on success or false on failure. + * @return array|false an array on success or false on failure. */ function http_parse_headers ($header) {} @@ -2430,7 +2429,7 @@ function http_parse_headers ($header) {} * array containing recognized extra keys; * by default all unknown keys will be treated as cookie names * - * @return stdClass|object a stdClass object on success or false on failure. + * @return stdClass|false a stdClass object on success or false on failure. */ function http_parse_cookie ($cookie, $flags = null, array $allowed_extras = null ) {} @@ -2455,7 +2454,7 @@ function http_build_cookie (array $cookie) {} * @param int $flags [optional]* Parse flags *
- * @return stdClass|object parameter list as stdClass object. + * @return stdClass parameter list as stdClass object. */ function http_parse_params ($param, $flags = null) {} @@ -2471,7 +2470,7 @@ function http_get_request_headers () {} * (PECL pecl_http >= 0.10.0)* the identification string *
- * @return string the prior ident as string on success or false on failure. + * @return string|false the prior ident as string on success or false on failure. */ function http_persistent_handles_ident ($ident) {} @@ -2698,7 +2697,7 @@ function http_request ($method, $url = null, $body = null, array $options = null * @param array $files* POST files *
- * @return string encoded string on success or false on failure. + * @return string|false encoded string on success or false on failure. */ function http_request_body_encode (array $fields, array $files) {} @@ -2709,7 +2708,7 @@ function http_request_body_encode (array $fields, array $files) {} * @param string $method* the request method name to register *
- * @return int the ID of the request method on success or false on failure. + * @return int|false the ID of the request method on success or false on failure. */ function http_request_method_register ($method) {} @@ -2731,7 +2730,7 @@ function http_request_method_unregister ($method) {} * @param mixed $method* request method name or ID *
- * @return int true if the request method is known, else false. + * @return bool true if the request method is known, else false. */ function http_request_method_exists ($method) {} @@ -2742,7 +2741,7 @@ function http_request_method_exists ($method) {} * @param int $method* request method ID *
- * @return string the request method name as string on success or false on failure. + * @return string|false the request method name as string on success or false on failure. */ function http_request_method_name ($method) {} @@ -2766,7 +2765,7 @@ function ob_etaghandler ($data, $mode) {} * @param int $flags [optional]* deflate options *
- * @return string the encoded string on success, or NULL on failure. + * @return string|null the encoded string on success, or NULL on failure. */ function http_deflate ($data, $flags = null) {} @@ -2777,7 +2776,7 @@ function http_deflate ($data, $flags = null) {} * @param string $data* string containing the compressed data *
- * @return string the decoded string on success, or NULL on failure. + * @return string|null the decoded string on success, or NULL on failure. */ function http_inflate ($data) {} diff --git a/ibm_db2/ibm_db2.php b/ibm_db2/ibm_db2.php index cd580888..7b242852 100644 --- a/ibm_db2/ibm_db2.php +++ b/ibm_db2/ibm_db2.php @@ -1548,7 +1548,7 @@ function db2_free_result ($stmt) {} /** * Set options for connection or statement resources * @link https://php.net/manual/en/function.db2-set-option.php - * @param resource resource+ * @param resource $resource
* A valid statement resource as returned from * db2_prepare or a valid connection resource as * returned from db2_connect or @@ -1672,7 +1672,7 @@ function db2_lob_read ($stmt, $colnum, $length) {} /** * Retrieves an option value for a statement resource or a connection resource * @link https://php.net/manual/en/function.db2-get-option.php - * @param resource resource
+ * @param resource $resource
* A valid statement resource as returned from * db2_prepare or a valid connection resource as * returned from db2_connect or diff --git a/imagick/imagick.php b/imagick/imagick.php index 85f54b83..12c88953 100644 --- a/imagick/imagick.php +++ b/imagick/imagick.php @@ -980,7 +980,7 @@ class Imagick implements Iterator, Countable { * @param string $name
* name of the property (for example Exif:DateTime) *
- * @return string a string containing the image property, false if a + * @return string|false a string containing the image property, false if a * property with the given name does not exist. */ public function getImageProperty ($name) {} @@ -1253,7 +1253,7 @@ class Imagick implements Iterator, Countable { * (PECL imagick 2.1.0)* The stream resource to import. *
- * @return resource FALSE or NULL on failure. + * @return resource|false|null FALSE or NULL on failure. * @since 5.4.0 */ function socket_import_stream ($stream) {} diff --git a/sodium/sodium.php b/sodium/sodium.php index 9c2736b1..7e659326 100644 --- a/sodium/sodium.php +++ b/sodium/sodium.php @@ -12,6 +12,23 @@ const SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES = 32; const SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES = 0; const SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES = 12; const SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_ABYTES = 16; +const SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES = 32; +const SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NSECBYTES = 0; +const SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES = 24; +const SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_ABYTES = 16; +const SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_ABYTES = 17; +const SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_HEADERBYTES = 24; +const SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_KEYBYTES = 32; +const SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_MESSAGEBYTES_MAX = 274877906816; +const SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_MESSAGE = 0; +const SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PUSH = 1; +const SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_REKEY = 2; +const SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_FINAL = 3; +const SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13 = 2; +const SODIUM_BASE64_VARIANT_ORIGINAL = 1; +const SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING = 3; +const SODIUM_BASE64_VARIANT_URLSAFE = 5; +const SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING = 7; const SODIUM_CRYPTO_AUTH_BYTES = 32; const SODIUM_CRYPTO_AUTH_KEYBYTES = 32; const SODIUM_CRYPTO_BOX_SEALBYTES = 16; @@ -90,7 +107,7 @@ function sodium_crypto_aead_aes256gcm_is_available(): bool * @param string $ad additional data * @param string $nonce * @param string $key - * @return string + * @return string|false */ function sodium_crypto_aead_aes256gcm_decrypt( string $ciphertext, @@ -262,7 +279,7 @@ function sodium_crypto_kx_seed_keypair (string $string): string {} * @since 7.2 * @param string $server_keypair * @param string $client_key - * @return array + * @return string[] */ function sodium_crypto_kx_server_session_keys (string $server_keypair , string $client_key): array {} @@ -280,7 +297,7 @@ function sodium_crypto_generichash_keygen(): string {} * @link https://php.net/manual/en/function.sodium-crypto-kx-client-session-keys.php * @param string $client_keypair * @param string $server_key - * @return array + * @return string[] */ function sodium_crypto_kx_client_session_keys (string $client_keypair, string $server_key): array {} @@ -323,8 +340,8 @@ function sodium_crypto_stream_keygen(): string {} * Add padding data * @link https://php.net/manual/en/function.sodium-pad.php * @since 7.2 - * @param $string - * @param $length + * @param string $string + * @param int $length * @return string */ function sodium_pad ($string, $length): string {} @@ -333,8 +350,8 @@ function sodium_pad ($string, $length): string {} * Remove padding data * @link https://php.net/manual/en/function.sodium-unpad.php * @since 7.2 - * @param $string - * @param $length + * @param string $string + * @param int $length */ function sodium_unpad ($string, $length): string {} @@ -420,7 +437,7 @@ function sodium_crypto_box_keypair_from_secretkey_and_publickey( * @param string $msg * @param string $nonce * @param string $keypair - * @return string + * @return string|false */ function sodium_crypto_box_open( string $msg, @@ -479,7 +496,7 @@ function sodium_crypto_box_seal( * * @param string $encrypted * @param string $keypair - * @return string + * @return string|false */ function sodium_crypto_box_seal_open( string $encrypted, @@ -743,7 +760,7 @@ function sodium_crypto_secretbox( * @param string $ciphertext * @param string $nonce * @param string $key - * @return string|bool + * @return string|false */ function sodium_crypto_secretbox_open( string $ciphertext, @@ -859,7 +876,7 @@ function sodium_crypto_sign_keypair_from_secretkey_and_publickey( * * @param string $signed_message * @param string $publickey - * @return string + * @return string|false */ function sodium_crypto_sign_open( string $signed_message, @@ -992,7 +1009,7 @@ function sodium_randombytes_buf( * Generate a 16-bit integer * /dev/urandom * - * @return int + * @return int|string */ function sodium_randombytes_random16(): string { return ''; diff --git a/solr/Documents/SolrDocument.php b/solr/Documents/SolrDocument.php index adf3a64f..615e44e5 100644 --- a/solr/Documents/SolrDocument.php +++ b/solr/Documents/SolrDocument.php @@ -151,7 +151,7 @@ final class SolrDocument implements ArrayAccess, Iterator, Serializable { * @param string $fieldName* The name of the field. *
- * @return SolrDocumentField Returns a SolrDocumentField object on success and FALSE on failure + * @return SolrDocumentField|false Returns a SolrDocumentField object on success and FALSE on failure */ public function getField($fieldName) {} @@ -159,7 +159,7 @@ final class SolrDocument implements ArrayAccess, Iterator, Serializable { * (PECL solr >= 0.9.2)+ * @return int|false
* Returns an integer on success and FALSE on failure. *
*/ @@ -169,7 +169,7 @@ final class SolrDocument implements ArrayAccess, Iterator, Serializable { * (PECL solr >= 0.9.2)+ * @return array|false
* Returns an array on success and FALSE on failure. *
*/ diff --git a/solr/Documents/SolrInputDocument.php b/solr/Documents/SolrInputDocument.php index aa49667e..1a5fd0d7 100644 --- a/solr/Documents/SolrInputDocument.php +++ b/solr/Documents/SolrInputDocument.php @@ -137,7 +137,7 @@ final class SolrInputDocument { * (PECL solr >= 0.9.2)+ * @return float|false
* Returns the boost value on success and FALSE on failure. *
*/ @@ -166,7 +166,7 @@ final class SolrInputDocument { * @param string $fieldName* The name of the field. *
- * @return SolrDocumentField Returns a SolrDocumentField object on success and FALSE on failure. + * @return SolrDocumentField|false Returns a SolrDocumentField object on success and FALSE on failure. */ public function getField($fieldName) {} @@ -177,7 +177,7 @@ final class SolrInputDocument { * @param string $fieldName* The name of the field. *
- * @return float+ * @return float|false
* Returns the boost value for the field or FALSE if there was an error. *
*/ @@ -187,7 +187,7 @@ final class SolrInputDocument { * (PECL solr >= 0.9.2)+ * @return int|false
* Returns an integer on success or FALSE on failure. *
*/ @@ -197,7 +197,7 @@ final class SolrInputDocument { * (PECL solr >= 0.9.2)+ * @return array|false
* Returns an array on success and FALSE on failure. *
*/ @@ -296,7 +296,7 @@ final class SolrInputDocument { * (PECL solr >= 0.9.2)+ * @return array|false
* Returns an array containing the fields. It returns FALSE on failure. *
*/ diff --git a/solr/Queries/SolrParams.php b/solr/Queries/SolrParams.php index 633c2cef..03272b80 100644 --- a/solr/Queries/SolrParams.php +++ b/solr/Queries/SolrParams.php @@ -24,7 +24,7 @@ abstract class SolrParams implements Serializable { * @param string $value* The value of the parameter *
- * @return SolrParams+ * @return SolrParams|false
* Returns a SolrParams instance on success and FALSE on failure. *
*/ @@ -40,7 +40,7 @@ abstract class SolrParams implements Serializable { * @param string $value* The value of the parameter *
- * @return SolrParams+ * @return SolrParams|false
* Returns a SolrParams instance on success and FALSE on failure. *
*/ @@ -112,7 +112,7 @@ abstract class SolrParams implements Serializable { * @param $value* The parameter value *
- * @return SolrParams+ * @return SolrParams|false
* Returns a SolrParams instance on success and FALSE on failure. *
*/ @@ -128,7 +128,7 @@ abstract class SolrParams implements Serializable { * @param $value* The parameter value *
- * @return SolrParams+ * @return SolrParams|false
* Returns a SolrParams instance on success and FALSE on failure. *
*/ @@ -141,7 +141,7 @@ abstract class SolrParams implements Serializable { * @param bool $url_encode* Whether to return URL-encoded values *
- * @return string+ * @return string|false
* Returns a string on success and FALSE on failure. *
*/ diff --git a/solr/Utils/SolrUtils.php b/solr/Utils/SolrUtils.php index b7f61bc0..bf3257eb 100644 --- a/solr/Utils/SolrUtils.php +++ b/solr/Utils/SolrUtils.php @@ -45,7 +45,7 @@ abstract class SolrUtils { * @param string $str* This is the query string to be escaped. *
- * @return string+ * @return string|false
* Returns the escaped string or FALSE on failure. *
*/ diff --git a/solr/functions.php b/solr/functions.php index cf1ce37c..b215400a 100644 --- a/solr/functions.php +++ b/solr/functions.php @@ -10,7 +10,7 @@ * (PECL solr >= 0.9.1)+ * @return string|false
* It returns a string on success and FALSE on failure. *
*/ diff --git a/sqlite3/sqlite3.php b/sqlite3/sqlite3.php index c570d7e8..e6ed4f87 100644 --- a/sqlite3/sqlite3.php +++ b/sqlite3/sqlite3.php @@ -137,7 +137,7 @@ class SQLite3 { * @param string $query* The SQL query to prepare. *
- * @return SQLite3Stmt an SQLite3Stmt object on success or FALSE on failure. + * @return SQLite3Stmt|false an SQLite3Stmt object on success or FALSE on failure. * @since 5.3.0 */ public function prepare ($query) {} @@ -256,7 +256,7 @@ class SQLite3 { * @param $dbname [optional]The symbolic name of the DB
* @param int $flags [optional] *Either SQLITE3_OPEN_READONLY or SQLITE3_OPEN_READWRITE to open the stream for reading only, or for reading and writing, respectively.
- * @return array a result row as an associatively or numerically indexed array or + * @return array|false a result row as an associatively or numerically indexed array or * both. Alternately will return FALSE if there are no more rows. * @since 5.3.0 */ diff --git a/sqlsrv/sqlsrv.php b/sqlsrv/sqlsrv.php index a47129f2..1f5dda15 100644 --- a/sqlsrv/sqlsrv.php +++ b/sqlsrv/sqlsrv.php @@ -1213,7 +1213,7 @@ function sqlsrv_execute($stmt){} **
P_SIGN_POSN | * Returns 0 if parentheses surround the quantity and CURRENCY_SYMBOL. - * @return string the element as a string, or false if item + * @return string|false the element as a string, or false if item * is not valid. * @since 4.1.0 * @since 5.0 @@ -305,7 +305,7 @@ function chop ($str, $character_mask = null) {} * @param string $haystack The input string. * @param mixed $needle If needle is not a string, it is converted to an integer and applied as the ordinal value of a character. * @param bool $part [optional] If TRUE, strstr() returns the part of the haystack before the first occurrence of the needle (excluding the needle). - * @return string Returns the portion of string, or FALSE if needle is not found. + * @return string|false Returns the portion of string, or FALSE if needle is not found. */ function strchr ($haystack, $needle, $part = false) {} @@ -603,7 +603,7 @@ function http_build_query ($query_data, $numeric_prefix = null, $arg_separator = * @param string $path||||
ASSERT_CALLBACK | *assert.callback | - *+ * | null | *Callback to call on failed assertions | *
* Cookie value. *
- * @return string the encrypted string or false on failure. + * @return string|false the encrypted string or false on failure. */ function suhosin_encrypt_cookie ($name, $value) {} diff --git a/svn/svn.php b/svn/svn.php index c72d1fec..cfb12ff7 100644 --- a/svn/svn.php +++ b/svn/svn.php @@ -274,7 +274,7 @@ function svn_auth_set_parameter ($key, $value) {} * String key name. Use the authentication constants * defined by this extension to specify a key. * - * @return string|NULL the string value of the parameter at key; + * @return string|null the string value of the parameter at key; * returns NULL if parameter does not exist. */ function svn_auth_get_parameter ($key) {} @@ -522,7 +522,7 @@ function svn_status ($path, $flags = 0) {} * @param bool $recurse [optional]* Whether or not to recursively update directories. *
- * @return int new revision number on success, returns FALSE on failure. + * @return int|false new revision number on success, returns FALSE on failure. */ function svn_update ($path, $revno = SVN_REVISION_HEAD, $recurse = true) {} diff --git a/sybase/sybase_ct.php b/sybase/sybase_ct.php index 0fa7f0fe..6416608e 100644 --- a/sybase/sybase_ct.php +++ b/sybase/sybase_ct.php @@ -7,7 +7,7 @@ * @param $password string[optional] * @param $charset string[optional] * @param $appname string[optional] - * @return resource a positive Sybase link identifier on success, or false on + * @return resource|false a positive Sybase link identifier on success, or false on */ function sybase_connect ($servername = null, $username = null, $password = null, $charset = null, $appname = null) {} @@ -55,7 +55,7 @@ function sybase_query ($query, $link_identifier = null) {} * @param $query string * @param $link_identifier resource * @param $store_result bool[optional] - * @return resource a positive Sybase result identifier on success, or false on + * @return resource|false a positive Sybase result identifier on success, or false on */ function sybase_unbuffered_query ($query, $link_identifier, $store_result = null) {} @@ -94,7 +94,7 @@ function sybase_num_fields ($result) {} * Get a result row as an enumerated array * @link https://php.net/manual/en/function.sybase-fetch-row.php * @param $result resource - * @return array an array that corresponds to the fetched row, or false if there + * @return array|false an array that corresponds to the fetched row, or false if there */ function sybase_fetch_row ($result) {} @@ -102,7 +102,7 @@ function sybase_fetch_row ($result) {} * Fetch row as array * @link https://php.net/manual/en/function.sybase-fetch-array.php * @param $result resource - * @return array an array that corresponds to the fetched row, or false if there + * @return array|false an array that corresponds to the fetched row, or false if there */ function sybase_fetch_array ($result) {} @@ -110,7 +110,7 @@ function sybase_fetch_array ($result) {} * Fetch a result row as an associative array * @link https://php.net/manual/en/function.sybase-fetch-assoc.php * @param $result resource - * @return array an array that corresponds to the fetched row, or false if there + * @return array|false an array that corresponds to the fetched row, or false if there */ function sybase_fetch_assoc ($result) {} diff --git a/sysvsem/sysvsem.php b/sysvsem/sysvsem.php index 43c4091a..9355e1e6 100644 --- a/sysvsem/sysvsem.php +++ b/sysvsem/sysvsem.php @@ -19,7 +19,7 @@ * Specifies if the semaphore should be automatically released on request * shutdown. * - * @return resource a positive semaphore identifier on success, or FALSE on + * @return resource|false a positive semaphore identifier on success, or FALSE on * error. * @since 4.0 * @since 5.0 diff --git a/wddx/wddx.php b/wddx/wddx.php index a7999604..0c1f74af 100644 --- a/wddx/wddx.php +++ b/wddx/wddx.php @@ -11,7 +11,7 @@ * @param string $comment [optional]* An optional comment string that appears in the packet header. *
- * @return string the WDDX packet, or FALSE on error. + * @return string|false the WDDX packet, or FALSE on error. * @since 4.0 * @since 5.0 */ @@ -25,7 +25,7 @@ function wddx_serialize_value ($var, $comment = null) {} * strings naming the variables or another array, etc. * * @param mixed $_ [optional] - * @return string the WDDX packet, or FALSE on error. + * @return string|false the WDDX packet, or FALSE on error. * @since 4.0 * @since 5.0 */ @@ -37,7 +37,7 @@ function wddx_serialize_vars ($var_name, $_ = null) {} * @param string $comment [optional]* An optional comment string. *
- * @return resource a packet ID for use in later functions, or FALSE on error. + * @return resource|false a packet ID for use in later functions, or FALSE on error. * @since 4.0 * @since 5.0 */ diff --git a/win32service/win32service.php b/win32service/win32service.php index 0fa8f3a3..c6284eec 100644 --- a/win32service/win32service.php +++ b/win32service/win32service.php @@ -306,7 +306,7 @@ define( "WIN32_REALTIME_PRIORITY_CLASS", 0x00000100 ); * @param string $serviceName The short name of the service. * @param string $machine Optional machine name. If omitted, the local machine is used. * - * @return int Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code + * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. */ function win32_continue_service( $serviceName, $machine = "" ) { } @@ -408,7 +408,7 @@ function win32_continue_service( $serviceName, $machine = "" ) { } * @param string $machine The optional machine name on which you want to create a service. If omitted, it will * use the local machine. * - * @return int Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code + * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. */ @@ -423,7 +423,7 @@ function win32_create_service( $details, $machine = "" ) { } * @param string $serviceName The short name of the service. * @param string $machine Optional machine name. If omitted, the local machine is used. * - * @return int Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code + * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. */ function win32_delete_service( $serviceName, $machine = "" ) { } @@ -448,7 +448,7 @@ function win32_get_last_control_message() { } * @param string $serviceName The short name of the service. * @param string $machine Optional machine name. If omitted, the local machine is used. * - * @return int Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code + * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. * */ @@ -460,7 +460,7 @@ function win32_pause_service( $serviceName, $machine = "" ) { } * @param string $serviceName The short name of the service. * @param string $machine Optional machine name. If omitted, the local machine is used. * - * @return array Returns an array consisting of the following information on success, FALSE if there is a problem with + * @return array|false Returns an array consisting of the following information on success, FALSE if there is a problem with * the parameters or a Win32 Error Code on failure. *Controls whether the returned array will contain information about individual * cache entries along with the file cache summary.
- * @return array Array of meta data about file cache or FALSE on failure + * @return array|false Array of meta data about file cache or FALSE on failure *The array returned by this function contains the following elements: *
The array returned by this function contains the following elements: *
Controls whether the scope of the lock is system-wide or local. Local locks * are scoped to the application pool in IIS FastCGI case or to all php processes * that have the same parent process identifier.
- * @return boolean Returns TRUE on success or FALSE on failure. + * @return bool Returns TRUE on success or FALSE on failure. */ function wincache_lock($key, $isglobal = false) {} @@ -81,7 +81,7 @@ function wincache_lock($key, $isglobal = false) {} * @param bool $summaryonly [optional] *Controls whether the returned array will contain information about individual * cache entries along with the opcode cache summary.
- * @return array Array of meta data about opcode cache or FALSE on failure + * @return array|false Array of meta data about opcode cache or FALSE on failure *The array returned by this function contains the following elements: *
The array returned by this function contains the following elements: *
An array of file names for files that need to be refreshed. An absolute * or relative file paths can be used.
- * @return boolean Returns TRUE on success or FALSE on failure. + * @return bool Returns TRUE on success or FALSE on failure. */ function wincache_refresh_if_changed(array $files) {} @@ -137,7 +137,7 @@ function wincache_refresh_if_changed(array $files) {} * Retrieves information about cached mappings between relative file paths and * corresponding absolute file paths. * @link https://secure.php.net/manual/en/function.wincache-rplist-fileinfo.php - * @return array Array of meta data about the resolve file path cache or FALSE on failure + * @return array|false Array of meta data about the resolve file path cache or FALSE on failure *The array returned by this function contains the following elements: *
The array returned by this function contains the following elements: *
Controls whether the returned array will contain information about individual * cache entries along with the session cache summary.
- * @return array Array of meta data about session cache or FALSE on failure + * @return array|false Array of meta data about session cache or FALSE on failure *The array returned by this function contains the following elements: *
The array returned by this function contains the following elements: *
If key is an array, the function returns: *
Will be set to TRUE on success and FALSE on failure.
- * @return int Returns the decremented value on success and FALSE on failure. + * @return int|false Returns the decremented value on success and FALSE on failure. */ function wincache_ucache_dec($key, $dec_by = 1, &$success) {} @@ -289,7 +289,7 @@ function wincache_ucache_dec($key, $dec_by = 1, &$success) {} * @link https://secure.php.net/manual/en/function.wincache-ucache-delete.php * @param mixed $keyThe key that was used to store the variable in the cache. * key is case sensitive. key can be an array of keys.
- * @return boolean Returns TRUE on success or FALSE on failure. + * @return bool Returns TRUE on success or FALSE on failure. *If key is an array then the function returns FALSE if every element of * the array fails to get deleted from the user cache, otherwise returns an * array which consists of all the keys that are deleted.
@@ -301,7 +301,7 @@ function wincache_ucache_delete($key) {} * Checks if a variable with the key exists in the user cache or not. * @link https://secure.php.net/manual/en/function.wincache-ucache-exists.php * @param string $key The key that was used to store the variable in the cache. key is case sensitive. - * @return boolean Returns TRUE if variable with the key exitsts, otherwise returns FALSE. + * @return bool Returns TRUE if variable with the key exitsts, otherwise returns FALSE. */ function wincache_ucache_exists($key) {} @@ -335,7 +335,7 @@ function wincache_ucache_get($key, &$success) {} * otherwise the function fails and returns FALSE. * @param bool $success [optional] *Will be set to TRUE on success and FALSE on failure.
- * @return int Returns the incremented value on success and FALSE on failure. + * @return int|false Returns the incremented value on success and FALSE on failure. */ function wincache_ucache_inc($key, $inc_by = 1, &$success) {} @@ -351,7 +351,7 @@ function wincache_ucache_inc($key, $inc_by = 1, &$success) {} * will contain information only about that cache entry. If not specified and * summaryonly is set to false then the returned array will contain information * about all entries in the cache. - * @return array Array of meta data about user cache or FALSE on failure + * @return array|false Array of meta data about user cache or FALSE on failure *The array returned by this function contains the following elements: *
The array returned by this function contains the following elements: *
+ * @return bool
* If key is string, the function returns TRUE on success and FALSE on failure.
*If key is an array, the function returns: *
If any other process was blocked waiting for the lock on this key, that process will be able to obtain the lock.
* @link https://secure.php.net/manual/en/function.wincache-unlock.php * @param string $key Name of the key in the cache to release the lock on. - * @return boolean Returns TRUE on success or FALSE on failure. + * @return bool Returns TRUE on success or FALSE on failure. */ function wincache_unlock($key) {} ?> \ No newline at end of file diff --git a/xml/xml.php b/xml/xml.php index bbfe41e0..f4ed9688 100644 --- a/xml/xml.php +++ b/xml/xml.php @@ -391,7 +391,7 @@ function xml_parse_into_struct ($parser, $data, array &$values, array &$index = * @param resource $parser* A reference to the XML parser to get error code from. *
- * @return int This function returns FALSE if parser does + * @return int|false This function returns FALSE if parser does * not refer to a valid parser, or else it returns one of the error * codes listed in the error codes * section. @@ -419,7 +419,7 @@ function xml_error_string ($code) {} * @param resource $parser* A reference to the XML parser to get line number from. *
- * @return int This function returns FALSE if parser does + * @return int|false This function returns FALSE if parser does * not refer to a valid parser, or else it returns which line the * parser is currently at in its data buffer. * @since 4.0 @@ -433,7 +433,7 @@ function xml_get_current_line_number ($parser) {} * @param resource $parser* A reference to the XML parser to get column number from. *
- * @return int This function returns FALSE if parser does + * @return int|false This function returns FALSE if parser does * not refer to a valid parser, or else it returns which column on * the current line (as given by * xml_get_current_line_number) the parser is @@ -449,7 +449,7 @@ function xml_get_current_column_number ($parser) {} * @param resource $parser* A reference to the XML parser to get byte index from. *
- * @return int This function returns FALSE if parser does + * @return int|false This function returns FALSE if parser does * not refer to a valid parser, or else it returns which byte index * the parser is currently at in its data buffer (starting at 0). * @since 4.0 diff --git a/xmlreader/xmlreader.php b/xmlreader/xmlreader.php index 3bdfb37a..fc142001 100644 --- a/xmlreader/xmlreader.php +++ b/xmlreader/xmlreader.php @@ -140,7 +140,7 @@ class XMLReader { * @param int $index* The position of the attribute. *
- * @return string|NULL The value of the attribute, or NULL if no attribute exists + * @return string|null The value of the attribute, or NULL if no attribute exists * at index or not positioned of element. * @since 5.1.2 */ @@ -155,7 +155,7 @@ class XMLReader { * @param string $namespaceURI* The namespace URI. *
- * @return string|NULL The value of the attribute, or NULL if no attribute with the + * @return string|null The value of the attribute, or NULL if no attribute with the * given localName and * namespaceURI is found or not positioned of element. * @since 5.1.2 @@ -389,7 +389,7 @@ class XMLReader { * Returns a copy of the current node as a DOM object * @link https://php.net/manual/en/xmlreader.expand.php * @param DOMNode $basenode [optional] - * @return DOMNode The resulting DOMNode or FALSE on error. + * @return DOMNode|false The resulting DOMNode or FALSE on error. * @since 5.1.2 */ public function expand (DOMNode $basenode = null) {} diff --git a/xsl/xsl.php b/xsl/xsl.php index 92c5a886..6adca76a 100644 --- a/xsl/xsl.php +++ b/xsl/xsl.php @@ -25,7 +25,7 @@ class XSLTProcessor { * @param DOMNode $doc* The node to be transformed. *
- * @return DOMDocument The resulting DOMDocument or FALSE on error. + * @return DOMDocument|false The resulting DOMDocument or FALSE on error. * @since 5.0 */ public function transformToDoc (DOMNode $doc) {} @@ -39,7 +39,7 @@ class XSLTProcessor { * @param string $uri* The target URI for the transformation. *
- * @return int the number of bytes written or FALSE if an error occurred. + * @return int|false the number of bytes written or FALSE if an error occurred. * @since 5.0 */ public function transformToUri ($doc, $uri) {} @@ -50,7 +50,7 @@ class XSLTProcessor { * @param DOMDocument|SimpleXMLElement $doc* The transformed document. *
- * @return string The result of the transformation as a string or FALSE on error. + * @return string|false The result of the transformation as a string or FALSE on error. * @since 5.0 */ public function transformToXml ($doc) {} @@ -81,7 +81,7 @@ class XSLTProcessor { * @param string $localName* The local name of the XSLT parameter. *
- * @return string The value of the parameter (as a string), or FALSE if it's not set. + * @return string|false The value of the parameter (as a string), or FALSE if it's not set. * @since 5.0 */ public function getParameter ($namespaceURI, $localName) {} diff --git a/yaf/yaf.php b/yaf/yaf.php index ecc67f6f..a4c93d63 100644 --- a/yaf/yaf.php +++ b/yaf/yaf.php @@ -140,7 +140,7 @@ final class Yaf_Application { * * @link https://secure.php.net/manual/en/yaf-application.app.php * - * @return Yaf_Application|NULL an Yaf_Application instance, if no Yaf_Application initialized before, NULL will be returned. + * @return Yaf_Application|null an Yaf_Application instance, if no Yaf_Application initialized before, NULL will be returned. */ public static function app(){ } @@ -821,7 +821,7 @@ final class Yaf_Session implements Iterator, Traversable, ArrayAccess, Countable * @param string $name * @param mixed $value * - * @return bool|Yaf_Session return FALSE on failure + * @return Yaf_Session|false return FALSE on failure */ public function set($name, $value){ } @@ -830,7 +830,7 @@ final class Yaf_Session implements Iterator, Traversable, ArrayAccess, Countable * * @param string $name * - * @return bool|Yaf_Session return FALSE on failure + * @return Yaf_Session|false return FALSE on failure */ public function del($name){ } @@ -947,7 +947,7 @@ class Yaf_Router { * @param string $name * @param Yaf_Route_Interface $route * - * @return bool|Yaf_Router return FALSE on failure + * @return Yaf_Router|false return FALSE on failure */ public function addRoute($name, Yaf_Route_Interface $route){ } @@ -958,7 +958,7 @@ class Yaf_Router { * * @param Yaf_Config_Abstract $config * - * @return bool|Yaf_Router return FALSE on failure + * @return Yaf_Router|false return FALSE on failure */ public function addConfig(Yaf_Config_Abstract $config){ } @@ -967,7 +967,7 @@ class Yaf_Router { * * @param Yaf_Request_Abstract $request * - * @return bool|Yaf_Router return FALSE on failure + * @return Yaf_Router|false return FALSE on failure */ public function route(Yaf_Request_Abstract $request){ } @@ -2417,7 +2417,7 @@ class Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator, Travers * @param string $tpl_str string template * @param array $vars * - * @return void|bool return FALSE on failure + * @return void|false return FALSE on failure */ class Yaf_View_Simple implements Yaf_View_Interface { diff --git a/yaf/yaf_namespace.php b/yaf/yaf_namespace.php index 588a7945..ca0c9038 100644 --- a/yaf/yaf_namespace.php +++ b/yaf/yaf_namespace.php @@ -147,7 +147,7 @@ final class Application * * @link https://secure.php.net/manual/en/yaf-application.app.php * - * @return \Yaf\Application|NULL an \Yaf\Application instance, if no \Yaf\Application initialized before, NULL will be returned. + * @return \Yaf\Application|null an \Yaf\Application instance, if no \Yaf\Application initialized before, NULL will be returned. */ public static function app() { @@ -955,7 +955,7 @@ final class Session implements \Iterator, \Traversable, \ArrayAccess, \Countable * @param string $name * @param mixed $value * - * @return bool|\Yaf\Session return FALSE on failure + * @return \Yaf\Session|false return FALSE on failure */ public function set($name, $value) { @@ -966,7 +966,7 @@ final class Session implements \Iterator, \Traversable, \ArrayAccess, \Countable * * @param string $name * - * @return bool|\Yaf\Session return FALSE on failure + * @return \Yaf\Session|false return FALSE on failure */ public function del($name) { @@ -1111,7 +1111,7 @@ class Router * @param string $name * @param \Yaf\Route_Interface $route * - * @return bool|\Yaf\Router return FALSE on failure + * @return \Yaf\Router|false return FALSE on failure */ public function addRoute($name, \Yaf\Route_Interface $route) { @@ -1124,7 +1124,7 @@ class Router * * @param \Yaf\Config_Abstract $config * - * @return bool|\Yaf\Router return FALSE on failure + * @return \Yaf\Router|false return FALSE on failure */ public function addConfig(\Yaf\Config_Abstract $config) { @@ -1135,7 +1135,7 @@ class Router * * @param \Yaf\Request_Abstract $request * - * @return bool|\Yaf\Router return FALSE on failure + * @return \Yaf\Router|false return FALSE on failure */ public function route(\Yaf\Request_Abstract $request) { @@ -2887,7 +2887,7 @@ namespace Yaf\View { * @param string $tpl_str string template * @param array $vars * - * @return void|bool return FALSE on failure + * @return void|false return FALSE on failure */ class Simple implements \Yaf\View_Interface { diff --git a/yar/yar.php b/yar/yar.php index fc4e2f02..4d19c5e7 100644 --- a/yar/yar.php +++ b/yar/yar.php @@ -52,7 +52,7 @@ class Yar_Server { * Usual RPC calls will be issued as HTTP POST requests. * If a HTTP GET request is issued to the uri, * the service information (commented section above) will be printed on the page - * @return boolean + * @return bool * @link https://secure.php.net/manual/en/yar-server.handle.php */ public function handle () {} @@ -94,7 +94,7 @@ class Yar_Client { * - YAR_OPT_CONNECT_TIMEOUT * - YAR_OPT_HEADER (Since 2.0.4) * @param $value - * @return object Returns $this on success or FALSE on failure. + * @return object|false Returns $this on success or FALSE on failure. * @link https://secure.php.net/manual/en/yar-client.setopt.php */ public function setOpt ($name , $value ){} @@ -124,7 +124,7 @@ class Yar_Concurrent_Client { * Then, if user didn't specify callback when registering concurrent call, this callback will be used to handle response, otherwise, the callback specified while registering will be used. * @param $error_callback * If this callback is set, then Yar will call this callback while error occurred. - * @return boolean + * @return bool * @link https://secure.php.net/manual/en/yar-concurrent-client.loop.php */ public static function loop ($callback , $error_callback) {} @@ -132,7 +132,7 @@ class Yar_Concurrent_Client { /** * Clean all registered calls * Clean all registered calls - * @return boolean + * @return bool * @link https://secure.php.net/manual/en/yar-concurrent-client.reset.php */ public static function reset (){} @@ -171,4 +171,4 @@ class Yar_Client_Exception extends Exception { * @link https://secure.php.net/manual/en/yar-client-exception.gettype.php */ public function getType (){} -} +} \ No newline at end of file diff --git a/zend/zend.php b/zend/zend.php index 63b38ce9..264d8584 100644 --- a/zend/zend.php +++ b/zend/zend.php @@ -367,7 +367,7 @@ class ZendAPI_Job { * * @param string $jobqueue_url Full address of the queue we want to connect to * @param string $password For authentication, the queue password - * @return int The added job id or false on failure + * @return int|false The added job id or false on failure */ function addJobToQueue($jobqueue_url, $password) {} @@ -426,7 +426,7 @@ class ZendAPI_Job { * The status is one of the constants with the "JOB_QUEUE_STATUS_" prefix. * E.g. job was performed and failed, job is waiting etc. * - * @return int + * @return int|false */ function getJobStatus() {} @@ -557,26 +557,26 @@ function monitor_pass_error($errno, $errstr, $errfile, $errline) {} /** * Limited in the database to 255 chars - * @param hint string + * @param string $hint * @return void */ function monitor_set_aggregation_hint($hint) {} /** * Creates a custom event with class $class, text $text and possibly severity and other user data - * @param class string - * @param text string - * @param severe int[optional] - * @param user_data mixed[optional] + * @param string $class + * @param string $text + * @param int $severe [optional] + * @param mixed $user_data [optional] * @return void */ function monitor_custom_event($class, $text, $severe = null, $user_data = null) {} /** * Create an HTTPERROR event - * @param error_code int the http error code to be associated with this event - * @param url string the URL to be associated with this event - * @param severe int[optional] the severety of the event: 0 - not severe, 1 - severe + * @param int $error_code the http error code to be associated with this event + * @param string $url the URL to be associated with this event + * @param int $severe [optional] the severety of the event: 0 - not severe, 1 - severe * @return void */ function monitor_httperror_event($error_code, $url, $severe = null) {} @@ -594,36 +594,36 @@ function monitor_license_info() {} * all the user event handler are called and the return value from the handler is saved in * an array keyed by the name the event handler was registered under. The event handlers * results array is saved in the event_extra_data table. - * @param event_handler_func string The callback function that will be call when the event is triggered, object methods may also be invoked statically using t + * @param string $event_handler_func The callback function that will be call when the event is triggered, object methods may also be invoked statically using t his function by passing array($objectname, $methodname) to the function parameter - * @param handler_register_name string[optional] The name this function is registered under - if none is supplied, the function will be registerd under it's own name - * @param event_type_mask int The mask of event types that the handler should be called on by default it's set to MONITOR_EVENT_ALL. + * @param string $handler_register_name [optional] The name this function is registered under - if none is supplied, the function will be registerd under it's own name + * @param int $event_type_mask The mask of event types that the handler should be called on by default it's set to MONITOR_EVENT_ALL. * @return bool TRUE on sucess and FALSE if an error occurs. */ function register_event_handler($event_handler_func, $handler_register_name, $event_type_mask) {} /** * Allow you to unregister an event handler. - * @param handler_name string the name you registered with the handler you now wish to unregister. + * @param string $handler_name the name you registered with the handler you now wish to unregister. * @return bool TRUE on sucess and FALSE if no handler we registered under the given name. */ function unregister_event_handler($handler_name) {} /** * Send a file using ZDS - * @param filename string path to the file - * @param mime_type string[optional] MIME type of the file, 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 - * @return bool FALSE if sending file failed, does not return otherwise + * @param string $filename path to the file + * @param string $mime_type [optional] MIME type of the file, 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_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 - * @return bool FALSE if sending file failed, does not return otherwise + * @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 + * @return void|false FALSE if sending file failed, does not return otherwise */ function zend_send_buffer($buffer, $mime_type, $custom_headers) {} @@ -633,7 +633,7 @@ class java { * Create Java object * * @return java - * @param classname string + * @param $classname string * @vararg ... */ function java($classname) {} diff --git a/zend/zend_f.php b/zend/zend_f.php index 2ff8c00a..a13af462 100644 --- a/zend/zend_f.php +++ b/zend/zend_f.php @@ -22,7 +22,7 @@ function jobqueue_license_info(){}; * Create Java object * * @return object - * @param class string + * @param string $class * @vararg ... */ function java($class) {} @@ -42,7 +42,7 @@ function java_last_exception_clear() {} /** * Set case sensitivity for Java calls. - * @param ignore bool if set, Java attribute and method names would be resolved disregarding case. NOTE: this does not make any Java functions case insensi + * @param bool $ignore if set, Java attribute and method names would be resolved disregarding case. NOTE: this does not make any Java functions case insensi tive, just things like $foo->bar and $foo->bar() would match Bar too. * @return void */ @@ -50,14 +50,14 @@ function java_set_ignore_case($ignore) {} /** * Set encoding for strings received by Java from PHP. Default is UTF-8. - * @param encoding string + * @param string $encoding * @return array */ function java_set_encoding($encoding) {} /** * Control if exceptions are thrown on Java exception. Only for PHP5. - * @param throw bool If true, PHP exception is thrown when Java exception happens. If set to false, use java_last_exception_get() to check for exception. + * @param bool $throw If true, PHP exception is thrown when Java exception happens. If set to false, use java_last_exception_get() to check for exception. * @return void */ function java_throw_exceptions($throw) {} @@ -66,7 +66,7 @@ function java_throw_exceptions($throw) {} * Reload Jar's that were dynamically loaded * * @return array - * @param new_jarpath string + * @param string $new_jarpath */ function java_reload($new_jarpath) {} @@ -74,7 +74,7 @@ function java_reload($new_jarpath) {} * Add to Java's classpath in runtime * * @return array - * @param new_classpath string + * @param string $new_classpath */ function java_require($new_classpath) {} @@ -105,22 +105,22 @@ function zend_loader_current_file() {} /** * Dynamically loads a license for applications encoded with Zend SafeGuard. The Override controls if it will override old licenses for the same product. - * @param license_file string - * @param override bool[optional] + * @param string $license_file + * @param bool $override [optional] * @return bool */ function zend_loader_install_license($license_file, $override) {} /** * Obfuscate and return the given function name with the internal obfuscation function. - * @param function_name string + * @param string $function_name * @return string */ function zend_obfuscate_function_name($function_name) {} /** * Obfuscate and return the given class name with the internal obfuscation function. - * @param class_name string + * @param string $class_name * @return string */ function zend_obfuscate_class_name($class_name) {} @@ -139,7 +139,7 @@ function zend_runtime_obfuscate() {} /** * Returns array of the host ids. If all_ids is true, then all IDs are returned, otehrwise only IDs considered "primary" are returned. - * @param all_ids bool[optional] + * @param bool $all_ids [optional] * @return array */ function zend_get_id($all_ids = false) {} diff --git a/zip/zip.php b/zip/zip.php index 8ce81288..80e86eb9 100644 --- a/zip/zip.php +++ b/zip/zip.php @@ -411,7 +411,7 @@ class ZipArchive { /** * Returns the status error message, system and/or zip messages * @link https://php.net/manual/en/ziparchive.getstatusstring.php - * @return string a string with the status message on success or FALSE on failure. + * @return string|false a string with the status message on success or FALSE on failure. * @since 5.2.7 */ public function getStatusString () {} @@ -630,7 +630,7 @@ class ZipArchive { /** * (PHP 5 >= 5.6.0, PECL zip >= 1.12.0)* The name of the entry to use. *
- * @return resource a file pointer (resource) on success or FALSE on failure. + * @return resource|false a file pointer (resource) on success or FALSE on failure. */ public function getStream ($name) {} diff --git a/zlib/zlib.php b/zlib/zlib.php index 4cc03342..6ede7e59 100644 --- a/zlib/zlib.php +++ b/zlib/zlib.php @@ -55,7 +55,7 @@ function gzclose ($zp) {} * The gz-file pointer. It must be valid, and must point to a file * successfully opened by gzopen. * - * @return int TRUE if the gz-file pointer is at EOF or an error occurs; + * @return int|bool TRUE if the gz-file pointer is at EOF or an error occurs; * otherwise returns FALSE. * @since 4.0 * @since 5.0 @@ -69,7 +69,7 @@ function gzeof ($zp) {} * The gz-file pointer. It must be valid, and must point to a file * successfully opened by gzopen. * - * @return string The uncompressed character or FALSE on EOF (unlike gzeof). + * @return string|false The uncompressed character or FALSE on EOF (unlike gzeof). * @since 4.0 * @since 5.0 */ @@ -85,7 +85,7 @@ function gzgetc ($zp) {} * @param int $length [optional]* The length of data to get. *
- * @return string The uncompressed string, or FALSE on error. + * @return string|false The uncompressed string, or FALSE on error. * @since 4.0 * @since 5.0 */ @@ -105,7 +105,7 @@ function gzgets ($zp, $length) {} * You can use this optional parameter to specify tags which should not * be stripped. * - * @return string The uncompressed and striped string, or FALSE on error. + * @return string|false The uncompressed and striped string, or FALSE on error. * @since 4.0 * @since 5.0 * @deprecated 7.3 @@ -148,7 +148,7 @@ function gzread ($zp, $length) {} * You can set this optional parameter to 1, if you * want to search for the file in the include_path too. * - * @return resource a file pointer to the file opened, after that, everything you read + * @return resource|false a file pointer to the file opened, after that, everything you read * from this file descriptor will be transparently decompressed and what you * write gets compressed. * @@ -206,7 +206,7 @@ function gzseek ($zp, $offset, $whence = SEEK_SET) {} * The gz-file pointer. It must be valid, and must point to a file * successfully opened by gzopen. * - * @return int The position of the file pointer or FALSE if an error occurs. + * @return int|false The position of the file pointer or FALSE if an error occurs. * @since 4.0 * @since 5.0 */ @@ -284,7 +284,7 @@ function gzfile ($filename, $use_include_path = 0) {} * @param int $encoding [optional]* One of ZLIB_ENCODING_* constants. *
- * @return string The compressed string or FALSE if an error occurred. + * @return string|false The compressed string or FALSE if an error occurred. * @since 4.0.1 * @since 5.0 */ @@ -299,7 +299,7 @@ function gzcompress ($data, $level = -1, $encoding = ZLIB_ENCODING_DEFLATE) {} * @param int $length [optional]* The maximum length of data to decode. *
- * @return string The original uncompressed data or FALSE on error. + * @return string|false The original uncompressed data or FALSE on error. * ** The function will return an error if the uncompressed data is more than @@ -324,7 +324,7 @@ function gzuncompress ($data, $length = 0) {} * @param int $encoding [optional]
* One of ZLIB_ENCODING_* constants. *
- * @return string The deflated string or FALSE if an error occurred. + * @return string|false The deflated string or FALSE if an error occurred. * @since 4.0.4 * @since 5.0 */ @@ -339,7 +339,7 @@ function gzdeflate ($data, $level = -1, $encoding = ZLIB_ENCODING_RAW) {} * @param int $length [optional]* The maximum length of data to decode. *
- * @return string The original uncompressed data or FALSE on error. + * @return string|false The original uncompressed data or FALSE on error. * ** The function will return an error if the uncompressed data is more than @@ -375,7 +375,7 @@ function gzinflate ($data, $length = 0) {} * RFC 1950 compliant output, consisting of a zlib header, the deflated * data, and an Adler checksum. *
- * @return string The encoded string, or FALSE if an error occurred. + * @return string|false The encoded string, or FALSE if an error occurred. * @since 4.0.4 * @since 5.0 */ @@ -390,7 +390,7 @@ function gzencode ($data, $level = -1, $encoding_mode = FORCE_GZIP) {} * @param int $length [optional]* The maximum length of data to decode. *
- * @return string The decoded string, or FALSE if an error occurred. + * @return string|false The decoded string, or FALSE if an error occurred. * @since 5.4.0 */ function gzdecode ($data, $length = null) {} @@ -481,7 +481,7 @@ function deflate_init ($encoding, $options = array()) {} * maximize compression, and ZLIB_FINISH to terminate with * the last chunk of data. * - * @return string+ * @return string|false
* Returns a chunk of compressed data, or FALSE on failure. *
* @since 7.0 @@ -527,7 +527,7 @@ function inflate_init ($encoding, $options = array()) {} * maximize compression, and ZLIB_FINISH to terminate with * the last chunk of data. * - * @return string+ * @return string|false
* Returns a chunk of uncompressed data, or FALSE on failure. *
* @since 7.0 From cfa446c56564f8aded6b3ff05fb3fa4318312911 Mon Sep 17 00:00:00 2001 From: Artemy Pestretsov* 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" =>