fix some more broken html tags

-> PhpStorm can't render the phpdoc if there are too much broken html in the phpdoc. example: phpdoc from "snmp3_set"
This commit is contained in:
Lars Moelleken 2020-11-27 22:59:40 +01:00 committed by Ivan Fedorov
parent cae81c2464
commit 5ae931dfeb
26 changed files with 47 additions and 80 deletions

View File

@ -508,7 +508,6 @@ function class_alias (string $class, string $alias, bool $autoload = true): bool
* Returns an array with the names of included or required files
* @link https://php.net/manual/en/function.get-included-files.php
* @return string[] an array of the names of all files.
* </p>
* <p>
* The script originally called is considered an "included file," so it will
* be listed together with the files referenced by
@ -517,6 +516,7 @@ function class_alias (string $class, string $alias, bool $autoload = true): bool
* <p>
* Files that are included or required multiple times only show up once in
* the returned array.
* </p>
*/
#[Pure]
function get_included_files (): array

View File

@ -1087,11 +1087,11 @@ function sqlite_error_string ($error_code) {}
* the sqlite_last_error function.
* </p>
* @return SQLiteUnbuffered|false a result handle or false on failure.
* </p>
* <p>
* sqlite_unbuffered_query returns a sequential
* forward-only result set that can only be used to read each row, one after
* the other.
* </p>
*/
function sqlite_unbuffered_query ($dbhandle, $query, $result_type = SQLITE_BOTH, &$error_msg = null) {}

View File

@ -2528,11 +2528,11 @@ function curl_reset (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default:
* A reference to a flag to tell whether the operations are still running.
* </p>
* @return int A cURL code defined in the cURL Predefined Constants.
* </p>
* <p>
* This only returns errors regarding the whole multi stack. There might still have
* occurred problems on individual transfers even when this function returns
* CURLM_OK.
* </p>
*/
function curl_multi_exec (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, &$still_running): int
{}

View File

@ -382,11 +382,11 @@ function date (string $format, ?int $timestamp)
* </p>
* @param int|null $timestamp [optional]
* @return int|false an integer.
* </p>
* <p>
* As idate always returns an integer and
* as they can't start with a "0", idate may return
* fewer digits than you would expect. See the example below.
* </p>
*/
#[Pure]
function idate (string $format, ?int $timestamp): int|false

View File

@ -250,11 +250,11 @@ function ftp_nlist ($ftp, string $directory): array|false
* If set to <b>TRUE</b>, the issued command will be LIST -R.
* </p>
* @return array|false an array where each element corresponds to one line of text.
* </p>
* <p>
* The output is not parsed in any way. The system type identifier returned by
* <b>ftp_systype</b> can be used to determine how the results
* should be interpreted.
* </p>
*/
function ftp_rawlist ($ftp, string $directory, bool $recursive = false): array|false
{}

View File

@ -7,7 +7,6 @@ use JetBrains\PhpStorm\Pure;
* Retrieve information about the currently installed GD library
* @link https://php.net/manual/en/function.gd-info.php
* @return array an associative array.
* </p>
* <p>
* <table>
* Elements of array returned by <b>gd_info</b>
@ -80,6 +79,7 @@ use JetBrains\PhpStorm\Pure;
* <p>
* Previous to PHP 5.3.0, the JPEG Support attribute was named
* JPG Support.
* </p>
*/
#[Pure]
function gd_info () {}

View File

@ -251,12 +251,12 @@ function imap_rfc822_write_address ($mailbox, $host, $personal) {}
* The default host name
* </p>
* @return array an array of objects. The objects properties are:
* </p>
* <p>
* mailbox - the mailbox name (username)
* host - the host name
* personal - the personal name
* adl - at domain source route
* </p>
*/
function imap_rfc822_parse_adrlist ($address, $default_host) {}
@ -1090,10 +1090,10 @@ function imap_last_error () {}
* </p>
* @param string $charset [optional]
* @return array|false an array of message numbers or UIDs.
* </p>
* <p>
* Return <b>FALSE</b> if it does not understand the search
* <i>criteria</i> or no messages have been found.
* </p>
*/
function imap_search ($imap_stream, $criteria, $options = SE_FREE, $charset = NIL) {}

View File

@ -221,9 +221,6 @@ function mssql_num_fields ($result) {}
* field_offset starts at 0.
* </p>
* @return object an object containing field information.
* </p>
* <p>
* The properties of the object are:
* @removed 7.0
*/
function mssql_fetch_field ($result, $field_offset = -1) {}

View File

@ -225,11 +225,11 @@ function mysql_list_dbs ($link_identifier = null) {}
* </p>
* @param resource $link_identifier [optional]
* @return resource|false A result pointer resource on success or false on failure.
* </p>
* <p>
* Use the <b>mysql_tablename</b> function to
* traverse this result pointer, or any function for result tables,
* such as <b>mysql_fetch_array</b>.
* </p>
* @removed 7.0
*/
#[Deprecated(since: '5.3')]
@ -538,12 +538,12 @@ function mysql_field_seek ($result, $field_offset) {}
* @link https://php.net/manual/en/function.mysql-free-result.php
* @param resource $result
* @return bool true on success or false on failure.
* </p>
* <p>
* If a non-resource is used for the result, an
* error of level E_WARNING will be emitted. It's worth noting that
* mysql_query only returns a resource
* for SELECT, SHOW, EXPLAIN, and DESCRIBE queries.
* </p>
* @removed 7.0
*/
#[Deprecated(since: '5.5')]
@ -603,7 +603,6 @@ function mysql_field_type ($result, $field_offset) {}
* @param resource $result
* @param int $field_offset
* @return string|false a string of flags associated with the result or false on failure.
* </p>
* <p>
* The following flags are reported, if your version of MySQL
* is current enough to support them: "not_null",
@ -612,6 +611,7 @@ function mysql_field_type ($result, $field_offset) {}
* "unsigned", "zerofill",
* "binary", "enum",
* "auto_increment" and "timestamp".
* </p>
* @removed 7.0
*/
#[Deprecated(since: '5.5')]
@ -900,11 +900,11 @@ function mysql_dbname ($result, $row, $field) {}
* The integer index (row/table number)
* </p>
* @return string|false The name of the table on success or false on failure.
* </p>
* <p>
* Use the <b>mysql_tablename</b> function to
* traverse this result pointer, or any function for result tables,
* such as <b>mysql_fetch_array</b>.
* </p>
* @removed 7.0
*/
#[Deprecated(since: '5.5')]

View File

@ -47,7 +47,6 @@ function ncurses_getch () {}
* Check if terminal has colors
* @link https://php.net/manual/en/function.ncurses-has-colors.php
* @return bool Return true if the terminal has color capacities, false otherwise.
* </p>
*/
function ncurses_has_colors () {}
@ -55,7 +54,6 @@ function ncurses_has_colors () {}
* Initialize ncurses
* @link https://php.net/manual/en/function.ncurses-init.php
* @return void
* </p>
*/
function ncurses_init () {}
@ -127,7 +125,6 @@ function ncurses_move ($y, $x) {}
* x-ccordinate of the origin
* </p>
* @return resource a resource ID for the new window.
* </p>
*/
function ncurses_newwin ($rows, $cols, $y, $x) {}
@ -188,7 +185,6 @@ function ncurses_can_change_color () {}
* Switch of input buffering
* @link https://php.net/manual/en/function.ncurses-cbreak.php
* @return bool true or NCURSES_ERR if any error occurred.
* </p>
*/
function ncurses_cbreak () {}
@ -196,7 +192,6 @@ function ncurses_cbreak () {}
* Clear screen
* @link https://php.net/manual/en/function.ncurses-clear.php
* @return bool
* </p>
*/
function ncurses_clear () {}
@ -204,7 +199,6 @@ function ncurses_clear () {}
* Clear screen from current position to bottom
* @link https://php.net/manual/en/function.ncurses-clrtobot.php
* @return bool
* </p>
*/
function ncurses_clrtobot () {}
@ -212,7 +206,6 @@ function ncurses_clrtobot () {}
* Clear screen from current position to end of line
* @link https://php.net/manual/en/function.ncurses-clrtoeol.php
* @return bool
* </p>
*/
function ncurses_clrtoeol () {}
@ -220,7 +213,6 @@ function ncurses_clrtoeol () {}
* Saves terminals (program) mode
* @link https://php.net/manual/en/function.ncurses-def-prog-mode.php
* @return bool false on success, otherwise true.
* </p>
*/
function ncurses_def_prog_mode () {}
@ -235,7 +227,6 @@ function ncurses_reset_prog_mode () {}
* Saves terminals (shell) mode
* @link https://php.net/manual/en/function.ncurses-def-shell-mode.php
* @return bool false on success, true otherwise.
* </p>
*/
function ncurses_def_shell_mode () {}
@ -250,7 +241,6 @@ function ncurses_reset_shell_mode () {}
* Delete character at current position, move rest of line left
* @link https://php.net/manual/en/function.ncurses-delch.php
* @return bool false on success, true otherwise.
* </p>
*/
function ncurses_delch () {}
@ -258,7 +248,6 @@ function ncurses_delch () {}
* Delete line at current position, move rest of screen up
* @link https://php.net/manual/en/function.ncurses-deleteln.php
* @return bool false on success, otherwise true.
* </p>
*/
function ncurses_deleteln () {}
@ -266,7 +255,6 @@ function ncurses_deleteln () {}
* Write all prepared refreshes to terminal
* @link https://php.net/manual/en/function.ncurses-doupdate.php
* @return bool
* </p>
*/
function ncurses_doupdate () {}
@ -274,7 +262,6 @@ function ncurses_doupdate () {}
* Activate keyboard input echo
* @link https://php.net/manual/en/function.ncurses-echo.php
* @return bool false on success, true if any error occurred.
* </p>
*/
function ncurses_echo () {}
@ -282,7 +269,6 @@ function ncurses_echo () {}
* Erase terminal screen
* @link https://php.net/manual/en/function.ncurses-erase.php
* @return bool
* </p>
*/
function ncurses_erase () {}
@ -307,7 +293,6 @@ function ncurses_erasechar () {}
* Flash terminal screen (visual bell)
* @link https://php.net/manual/en/function.ncurses-flash.php
* @return bool false on success, otherwise true.
* </p>
*/
function ncurses_flash () {}
@ -315,7 +300,6 @@ function ncurses_flash () {}
* Flush keyboard input buffer
* @link https://php.net/manual/en/function.ncurses-flushinp.php
* @return bool false on success, otherwise true.
* </p>
*/
function ncurses_flushinp () {}
@ -324,7 +308,6 @@ function ncurses_flushinp () {}
* @link https://php.net/manual/en/function.ncurses-has-ic.php
* @return bool true if the terminal has insert/delete-capabilities, false
* otherwise.
* </p>
*/
function ncurses_has_ic () {}
@ -333,7 +316,6 @@ function ncurses_has_ic () {}
* @link https://php.net/manual/en/function.ncurses-has-il.php
* @return bool true if the terminal has insert/delete-line capabilities,
* false otherwise.
* </p>
*/
function ncurses_has_il () {}
@ -341,7 +323,6 @@ function ncurses_has_il () {}
* Get character and attribute at current position
* @link https://php.net/manual/en/function.ncurses-inch.php
* @return string the character, as a string.
* </p>
*/
function ncurses_inch () {}
@ -358,7 +339,6 @@ function ncurses_insertln () {}
* @return bool true, if ncurses_endwin has been called
* without any subsequent calls to ncurses_wrefresh,
* false otherwise.
* </p>
*/
function ncurses_isendwin () {}
@ -366,7 +346,6 @@ function ncurses_isendwin () {}
* Returns current line kill character
* @link https://php.net/manual/en/function.ncurses-killchar.php
* @return string the kill character, as a string.
* </p>
*/
function ncurses_killchar () {}
@ -381,7 +360,6 @@ function ncurses_nl () {}
* Switch terminal to cooked mode
* @link https://php.net/manual/en/function.ncurses-nocbreak.php
* @return bool true if any error occurred, otherwise false.
* </p>
*/
function ncurses_nocbreak () {}
@ -389,7 +367,6 @@ function ncurses_nocbreak () {}
* Switch off keyboard input echo
* @link https://php.net/manual/en/function.ncurses-noecho.php
* @return bool true if any error occurred, false otherwise.
* </p>
*/
function ncurses_noecho () {}
@ -404,7 +381,6 @@ function ncurses_nonl () {}
* Switch terminal out of raw mode
* @link https://php.net/manual/en/function.ncurses-noraw.php
* @return bool true if any error occurred, otherwise false.
* </p>
*/
function ncurses_noraw () {}
@ -412,7 +388,6 @@ function ncurses_noraw () {}
* Switch terminal into raw mode
* @link https://php.net/manual/en/function.ncurses-raw.php
* @return bool true if any error occurred, otherwise false.
* </p>
*/
function ncurses_raw () {}
@ -431,7 +406,6 @@ function ncurses_meta ($window, $bit8) {}
* Restores saved terminal state
* @link https://php.net/manual/en/function.ncurses-resetty.php
* @return bool Always returns false.
* </p>
*/
function ncurses_resetty () {}
@ -439,7 +413,6 @@ function ncurses_resetty () {}
* Saves terminal state
* @link https://php.net/manual/en/function.ncurses-savetty.php
* @return bool Always returns false.
* </p>
*/
function ncurses_savetty () {}
@ -461,7 +434,6 @@ function ncurses_use_default_colors () {}
* Returns current soft label key attribute
* @link https://php.net/manual/en/function.ncurses-slk-attr.php
* @return int The attribute, as an integer.
* </p>
*/
function ncurses_slk_attr () {}
@ -469,7 +441,6 @@ function ncurses_slk_attr () {}
* Clears soft labels from screen
* @link https://php.net/manual/en/function.ncurses-slk-clear.php
* @return bool true on errors, false otherwise.
* </p>
*/
function ncurses_slk_clear () {}
@ -677,7 +648,6 @@ function ncurses_slk_color ($intarg) {}
* index line will be created.
* </p>
* @return bool
* </p>
*/
function ncurses_slk_init ($format) {}
@ -1005,7 +975,6 @@ function ncurses_insstr ($text) {}
* The characters. Attributes will be stripped.
* </p>
* @return int the number of characters.
* </p>
*/
function ncurses_instr (&$buffer) {}
@ -1195,7 +1164,6 @@ function ncurses_getmouse (array &$mevent) {}
* An associative array specifying the event options:
* <p>"id" : Id to distinguish multiple devices</p>
* @return bool false on success, true otherwise.
* </p>
*/
function ncurses_ungetmouse (array $mevent) {}
@ -1499,7 +1467,6 @@ function ncurses_getyx ($window, &$y, &$x) {}
* This will be set to the window width
* </p>
* @return void
* </p>
*/
function ncurses_getmaxyx ($window, &$y, &$x) {}
@ -1534,7 +1501,6 @@ function ncurses_panel_below ($panel) {}
* @param resource $panel <p>
* </p>
* @return resource If panel is null, returns the bottom panel in the stack.
* </p>
*/
function ncurses_panel_above ($panel) {}

View File

@ -78,7 +78,6 @@ function odbc_close_all () {}
* The column name.
* </p>
* @return resource|false an ODBC result identifier or <b>FALSE</b> on failure.
* </p>
* <p>
* The result set has the following columns:
* TABLE_QUALIFIER
@ -97,6 +96,7 @@ function odbc_close_all () {}
* <p>
* The result set is ordered by TABLE_QUALIFIER, TABLE_SCHEM and
* TABLE_NAME.
* </p>
*/
function odbc_columns ($connection_id, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {}
@ -630,7 +630,6 @@ function odbc_specialcolumns ($connection_id, $type, $qualifier, $owner, $table,
* The accuracy.
* </p>
* @return resource|false an ODBC result identifier or <b>FALSE</b> on failure.
* </p>
* <p>
* The result set has the following columns:
* TABLE_QUALIFIER
@ -646,6 +645,7 @@ function odbc_specialcolumns ($connection_id, $type, $qualifier, $owner, $table,
* CARDINALITY
* PAGES
* FILTER_CONDITION
* </p>
*/
function odbc_statistics ($connection_id, $qualifier, $owner, $table_name, $unique, $accuracy) {}
@ -696,7 +696,6 @@ function odbc_tables ($connection_id, $qualifier = null, $owner = null, $name =
* @param string $owner
* @param string $table
* @return resource|false an ODBC result identifier or <b>FALSE</b> on failure.
* </p>
* <p>
* The result set has the following columns:
* TABLE_QUALIFIER
@ -705,6 +704,7 @@ function odbc_tables ($connection_id, $qualifier = null, $owner = null, $name =
* COLUMN_NAME
* KEY_SEQ
* PK_NAME
* </p>
*/
function odbc_primarykeys ($connection_id, $qualifier, $owner, $table) {}
@ -764,7 +764,6 @@ function odbc_columnprivileges ($connection_id, $qualifier, $owner, $table_name,
* ('%' to match zero or more characters and '_' to match a single character)
* </p>
* @return resource|false An ODBC result identifier or <b>FALSE</b> on failure.
* </p>
* <p>
* The result set has the following columns:
* TABLE_QUALIFIER
@ -774,6 +773,7 @@ function odbc_columnprivileges ($connection_id, $qualifier, $owner, $table_name,
* GRANTEE
* PRIVILEGE
* IS_GRANTABLE
* </p>
*/
function odbc_tableprivileges ($connection_id, $qualifier, $owner, $name) {}
@ -801,7 +801,6 @@ function odbc_tableprivileges ($connection_id, $qualifier, $owner, $name) {}
* The foreign key table.
* </p>
* @return resource|false an ODBC result identifier or <b>FALSE</b> on failure.
* </p>
* <p>
* The result set has the following columns:
* PKTABLE_QUALIFIER
@ -832,6 +831,7 @@ function odbc_tableprivileges ($connection_id, $qualifier, $owner, $name) {}
* the table specified in <i>fk_table</i> that refer
* to the primary key of the table specified in
* <i>pk_table
* </p>
*/
function odbc_foreignkeys ($connection_id, $pk_qualifier, $pk_owner, $pk_table, $fk_qualifier, $fk_owner, $fk_table) {}

View File

@ -669,10 +669,10 @@ function pg_fetch_all ($result, $result_type = PGSQL_ASSOC) {}
* to the first column if not specified.
* </p>
* @return array An array with all values in the result column.
* </p>
* <p>
* <b>FALSE</b> is returned if <i>column</i> is larger than the number
* of columns in the result, or on any other error.
* </p>
*/
function pg_fetch_all_columns ($result, $column = 0) {}

View File

@ -463,10 +463,10 @@ function snmpwalkoid ($hostname, $community, $object_id, $timeout = 1000000, $re
* The number of times to retry if timeouts occur.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* If the SNMP host rejects the data type, an E_WARNING message like "Warning: Error in packet. Reason: (badValue) The value given has the wrong type or length." is shown.
* If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
* </p>
*/
function snmpset ($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}
@ -678,10 +678,10 @@ function snmp2_real_walk ($host, $community, $object_id, $timeout = 1000000, $re
* The number of times to retry if timeouts occur.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* If the SNMP host rejects the data type, an E_WARNING message like "Warning: Error in packet. Reason: (badValue) The value given has the wrong type or length." is shown.
* If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
* </p>
*/
function snmp2_set ($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}
@ -873,7 +873,7 @@ function snmp3_real_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_pa
* The SNMP object id.
* </p>
* @param string $type The MIB defines the type of each object id. It has to be specified as a single character from the below list.
* </p>
* <p>
* types
* <tr valign="top"><td>=</td><td>The type is taken from the MIB</td></tr>
* <tr valign="top"><td>i</td><td>INTEGER</td> </tr>
@ -889,6 +889,7 @@ function snmp3_real_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_pa
* </table>
* If <b>OPAQUE_SPECIAL_TYPES</b> was defined while compiling the SNMP library, the following are also valid:
* </p>
* <p>
* types
* <tr valign="top"><td>U</td><td>unsigned int64</td></tr>
* <tr valign="top"><td>I</td><td>signed int64</td></tr>
@ -898,12 +899,15 @@ function snmp3_real_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_pa
* Most of these will use the obvious corresponding ASN.1 type. &#x00027;s&#x00027;, &#x00027;x&#x00027;, &#x00027;d&#x00027; and &#x00027;b&#x00027; are all different ways of specifying an OCTET STRING value, and
* the &#x00027;u&#x00027; unsigned type is also used for handling Gauge32 values.
* </p>
* <p>
* If the MIB-Files are loaded by into the MIB Tree with "snmp_read_mib" or by specifying it in the libsnmp config, &#x00027;=&#x00027; may be used as
* the <i>type</i> parameter for all object ids as the type can then be automatically read from the MIB.
* </p>
* <p>
* Note that there are two ways to set a variable of the type BITS like e.g.
* "SYNTAX BITS {telnet(0), ftp(1), http(2), icmp(3), snmp(4), ssh(5), https(6)}":
* </p>
* <p>
* Using type "b" and a list of bit numbers. This method is not recommended since GET query for the same OID would return e.g. 0xF8.
* Using type "x" and a hex number but without(!) the usual "0x" prefix.
* See examples section for more details.
@ -918,10 +922,10 @@ function snmp3_real_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_pa
* The number of times to retry if timeouts occur.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* If the SNMP host rejects the data type, an E_WARNING message like "Warning: Error in packet. Reason: (badValue) The value given has the wrong type or length." is shown.
* If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
* </p>
*/
function snmp3_set ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}

View File

@ -567,11 +567,11 @@ function socket_strerror ($errno) {}
* the port on which to listen for connections.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* The error code can be retrieved with <b>socket_last_error</b>.
* This code may be passed to <b>socket_strerror</b> to get a
* textual explanation of the error.
* </p>
*/
function socket_bind ($socket, $address, $port = 0) {}

View File

@ -183,7 +183,6 @@ function usleep (int $microseconds): void {}
* Must be a positive integer less than 1 billion.
* </p>
* @return bool|array true on success or false on failure.
* </p>
* <p>
* If the delay was interrupted by a signal, an associative array will be
* returned with the components:
@ -191,6 +190,7 @@ function usleep (int $microseconds): void {}
* the delay
* nanoseconds - number of nanoseconds
* remaining in the delay
* </p>
*/
function time_nanosleep (int $seconds, int $nanoseconds): array|bool
{}
@ -221,7 +221,6 @@ function time_sleep_until (float $timestamp): bool
* strftime page.
* </p>
* @return array|false an array or false on failure.
* </p>
* <p>
* <table>
* The following parameters are returned in the array
@ -267,6 +266,7 @@ function time_sleep_until (float $timestamp): bool
* recognized using the specified format</td>
* </tr>
* </table>
* </p>
*/
#[Pure]
function strptime (string $timestamp, string $format): array|false
@ -859,7 +859,6 @@ function iptcembed (string $iptc_data, string $filename, int $spool): string|boo
* binary APP13 marker into something readable.
* </p>
* @return array|false an array with 7 elements.
* </p>
* <p>
* Index 0 and 1 contains respectively the width and the height of the image.
* </p>
@ -900,6 +899,7 @@ function iptcembed (string $iptc_data, string $filename, int $spool): string|boo
* </p>
* <p>
* On failure, false is returned.
* </p>
*/
function getimagesize (string $filename, &$image_info): array|false
{}
@ -1210,7 +1210,6 @@ function zend_logo_guid (): string
* Returns the type of interface between web server and PHP
* @link https://php.net/manual/en/function.php-sapi-name.php
* @return string|false the interface type, as a lowercase string.
* </p>
* <p>
* Although not exhaustive, the possible return values include
* aolserver, apache,
@ -1222,6 +1221,7 @@ function zend_logo_guid (): string
* milter, nsapi,
* phttpd, pi3web, roxen,
* thttpd, tux, and webjames.
* </p>
*/
#[Pure]
function php_sapi_name (): string|false

View File

@ -429,7 +429,6 @@ function ini_get (string $option): string|false
* Default is true (retrieve details).
* </p>
* @return array|false an associative array with directive name as the array key.
* </p>
* <p>
* When details is true (default) the array will
* contain global_value (set in
@ -448,6 +447,7 @@ function ini_get (string $option): string|false
* <p>
* It's possible for a directive to have multiple access levels, which is
* why access shows the appropriate bitmask values.
* </p>
*/
#[Pure]
function ini_get_all (?string $extension, bool $details): array|false

View File

@ -378,9 +378,9 @@ function is_countable(mixed $value): bool
* successful call to popen.
* </p>
* @return int the termination status of the process that was run. In case of an error then -1 is returned.
* </p>
* <p>
* If PHP has been compiled with <tt>--enable-sigchild</tt>, the return value of this function is undefined.
* </p>
*/
function pclose ($handle): int
{}

View File

@ -1060,10 +1060,10 @@ function diskfreespace (string $directory): float|false
* For sendmail users, this file is /etc/mail/trusted-users.
* </p>
* @return bool true if the mail was successfully accepted for delivery, false otherwise.
* </p>
* <p>
* It is important to note that just because the mail was accepted for delivery,
* it does NOT mean the mail will actually reach the intended destination.
* </p>
*/
function mail (string $to, string $subject, string $message, array|string $additional_headers, string $additional_params): bool
{}

View File

@ -151,7 +151,6 @@ function array_reverse(array $array, bool $preserve_keys): array { }
* the array is empty.
* </p>
* @return mixed the resulting value.
* </p>
* <p>
* If the array is empty and initial is not passed,
* array_reduce returns null.
@ -162,6 +161,7 @@ function array_reverse(array $array, bool $preserve_keys): array { }
* <blockquote><pre>array_reduce(['2', '3', '4'], function($ax, $dx) { return $ax . ", {$dx}"; }, '1') // Returns '1, 2, 3, 4'</pre></blockquote>
* <blockquote><pre>array_reduce(['2', '3', '4'], function($ax, $dx) { return $ax + (int)$dx; }, 1) // Returns 10</pre></blockquote>
* <br/>
* </p>
* @meta
*/
function array_reduce(array $array, callable $callback, mixed $initial): mixed { }
@ -1150,10 +1150,10 @@ function stream_isatty($stream): bool
* this would be the time to destroy or dispose of them.
* </p>
* @return bool true on success or false on failure.
* </p>
* <p>
* stream_filter_register will return false if the
* filtername is already defined.
* </p>
*/
function stream_filter_register(string $filter_name, string $class): bool
{ }

View File

@ -374,7 +374,6 @@ function svn_resolved () {}
* Default is <b>TRUE</b>.
* </p>
* @return array array in form of:
* </p>
* <pre>
* array(
* 0 => integer revision number of commit
@ -384,6 +383,7 @@ function svn_resolved () {}
* </pre>
* <p>
* Returns <b>FALSE</b> on failure.
* </p>
*/
function svn_commit ($log, array $targets, $recursive = true) {}

View File

@ -47,12 +47,12 @@ function msg_get_queue (int $key, int $permissions = 0666) {}
* </p>
* @param int &$error_code [optional]
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* Upon successful completion the message queue data structure is updated as
* follows: <i>msg_lspid</i> is set to the process-ID of the
* calling process, <i>msg_qnum</i> is incremented by 1 and
* <i>msg_stime</i> is set to the current time.
* </p>
*/
function msg_send (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, &$error_code): bool {}
@ -134,12 +134,12 @@ function msg_send (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], defau
* will be set to the value of the system errno variable.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* Upon successful completion the message queue data structure is updated as
* follows: msg_lrpid is set to the process-ID of the
* calling process, msg_qnum is decremented by 1 and
* msg_rtime is set to the current time.
* </p>
*/
function msg_receive (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue, int $desired_message_type, &$received_message_type, int $max_message_size, mixed &$message, bool $unserialize = true, int $flags = 0, &$error_code): bool {}

View File

@ -651,9 +651,9 @@ function tidy_get_release () {}
* The <b>Tidy</b> object.
* </p>
* @return array an array of configuration options.
* </p>
* <p>
* For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html.
* </p>
*/
function tidy_get_config (tidy $object) {}
@ -677,10 +677,10 @@ function tidy_get_status (tidy $object) {}
* The <b>Tidy</b> object.
* </p>
* @return int the detected HTML version.
* </p>
* <p>
* This function is not yet implemented in the Tidylib itself, so it always
* return 0.
* </p>
*/
function tidy_get_html_ver (tidy $object) {}

View File

@ -333,7 +333,6 @@ function xml_set_end_namespace_decl_handler (#[LanguageLevelTypeAware(["8.0" =>
* data sent in this parse.
* </p>
* @return int 1 on success or 0 on failure.
* </p>
* <p>
* For unsuccessful parses, error information can be retrieved with
* <b>xml_get_error_code</b>,
@ -345,6 +344,7 @@ function xml_set_end_namespace_decl_handler (#[LanguageLevelTypeAware(["8.0" =>
* <p>
* Entity errors are reported at the end of the data thus only if
* <i>is_final</i> is set and <b>TRUE</b>.
* </p>
*/
function xml_parse (#[LanguageLevelTypeAware(["8.0" => "XmlParser"], default: "resource")] $parser, string $data, bool $is_final = false): int
{}

View File

@ -520,10 +520,10 @@ class XMLWriter {
* The URI of the resource for the output.
* </p>
* @return bool|resource Object oriented style: Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* Procedural style: Returns a new xmlwriter resource for later use with the
* xmlwriter functions on success, <b>FALSE</b> on error.
* </p>
*/
#[LanguageLevelTypeAware(["8.0" => "XMLWriter|false"], default: "resource|false")]
function xmlwriter_open_uri (string $uri)
@ -534,10 +534,10 @@ function xmlwriter_open_uri (string $uri)
* Create new xmlwriter using memory for string output
* @link https://php.net/manual/en/function.xmlwriter-open-memory.php
* @return XMLWriter|false|resource Object oriented style: Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* Procedural style: Returns a new xmlwriter resource for later use with the
* xmlwriter functions on success, <b>FALSE</b> on error.
* </p>
*/
#[LanguageLevelTypeAware(["8.0" => "XMLWriter|false"], default: "resource|false")]
function xmlwriter_open_memory ()

View File

@ -1238,12 +1238,12 @@ function zip_read ($zip) {}
* in PHP is read only access.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* Unlike <b>fopen</b> and other similar functions,
* the return value of <b>zip_entry_open</b> only
* indicates the result of the operation and is not needed for
* reading or closing the directory entry.
* </p>
*/
function zip_entry_open ($zip, $zip_entry, $mode = null) {}

View File

@ -277,11 +277,11 @@ function gzcompress (string $data, int $level = -1, int $encoding = ZLIB_ENCODIN
* The maximum length of data to decode.
* </p>
* @return string|false The original uncompressed data or <b>FALSE</b> on error.
* </p>
* <p>
* The function will return an error if the uncompressed data is more than
* 32768 times the length of the compressed input <i>data</i>
* or more than the optional parameter <i>length</i>.
* </p>
*/
#[Pure]
function gzuncompress (string $data, int $max_length = 0): string|false {}
@ -315,11 +315,11 @@ function gzdeflate (string $data, int $level = -1, int $encoding = ZLIB_ENCODING
* The maximum length of data to decode.
* </p>
* @return string|false The original uncompressed data or <b>FALSE</b> on error.
* </p>
* <p>
* The function will return an error if the uncompressed data is more than
* 32768 times the length of the compressed input <i>data</i>
* or more than the optional parameter <i>length</i>.
* </p>
*/
#[Pure]
function gzinflate (string $data, int $max_length = 0): string|false {}