diff --git a/composer.json b/composer.json index 3fd69823..18a794bf 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,6 @@ "generated/ftp.php", "generated/funchand.php", "generated/gettext.php", - "generated/gmp.php", "generated/gnupg.php", "generated/hash.php", "generated/ibase.php", @@ -73,6 +72,7 @@ "generated/ps.php", "generated/pspell.php", "generated/readline.php", + "generated/rnp.php", "generated/rpminfo.php", "generated/rrd.php", "generated/sem.php", @@ -118,4 +118,4 @@ "cs-fix": "phpcbf", "cs-check": "phpcs" } -} +} \ No newline at end of file diff --git a/generated/Exceptions/GmpException.php b/generated/Exceptions/RnpException.php similarity index 79% rename from generated/Exceptions/GmpException.php rename to generated/Exceptions/RnpException.php index d2c91da9..6cf8fb81 100644 --- a/generated/Exceptions/GmpException.php +++ b/generated/Exceptions/RnpException.php @@ -1,7 +1,7 @@ * * - * So, $out[0] contains array of strings that matched full pattern, - * and $out[1] contains array of strings enclosed by tags. + * So, $out[0] contains an array of strings that matched the full pattern, + * and $out[1] contains an array of strings enclosed by tags. * * * @@ -209,15 +209,15 @@ function preg_grep(string $pattern, array $array, int $flags = 0): array * ]]> * * - * So, $out[0] contains array of strings that matched full pattern, - * and $out[1] contains array of strings enclosed by tags. + * So, $out[0] contains an array of strings that matched the full pattern, + * and $out[1] contains an array of strings enclosed by tags. * * * * The above example will output: * - * So, $out[0] contains array of strings that matched full pattern, - * and $out[1] contains array of strings enclosed by tags. + * So, $out[0] contains an array of strings that matched the full pattern, + * and $out[1] contains an array of strings enclosed by tags. * * If the pattern contains named subpatterns, $matches * additionally contains entries for keys with the subpattern name. @@ -339,15 +339,15 @@ function preg_grep(string $pattern, array $array, int $flags = 0): array * ]]> * * - * So, $out[0] contains array of strings that matched full pattern, - * and $out[1] contains array of strings enclosed by tags. + * So, $out[0] contains an array of strings that matched the full pattern, + * and $out[1] contains an array of strings enclosed by tags. * * * * The above example will output: * - * So, $out[0] contains array of strings that matched full pattern, - * and $out[1] contains array of strings enclosed by tags. + * So, $out[0] contains an array of strings that matched the full pattern, + * and $out[1] contains an array of strings enclosed by tags. * * If the pattern contains named subpatterns, $matches * additionally contains entries for keys with the subpattern name. @@ -683,3 +683,4 @@ function preg_split(string $pattern, string $subject, ?int $limit = -1, int $fla } return $safeResult; } + diff --git a/generated/pgsql.php b/generated/pgsql.php index 9968a5ae..1aa26b94 100644 --- a/generated/pgsql.php +++ b/generated/pgsql.php @@ -150,7 +150,7 @@ function pg_convert($connection, string $table_name, array $values, int $flags = * @throws PgsqlException * */ -function pg_copy_from($connection, string $table_name, array $rows, string $separator = "\t", string $null_as = "\\\\N"): void +function pg_copy_from($connection, string $table_name, array $rows, string $separator = "\t", string $null_as = "\\N"): void { error_clear_last(); $safeResult = \pg_copy_from($connection, $table_name, $rows, $separator, $null_as); @@ -175,7 +175,7 @@ function pg_copy_from($connection, string $table_name, array $rows, string $sepa * @throws PgsqlException * */ -function pg_copy_to($connection, string $table_name, string $separator = "\t", string $null_as = "\\\\N"): array +function pg_copy_to($connection, string $table_name, string $separator = "\t", string $null_as = "\\N"): array { error_clear_last(); $safeResult = \pg_copy_to($connection, $table_name, $separator, $null_as); @@ -297,7 +297,7 @@ function pg_end_copy($connection = null): void * @throws PgsqlException * */ -function pg_execute($connection = null, string $stmtname = null, array $params = null) +function pg_execute($connection = null, ?string $stmtname = null, ?array $params = null) { error_clear_last(); if ($params !== null) { @@ -542,7 +542,7 @@ function pg_lo_close($lob): void * @throws PgsqlException * */ -function pg_lo_export($connection = null, int $oid = null, string $pathname = null): void +function pg_lo_export($connection = null, ?int $oid = null, ?string $pathname = null): void { error_clear_last(); if ($pathname !== null) { @@ -584,7 +584,7 @@ function pg_lo_export($connection = null, int $oid = null, string $pathname = nu * @throws PgsqlException * */ -function pg_lo_import($connection = null, string $pathname = null, $object_id = null): int +function pg_lo_import($connection = null, ?string $pathname = null, $object_id = null): int { error_clear_last(); if ($object_id !== null) { @@ -748,7 +748,7 @@ function pg_lo_unlink($connection, int $oid): void * @throws PgsqlException * */ -function pg_lo_write($lob, string $data, int $length = null): int +function pg_lo_write($lob, string $data, ?int $length = null): int { error_clear_last(); if ($length !== null) { @@ -824,7 +824,7 @@ function pg_meta_data($connection, string $table_name, bool $extended = false): * @throws PgsqlException * */ -function pg_parameter_status($connection = null, string $param_name = null): string +function pg_parameter_status($connection = null, ?string $param_name = null): string { error_clear_last(); if ($param_name !== null) { @@ -935,13 +935,14 @@ function pg_ping($connection = null): void * create an unnamed statement, in which case any pre-existing unnamed * statement is automatically replaced; otherwise it is an error if the * statement name is already defined in the current session. If any parameters - * are used, they are referred to in the query as $1, $2, etc. + * are used, they are referred to in the query as $1, + * $2, etc. * * Prepared statements for use with pg_prepare can also be created by - * executing SQL PREPARE statements. (But pg_prepare is more flexible since it - * does not require parameter types to be pre-specified.) Also, although there - * is no PHP function for deleting a prepared statement, the SQL DEALLOCATE - * statement can be used for that purpose. + * executing SQL PREPARE statements. (But pg_prepare is + * more flexible since it does not require parameter types to be pre-specified.) Also, + * although there is no PHP function for deleting a prepared statement, the + * SQL DEALLOCATE statement can be used for that purpose. * * @param resource $connection An PgSql\Connection instance. * When connection is unspecified, the default connection is used. @@ -951,14 +952,14 @@ function pg_ping($connection = null): void * @param string $stmtname The name to give the prepared statement. Must be unique per-connection. If * "" is specified, then an unnamed statement is created, overwriting any * previously defined unnamed statement. - * @param string $query The parameterized SQL statement. Must contain only a single statement. - * (multiple statements separated by semi-colons are not allowed.) If any parameters + * @param string $query The parameterized SQL statement. Must contain only a single statement + * (multiple statements separated by semi-colons are not allowed). If any parameters * are used, they are referred to as $1, $2, etc. * @return resource An PgSql\Result instance on success. * @throws PgsqlException * */ -function pg_prepare($connection = null, string $stmtname = null, string $query = null) +function pg_prepare($connection = null, ?string $stmtname = null, ?string $query = null) { error_clear_last(); if ($query !== null) { @@ -1000,7 +1001,7 @@ function pg_prepare($connection = null, string $stmtname = null, string $query = * @throws PgsqlException * */ -function pg_put_line($connection = null, string $data = null): void +function pg_put_line($connection = null, ?string $data = null): void { error_clear_last(); if ($data !== null) { @@ -1067,7 +1068,7 @@ function pg_put_line($connection = null, string $data = null): void * @throws PgsqlException * */ -function pg_query_params($connection = null, string $query = null, array $params = null) +function pg_query_params($connection = null, ?string $query = null, ?array $params = null) { error_clear_last(); if ($params !== null) { @@ -1126,7 +1127,7 @@ function pg_query_params($connection = null, string $query = null, array $params * @throws PgsqlException * */ -function pg_query($connection = null, string $query = null) +function pg_query($connection = null, ?string $query = null) { error_clear_last(); if ($query !== null) { @@ -1211,10 +1212,16 @@ function pg_result_seek($result, int $row): void * array containing all records and fields that match the condition * specified by conditions. * - * If flags is specified, + * If flags is set, * pg_convert is applied to * conditions with the specified flags. * + * If mode is set, + * the return value will be in the form of an array + * with PGSQL_NUM, an associative array + * with PGSQL_ASSOC (default) or both + * with PGSQL_BOTH. + * * By default pg_select passes raw values. Values * must be escaped or PGSQL_DML_ESCAPE option must be * specified. PGSQL_DML_ESCAPE quotes and escapes @@ -1235,9 +1242,15 @@ function pg_result_seek($result, int $row): void * PGSQL_DML_EXEC, * PGSQL_DML_ASYNC or * PGSQL_DML_STRING combined. If PGSQL_DML_STRING is part of the - * flags then query string is returned. When PGSQL_DML_NO_CONV + * flags then the query string is returned. When PGSQL_DML_NO_CONV * or PGSQL_DML_ESCAPE is set, it does not call pg_convert internally. - * @param int $mode + * @param int $mode Any number of PGSQL_ASSOC, + * PGSQL_NUM or + * PGSQL_BOTH + * If PGSQL_ASSOC is set the return value will be an associative array, + * with PGSQL_NUM the return value will be an array, and + * with PGSQL_BOTH the return value will be both an associative and + * numerically indexed array. * @return mixed Returns string if PGSQL_DML_STRING is passed * via flags, otherwise it returns an array on success. * @throws PgsqlException @@ -1254,6 +1267,24 @@ function pg_select($connection, string $table_name, array $conditions, int $flag } +/** + * + * + * @param \PgSql\Connection $connection An PgSql\Connection instance. + * @param int $size + * @throws PgsqlException + * + */ +function pg_set_chunked_rows_size(\PgSql\Connection $connection, int $size): void +{ + error_clear_last(); + $safeResult = \pg_set_chunked_rows_size($connection, $size); + if ($safeResult === false) { + throw PgsqlException::createFromPhpError(); + } +} + + /** * pg_socket returns a read only resource * corresponding to the socket underlying the given PostgreSQL connection. @@ -1295,13 +1326,18 @@ function pg_socket($connection) * The default connection is the last connection made by pg_connect * or pg_pconnect. * As of PHP 8.1.0, using the default connection is deprecated. + * @param int $trace_mode An optional trace mode with the following constants + * PGSQL_TRACE_SUPPRESS_TIMESTAMPS and + * PGSQL_TRACE_REGRESS_MODE * @throws PgsqlException * */ -function pg_trace(string $filename, string $mode = "w", $connection = null): void +function pg_trace(string $filename, string $mode = "w", $connection = null, int $trace_mode = 0): void { error_clear_last(); - if ($connection !== null) { + if ($trace_mode !== 0) { + $safeResult = \pg_trace($filename, $mode, $connection, $trace_mode); + } elseif ($connection !== null) { $safeResult = \pg_trace($filename, $mode, $connection); } else { $safeResult = \pg_trace($filename, $mode); @@ -1358,3 +1394,4 @@ function pg_update($connection, string $table_name, array $values, array $condit } return $safeResult; } + diff --git a/generated/posix.php b/generated/posix.php index ea50d848..7992f578 100644 --- a/generated/posix.php +++ b/generated/posix.php @@ -30,11 +30,37 @@ function posix_access(string $filename, int $flags = 0): void } +/** + * posix_eaccess checks the effective user's permission of a file + * + * @param string $filename The name of a file to be tested. + * @param int $flags A mask consisting of one or more of POSIX_F_OK, + * POSIX_R_OK, POSIX_W_OK and + * POSIX_X_OK. + * + * POSIX_R_OK, POSIX_W_OK and + * POSIX_X_OK request checking whether the file + * exists and has read, write and execute permissions, respectively. + * POSIX_F_OK just requests checking for the + * existence of the file. + * @throws PosixException + * + */ +function posix_eaccess(string $filename, int $flags = 0): void +{ + error_clear_last(); + $safeResult = \posix_eaccess($filename, $flags); + if ($safeResult === false) { + throw PosixException::createFromPhpError(); + } +} + + /** * Gets information about a group provided its id. * * @param int $group_id The group id. - * @return array The array elements returned are: + * @return array{name: string, passwd: string, gid: int, members: array} The array elements returned are: * * The group information array * @@ -98,7 +124,7 @@ function posix_getgrgid(int $group_id): array * Gets information about a group provided its name. * * @param string $name The name of the group - * @return array Returns an array on success. + * @return array{name: string, passwd: string, gid: int, members: array} Returns an array on success. * The array elements returned are: * * The group information array @@ -200,7 +226,7 @@ function posix_getlogin(): string * referenced by the given user ID. * * @param int $user_id The user identifier. - * @return array Returns an associative array with the following elements: + * @return array{name: string, passwd: string, uid: int, gid: int, gecos: string, dir: string, shell: string} Returns an associative array with the following elements: * * The user information array * @@ -298,6 +324,8 @@ function posix_getpwuid(int $user_id): array * An unprivileged process may only set its soft limit to a value * from 0 to the hard limit, and irreversibly lower its hard limit. * + * @param $resource If NULL all resource limits will be fetched. + * Otherwise, the only limits of the resource type provided will be returned. * @return array Returns an associative array of elements for each * limit that is defined. Each limit has a soft and a hard limit. * @@ -386,10 +414,14 @@ function posix_getpwuid(int $user_id): array * @throws PosixException * */ -function posix_getrlimit(): array +function posix_getrlimit($resource = null): array { error_clear_last(); - $safeResult = \posix_getrlimit(); + if ($resource !== null) { + $safeResult = \posix_getrlimit($resource); + } else { + $safeResult = \posix_getrlimit(); + } if ($safeResult === false) { throw PosixException::createFromPhpError(); } @@ -731,3 +763,4 @@ function posix_uname(): array } return $safeResult; } + diff --git a/generated/ps.php b/generated/ps.php index 6ead054b..2a754355 100644 --- a/generated/ps.php +++ b/generated/ps.php @@ -778,7 +778,7 @@ function ps_fill($psdoc): void * @throws PsException * */ -function ps_get_parameter($psdoc, string $name, float $modifier = null): string +function ps_get_parameter($psdoc, string $name, ?float $modifier = null): string { error_clear_last(); if ($modifier !== null) { @@ -925,7 +925,7 @@ function ps_new() * @throws PsException * */ -function ps_open_file($psdoc, string $filename = null): void +function ps_open_file($psdoc, ?string $filename = null): void { error_clear_last(); if ($filename !== null) { @@ -1810,3 +1810,4 @@ function ps_translate($psdoc, float $x, float $y): void throw PsException::createFromPhpError(); } } + diff --git a/generated/pspell.php b/generated/pspell.php index 7ef3d259..1234737f 100644 --- a/generated/pspell.php +++ b/generated/pspell.php @@ -57,50 +57,6 @@ function pspell_clear_session(int $dictionary): void } -/** - * Create a config used to open a dictionary. - * - * pspell_config_create has a very similar syntax to - * pspell_new. In fact, using - * pspell_config_create immediately followed by - * pspell_new_config will produce the exact same result. - * However, after creating a new config, you can also use - * pspell_config_* functions before calling - * pspell_new_config to take advantage of some - * advanced functionality. - * - * For more information and examples, check out inline manual pspell - * website:http://aspell.net/. - * - * @param string $language The language parameter is the language code which consists of the - * two letter ISO 639 language code and an optional two letter ISO - * 3166 country code after a dash or underscore. - * @param string $spelling The spelling parameter is the requested spelling for languages - * with more than one spelling such as English. Known values are - * 'american', 'british', and 'canadian'. - * @param string $jargon The jargon parameter contains extra information to distinguish - * two different words lists that have the same language and - * spelling parameters. - * @param string $encoding The encoding parameter is the encoding that words are expected to - * be in. Valid values are 'utf-8', 'iso8859-*', 'koi8-r', - * 'viscii', 'cp1252', 'machine unsigned 16', 'machine unsigned - * 32'. This parameter is largely untested, so be careful when - * using. - * @return int Returns an PSpell\Config instance on success. - * @throws PspellException - * - */ -function pspell_config_create(string $language, string $spelling = "", string $jargon = "", string $encoding = ""): int -{ - error_clear_last(); - $safeResult = \pspell_config_create($language, $spelling, $jargon, $encoding); - if ($safeResult === false) { - throw PspellException::createFromPhpError(); - } - return $safeResult; -} - - /** * This function is * currently not documented; only its argument list is available. @@ -499,3 +455,4 @@ function pspell_store_replacement(int $dictionary, string $misspelled, string $c throw PspellException::createFromPhpError(); } } + diff --git a/generated/readline.php b/generated/readline.php index d8b82181..d735dde2 100644 --- a/generated/readline.php +++ b/generated/readline.php @@ -4,66 +4,6 @@ use Safe\Exceptions\ReadlineException; -/** - * This function adds a line to the command line history. - * - * @param string $prompt The line to be added in the history. - * @throws ReadlineException - * - */ -function readline_add_history(string $prompt): void -{ - error_clear_last(); - $safeResult = \readline_add_history($prompt); - if ($safeResult === false) { - throw ReadlineException::createFromPhpError(); - } -} - - -/** - * Sets up a readline callback interface then prints - * prompt and immediately returns. - * Calling this function twice without removing the previous - * callback interface will automatically and conveniently overwrite the old - * interface. - * - * The callback feature is useful when combined with - * stream_select as it allows interleaving of IO and - * user input, unlike readline. - * - * @param string $prompt The prompt message. - * @param callable $callback The callback function takes one parameter; the - * user input returned. - * @throws ReadlineException - * - */ -function readline_callback_handler_install(string $prompt, callable $callback): void -{ - error_clear_last(); - $safeResult = \readline_callback_handler_install($prompt, $callback); - if ($safeResult === false) { - throw ReadlineException::createFromPhpError(); - } -} - - -/** - * This function clears the entire command line history. - * - * @throws ReadlineException - * - */ -function readline_clear_history(): void -{ - error_clear_last(); - $safeResult = \readline_clear_history(); - if ($safeResult === false) { - throw ReadlineException::createFromPhpError(); - } -} - - /** * This function registers a completion function. This is the same kind of * functionality you'd get if you hit your tab key while using Bash. @@ -90,7 +30,7 @@ function readline_completion_function(callable $callback): void * @throws ReadlineException * */ -function readline_read_history(string $filename = null): void +function readline_read_history(?string $filename = null): void { error_clear_last(); if ($filename !== null) { @@ -111,7 +51,7 @@ function readline_read_history(string $filename = null): void * @throws ReadlineException * */ -function readline_write_history(string $filename = null): void +function readline_write_history(?string $filename = null): void { error_clear_last(); if ($filename !== null) { @@ -123,3 +63,4 @@ function readline_write_history(string $filename = null): void throw ReadlineException::createFromPhpError(); } } + diff --git a/generated/rnp.php b/generated/rnp.php new file mode 100644 index 00000000..7ed04888 --- /dev/null +++ b/generated/rnp.php @@ -0,0 +1,610 @@ + - * ]]> - * - * See section 4.7 of the XML 1.0 - * spec for the definition of notation declarations. - * - * @param resource $parser A reference to the XML parser to set up notation declaration handler function. - * @param callable $handler handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - * - * The function named by handler must accept - * five parameters: - * - * handler - * XMLParserparser - * stringnotation_name - * stringbase - * stringsystem_id - * stringpublic_id - * - * - * - * - * parser - * - * - * - * The first parameter, parser, is a - * reference to the XML parser calling the handler. - * - * - * - * - * notation_name - * - * - * This is the notation's name, as per - * the notation format described above. - * - * - * - * - * - * base - * - * - * - * This is the base for resolving the system identifier - * (system_id) of the notation declaration. - * Currently this parameter will always be set to an empty string. - * - * - * - * - * system_id - * - * - * System identifier of the external notation declaration. - * - * - * - * - * - * public_id - * - * - * - * Public identifier of the external notation declaration. - * - * - * - * - * - * If a handler function is set to an empty string, or FALSE, the handler - * in question is disabled. - * @throws XmlException - * - */ -function xml_set_notation_decl_handler($parser, callable $handler): void -{ - error_clear_last(); - $safeResult = \xml_set_notation_decl_handler($parser, $handler); - if ($safeResult === false) { - throw XmlException::createFromPhpError(); - } -} - - -/** - * This function allows to use parser inside - * object. All callback functions could be set with - * xml_set_element_handler etc and assumed to be - * methods of object. - * - * @param resource $parser A reference to the XML parser to use inside the object. - * @param object $object The object where to use the XML parser. - * @throws XmlException - * - */ -function xml_set_object($parser, object $object): void -{ - error_clear_last(); - $safeResult = \xml_set_object($parser, $object); - if ($safeResult === false) { - throw XmlException::createFromPhpError(); - } -} - - -/** - * Sets the processing instruction (PI) handler function for the XML parser - * parser. - * - * A processing instruction has the following format: - * - * <?target - * data?> - * - * - * You can put PHP code into such a tag, but be aware of one limitation: in - * an XML PI, the PI end tag (?>) can not be quoted, - * so this character sequence should not appear in the PHP code you embed - * with PIs in XML documents.If it does, the rest of the PHP code, as well - * as the "real" PI end tag, will be treated as character data. - * - * @param resource $parser A reference to the XML parser to set up processing instruction (PI) handler function. - * @param callable $handler handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - * - * The function named by handler must accept - * three parameters: - * - * handler - * XMLParserparser - * stringtarget - * stringdata - * - * - * - * parser - * - * - * The first parameter, parser, is a - * reference to the XML parser calling the handler. - * - * - * - * - * target - * - * - * The second parameter, target, contains the PI - * target. - * - * - * - * - * data - * - * - * The third parameter, data, contains the PI - * data. - * - * - * - * - * - * If a handler function is set to an empty string, or FALSE, the handler - * in question is disabled. - * @throws XmlException - * - */ -function xml_set_processing_instruction_handler($parser, callable $handler): void -{ - error_clear_last(); - $safeResult = \xml_set_processing_instruction_handler($parser, $handler); - if ($safeResult === false) { - throw XmlException::createFromPhpError(); - } -} - - -/** - * Set a handler to be called when a namespace is declared. Namespace - * declarations occur inside start tags. But the namespace declaration start - * handler is called before the start tag handler for each namespace declared - * in that start tag. - * - * @param resource $parser A reference to the XML parser. - * @param callable $handler handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - * - * The function named by handler must accept - * three parameters, and should return an integer value. If the - * value returned from the handler is FALSE (which it will be if no - * value is returned), the XML parser will stop parsing and - * xml_get_error_code will return - * XML_ERROR_EXTERNAL_ENTITY_HANDLING. - * - * handler - * XMLParserparser - * stringprefix - * stringuri - * - * - * - * parser - * - * - * The first parameter, parser, is a - * reference to the XML parser calling the handler. - * - * - * - * - * prefix - * - * - * The prefix is a string used to reference the namespace within an XML object. - * - * - * - * - * uri - * - * - * Uniform Resource Identifier (URI) of namespace. - * - * - * - * - * - * If a handler function is set to an empty string, or FALSE, the handler - * in question is disabled. - * @throws XmlException - * - */ -function xml_set_start_namespace_decl_handler($parser, callable $handler): void -{ - error_clear_last(); - $safeResult = \xml_set_start_namespace_decl_handler($parser, $handler); - if ($safeResult === false) { - throw XmlException::createFromPhpError(); - } -} - - -/** - * Sets the unparsed entity declaration handler function for the XML parser - * parser. - * - * The handler will be called if the XML parser - * encounters an external entity declaration with an NDATA declaration, like - * the following: - * - * name {publicId | systemId} - * NDATA notationName - * ]]> - * - * - * See section 4.2.2 of - * the XML 1.0 spec for the definition of notation declared - * external entities. - * - * @param resource $parser A reference to the XML parser to set up unparsed entity declaration handler function. - * @param callable $handler handler is a string containing the name of a - * function that must exist when xml_parse is called - * for parser. - * - * The function named by handler must accept six - * parameters: - * - * handler - * XMLParserparser - * stringentity_name - * stringbase - * stringsystem_id - * stringpublic_id - * stringnotation_name - * - * - * - * parser - * - * - * The first parameter, parser, is a - * reference to the XML parser calling the - * handler. - * - * - * - * - * entity_name - * - * - * The name of the entity that is about to be defined. - * - * - * - * - * base - * - * - * This is the base for resolving the system identifier - * (systemId) of the external entity.Currently - * this parameter will always be set to an empty string. - * - * - * - * - * system_id - * - * - * System identifier for the external entity. - * - * - * - * - * public_id - * - * - * Public identifier for the external entity. - * - * - * - * - * notation_name - * - * - * Name of the notation of this entity (see - * xml_set_notation_decl_handler). - * - * - * - * - * - * If a handler function is set to an empty string, or FALSE, the handler - * in question is disabled. - * @throws XmlException - * - */ -function xml_set_unparsed_entity_decl_handler($parser, callable $handler): void -{ - error_clear_last(); - $safeResult = \xml_set_unparsed_entity_decl_handler($parser, $handler); - if ($safeResult === false) { - throw XmlException::createFromPhpError(); - } -} diff --git a/generated/xmlrpc.php b/generated/xmlrpc.php index 3a1f5362..38ac3766 100644 --- a/generated/xmlrpc.php +++ b/generated/xmlrpc.php @@ -20,3 +20,4 @@ function xmlrpc_set_type(&$value, string $type): void throw XmlrpcException::createFromPhpError(); } } + diff --git a/generated/yaml.php b/generated/yaml.php index ba518e9e..2a3c537d 100644 --- a/generated/yaml.php +++ b/generated/yaml.php @@ -16,14 +16,14 @@ * tag => callable mappings. See * parse callbacks for more * details. - * @return mixed Returns the value encoded in input in appropriate + * @return mixed Returns the value encoded in filename in appropriate * PHP type. If pos is -1 an * array will be returned with one entry for each document found * in the stream. * @throws YamlException * */ -function yaml_parse_file(string $filename, int $pos = 0, ?int &$ndocs = null, array $callbacks = null) +function yaml_parse_file(string $filename, int $pos = 0, ?int &$ndocs = null, ?array $callbacks = null) { error_clear_last(); if ($callbacks !== null) { @@ -52,15 +52,15 @@ function yaml_parse_file(string $filename, int $pos = 0, ?int &$ndocs = null, ar * number of documents found in stream. * @param array $callbacks Content handlers for YAML nodes. Associative array of YAML * tag => callable mappings. See - * parse callbacks for more - * @return mixed Returns the value encoded in input in appropriate + * parse callbacks for more details. + * @return mixed Returns the value encoded in url in appropriate * PHP type. If pos is * -1 an array will be returned with one entry * for each document found in the stream. * @throws YamlException * */ -function yaml_parse_url(string $url, int $pos = 0, ?int &$ndocs = null, array $callbacks = null) +function yaml_parse_url(string $url, int $pos = 0, ?int &$ndocs = null, ?array $callbacks = null) { error_clear_last(); if ($callbacks !== null) { @@ -94,7 +94,7 @@ function yaml_parse_url(string $url, int $pos = 0, ?int &$ndocs = null, array $c * @throws YamlException * */ -function yaml_parse(string $input, int $pos = 0, ?int &$ndocs = null, array $callbacks = null) +function yaml_parse(string $input, int $pos = 0, ?int &$ndocs = null, ?array $callbacks = null) { error_clear_last(); if ($callbacks !== null) { @@ -107,3 +107,4 @@ function yaml_parse(string $input, int $pos = 0, ?int &$ndocs = null, array $cal } return $safeResult; } + diff --git a/generated/yaz.php b/generated/yaz.php index 4730dd0b..ef2136c7 100644 --- a/generated/yaz.php +++ b/generated/yaz.php @@ -427,7 +427,7 @@ function yaz_search($id, string $type, string $query): void * @throws YazException * */ -function yaz_wait(array &$options = null) +function yaz_wait(?array &$options = null) { error_clear_last(); $safeResult = \yaz_wait($options); @@ -436,3 +436,4 @@ function yaz_wait(array &$options = null) } return $safeResult; } + diff --git a/generated/zip.php b/generated/zip.php index d1a628eb..7ce2263b 100644 --- a/generated/zip.php +++ b/generated/zip.php @@ -142,3 +142,4 @@ function zip_entry_read($zip_entry, int $len = 1024): string } return $safeResult; } + diff --git a/generated/zlib.php b/generated/zlib.php index daa555ab..0c01cf1a 100644 --- a/generated/zlib.php +++ b/generated/zlib.php @@ -298,7 +298,7 @@ function gzfile(string $filename, int $use_include_path = 0): array * @throws ZlibException * */ -function gzgets($stream, int $length = null): string +function gzgets($stream, ?int $length = null): string { error_clear_last(); if ($length !== null) { @@ -327,7 +327,7 @@ function gzgets($stream, int $length = null): string * @throws ZlibException * */ -function gzgetss($zp, int $length, string $allowable_tags = null): string +function gzgetss($zp, int $length, ?string $allowable_tags = null): string { error_clear_last(); if ($allowable_tags !== null) { @@ -403,28 +403,6 @@ function gzopen(string $filename, string $mode, int $use_include_path = 0) } -/** - * Reads to EOF on the given gz-file pointer from the current position and - * writes the (uncompressed) results to standard output. - * - * @param resource $stream The gz-file pointer. It must be valid, and must point to a file - * successfully opened by gzopen. - * @return int The number of uncompressed characters read from gz - * and passed through to the input. - * @throws ZlibException - * - */ -function gzpassthru($stream): int -{ - error_clear_last(); - $safeResult = \gzpassthru($stream); - if ($safeResult === false) { - throw ZlibException::createFromPhpError(); - } - return $safeResult; -} - - /** * gzread reads up to length bytes * from the given gz-file pointer. Reading stops when @@ -508,7 +486,7 @@ function gzuncompress(string $data, int $max_length = 0): string * @throws ZlibException * */ -function gzwrite($stream, string $data, int $length = null): int +function gzwrite($stream, string $data, ?int $length = null): int { error_clear_last(); if ($length !== null) { @@ -542,25 +520,6 @@ function inflate_get_read_len($context): int } -/** - * Usually returns either ZLIB_OK or ZLIB_STREAM_END. - * - * @param resource $context - * @return int Returns decompression status. - * @throws ZlibException - * - */ -function inflate_get_status($context): int -{ - error_clear_last(); - $safeResult = \inflate_get_status($context); - if ($safeResult === false) { - throw ZlibException::createFromPhpError(); - } - return $safeResult; -} - - /** * Incrementally inflates encoded data in the specified context. * @@ -719,3 +678,4 @@ function zlib_decode(string $data, int $max_length = 0): string } return $safeResult; } + diff --git a/rector-migrate.php b/rector-migrate.php index 8bd9d7bd..8d3758b4 100644 --- a/rector-migrate.php +++ b/rector-migrate.php @@ -11,8 +11,6 @@ RenameFunctionRector::class,[ 'apache_getenv' => 'Safe\apache_getenv', 'apache_get_version' => 'Safe\apache_get_version', 'apache_lookup_uri' => 'Safe\apache_lookup_uri', - 'apache_request_headers' => 'Safe\apache_request_headers', - 'apache_response_headers' => 'Safe\apache_response_headers', 'apache_setenv' => 'Safe\apache_setenv', 'apcu_cache_info' => 'Safe\apcu_cache_info', 'apcu_cas' => 'Safe\apcu_cas', @@ -21,8 +19,7 @@ 'apcu_inc' => 'Safe\apcu_inc', 'apcu_sma_info' => 'Safe\apcu_sma_info', 'apc_fetch' => 'Safe\apc_fetch', - 'array_walk_recursive' => 'Safe\array_walk_recursive', - 'assert_options' => 'Safe\assert_options', + 'array_all' => 'Safe\array_all', 'base64_decode' => 'Safe\base64_decode', 'bindtextdomain' => 'Safe\bindtextdomain', 'bzclose' => 'Safe\bzclose', @@ -39,7 +36,6 @@ 'class_parents' => 'Safe\class_parents', 'class_uses' => 'Safe\class_uses', 'cli_set_process_title' => 'Safe\cli_set_process_title', - 'closelog' => 'Safe\closelog', 'com_create_guid' => 'Safe\com_create_guid', 'com_event_sink' => 'Safe\com_event_sink', 'com_load_typelib' => 'Safe\com_load_typelib', @@ -107,19 +103,16 @@ 'curl_getinfo' => 'Safe\curl_getinfo', 'curl_init' => 'Safe\curl_init', 'curl_multi_info_read' => 'Safe\curl_multi_info_read', - 'curl_multi_init' => 'Safe\curl_multi_init', 'curl_multi_setopt' => 'Safe\curl_multi_setopt', 'curl_setopt' => 'Safe\curl_setopt', - 'curl_share_errno' => 'Safe\curl_share_errno', 'curl_share_setopt' => 'Safe\curl_share_setopt', 'curl_unescape' => 'Safe\curl_unescape', 'curl_upkeep' => 'Safe\curl_upkeep', - 'date' => 'Safe\date', - 'date_parse' => 'Safe\date_parse', + 'date_create' => 'Safe\date_create', + 'date_create_immutable' => 'Safe\date_create_immutable', 'date_parse_from_format' => 'Safe\date_parse_from_format', 'date_sunrise' => 'Safe\date_sunrise', 'date_sunset' => 'Safe\date_sunset', - 'date_sun_info' => 'Safe\date_sun_info', 'db2_autocommit' => 'Safe\db2_autocommit', 'db2_bind_param' => 'Safe\db2_bind_param', 'db2_client_info' => 'Safe\db2_client_info', @@ -129,6 +122,7 @@ 'db2_free_result' => 'Safe\db2_free_result', 'db2_free_stmt' => 'Safe\db2_free_stmt', 'db2_get_option' => 'Safe\db2_get_option', + 'db2_num_rows' => 'Safe\db2_num_rows', 'db2_pclose' => 'Safe\db2_pclose', 'db2_rollback' => 'Safe\db2_rollback', 'db2_server_info' => 'Safe\db2_server_info', @@ -202,6 +196,7 @@ 'finfo_open' => 'Safe\finfo_open', 'flock' => 'Safe\flock', 'fopen' => 'Safe\fopen', + 'fpm_get_status' => 'Safe\fpm_get_status', 'fputcsv' => 'Safe\fputcsv', 'fread' => 'Safe\fread', 'fsockopen' => 'Safe\fsockopen', @@ -221,6 +216,7 @@ 'ftp_login' => 'Safe\ftp_login', 'ftp_mkdir' => 'Safe\ftp_mkdir', 'ftp_mlsd' => 'Safe\ftp_mlsd', + 'ftp_nb_get' => 'Safe\ftp_nb_get', 'ftp_nb_put' => 'Safe\ftp_nb_put', 'ftp_nlist' => 'Safe\ftp_nlist', 'ftp_pasv' => 'Safe\ftp_pasv', @@ -234,7 +230,6 @@ 'ftp_systype' => 'Safe\ftp_systype', 'ftruncate' => 'Safe\ftruncate', 'fwrite' => 'Safe\fwrite', - 'getallheaders' => 'Safe\getallheaders', 'getcwd' => 'Safe\getcwd', 'gethostname' => 'Safe\gethostname', 'getimagesize' => 'Safe\getimagesize', @@ -252,8 +247,6 @@ 'get_include_path' => 'Safe\get_include_path', 'get_meta_tags' => 'Safe\get_meta_tags', 'glob' => 'Safe\glob', - 'gmmktime' => 'Safe\gmmktime', - 'gmp_random_seed' => 'Safe\gmp_random_seed', 'gmstrftime' => 'Safe\gmstrftime', 'gnupg_adddecryptkey' => 'Safe\gnupg_adddecryptkey', 'gnupg_addencryptkey' => 'Safe\gnupg_addencryptkey', @@ -274,17 +267,14 @@ 'gzgetss' => 'Safe\gzgetss', 'gzinflate' => 'Safe\gzinflate', 'gzopen' => 'Safe\gzopen', - 'gzpassthru' => 'Safe\gzpassthru', 'gzread' => 'Safe\gzread', 'gzrewind' => 'Safe\gzrewind', 'gzuncompress' => 'Safe\gzuncompress', 'gzwrite' => 'Safe\gzwrite', - 'hash_hkdf' => 'Safe\hash_hkdf', 'hash_update_file' => 'Safe\hash_update_file', 'header_register_callback' => 'Safe\header_register_callback', 'hex2bin' => 'Safe\hex2bin', 'highlight_file' => 'Safe\highlight_file', - 'highlight_string' => 'Safe\highlight_string', 'hrtime' => 'Safe\hrtime', 'ibase_add_user' => 'Safe\ibase_add_user', 'ibase_backup' => 'Safe\ibase_backup', @@ -389,8 +379,6 @@ 'imagesettile' => 'Safe\imagesettile', 'imagestring' => 'Safe\imagestring', 'imagestringup' => 'Safe\imagestringup', - 'imagesx' => 'Safe\imagesx', - 'imagesy' => 'Safe\imagesy', 'imagetruecolortopalette' => 'Safe\imagetruecolortopalette', 'imagettfbbox' => 'Safe\imagettfbbox', 'imagettftext' => 'Safe\imagettftext', @@ -405,8 +393,6 @@ 'imap_body' => 'Safe\imap_body', 'imap_bodystruct' => 'Safe\imap_bodystruct', 'imap_check' => 'Safe\imap_check', - 'imap_clearflag_full' => 'Safe\imap_clearflag_full', - 'imap_close' => 'Safe\imap_close', 'imap_createmailbox' => 'Safe\imap_createmailbox', 'imap_deletemailbox' => 'Safe\imap_deletemailbox', 'imap_fetchbody' => 'Safe\imap_fetchbody', @@ -414,7 +400,6 @@ 'imap_fetchmime' => 'Safe\imap_fetchmime', 'imap_fetchstructure' => 'Safe\imap_fetchstructure', 'imap_fetch_overview' => 'Safe\imap_fetch_overview', - 'imap_gc' => 'Safe\imap_gc', 'imap_getacl' => 'Safe\imap_getacl', 'imap_getmailboxes' => 'Safe\imap_getmailboxes', 'imap_getsubscribed' => 'Safe\imap_getsubscribed', @@ -423,7 +408,6 @@ 'imap_listscan' => 'Safe\imap_listscan', 'imap_lsub' => 'Safe\imap_lsub', 'imap_mail' => 'Safe\imap_mail', - 'imap_mailboxmsginfo' => 'Safe\imap_mailboxmsginfo', 'imap_mail_compose' => 'Safe\imap_mail_compose', 'imap_mail_copy' => 'Safe\imap_mail_copy', 'imap_mail_move' => 'Safe\imap_mail_move', @@ -436,23 +420,21 @@ 'imap_rfc822_write_address' => 'Safe\imap_rfc822_write_address', 'imap_savebody' => 'Safe\imap_savebody', 'imap_setacl' => 'Safe\imap_setacl', - 'imap_setflag_full' => 'Safe\imap_setflag_full', 'imap_set_quota' => 'Safe\imap_set_quota', 'imap_sort' => 'Safe\imap_sort', 'imap_status' => 'Safe\imap_status', 'imap_subscribe' => 'Safe\imap_subscribe', 'imap_thread' => 'Safe\imap_thread', 'imap_timeout' => 'Safe\imap_timeout', - 'imap_undelete' => 'Safe\imap_undelete', 'imap_unsubscribe' => 'Safe\imap_unsubscribe', 'imap_utf8_to_mutf7' => 'Safe\imap_utf8_to_mutf7', 'inet_ntop' => 'Safe\inet_ntop', 'inflate_add' => 'Safe\inflate_add', 'inflate_get_read_len' => 'Safe\inflate_get_read_len', - 'inflate_get_status' => 'Safe\inflate_get_status', 'inflate_init' => 'Safe\inflate_init', 'ini_get' => 'Safe\ini_get', 'ini_set' => 'Safe\ini_set', + 'inotify_add_watch' => 'Safe\inotify_add_watch', 'inotify_init' => 'Safe\inotify_init', 'inotify_rm_watch' => 'Safe\inotify_rm_watch', 'iptcembed' => 'Safe\iptcembed', @@ -477,7 +459,6 @@ 'ldap_first_attribute' => 'Safe\ldap_first_attribute', 'ldap_first_entry' => 'Safe\ldap_first_entry', 'ldap_free_result' => 'Safe\ldap_free_result', - 'ldap_get_attributes' => 'Safe\ldap_get_attributes', 'ldap_get_dn' => 'Safe\ldap_get_dn', 'ldap_get_entries' => 'Safe\ldap_get_entries', 'ldap_get_option' => 'Safe\ldap_get_option', @@ -497,7 +478,6 @@ 'libxml_get_last_error' => 'Safe\libxml_get_last_error', 'libxml_set_external_entity_loader' => 'Safe\libxml_set_external_entity_loader', 'link' => 'Safe\link', - 'long2ip' => 'Safe\long2ip', 'lstat' => 'Safe\lstat', 'lzf_compress' => 'Safe\lzf_compress', 'lzf_decompress' => 'Safe\lzf_decompress', @@ -509,7 +489,6 @@ 'mb_chr' => 'Safe\mb_chr', 'mb_convert_encoding' => 'Safe\mb_convert_encoding', 'mb_detect_order' => 'Safe\mb_detect_order', - 'mb_encoding_aliases' => 'Safe\mb_encoding_aliases', 'mb_eregi_replace' => 'Safe\mb_eregi_replace', 'mb_ereg_replace' => 'Safe\mb_ereg_replace', 'mb_ereg_replace_callback' => 'Safe\mb_ereg_replace_callback', @@ -571,6 +550,8 @@ 'ob_end_clean' => 'Safe\ob_end_clean', 'ob_end_flush' => 'Safe\ob_end_flush', 'ob_flush' => 'Safe\ob_flush', + 'ob_get_clean' => 'Safe\ob_get_clean', + 'ob_get_flush' => 'Safe\ob_get_flush', 'ob_start' => 'Safe\ob_start', 'oci_bind_array_by_name' => 'Safe\oci_bind_array_by_name', 'oci_bind_by_name' => 'Safe\oci_bind_by_name', @@ -610,9 +591,6 @@ 'oci_statement_type' => 'Safe\oci_statement_type', 'oci_unregister_taf_callback' => 'Safe\oci_unregister_taf_callback', 'odbc_autocommit' => 'Safe\odbc_autocommit', - 'odbc_binmode' => 'Safe\odbc_binmode', - 'odbc_columnprivileges' => 'Safe\odbc_columnprivileges', - 'odbc_columns' => 'Safe\odbc_columns', 'odbc_commit' => 'Safe\odbc_commit', 'odbc_connect' => 'Safe\odbc_connect', 'odbc_cursor' => 'Safe\odbc_cursor', @@ -625,26 +603,17 @@ 'odbc_field_num' => 'Safe\odbc_field_num', 'odbc_field_scale' => 'Safe\odbc_field_scale', 'odbc_field_type' => 'Safe\odbc_field_type', - 'odbc_foreignkeys' => 'Safe\odbc_foreignkeys', - 'odbc_gettypeinfo' => 'Safe\odbc_gettypeinfo', - 'odbc_longreadlen' => 'Safe\odbc_longreadlen', 'odbc_pconnect' => 'Safe\odbc_pconnect', 'odbc_prepare' => 'Safe\odbc_prepare', - 'odbc_primarykeys' => 'Safe\odbc_primarykeys', - 'odbc_procedurecolumns' => 'Safe\odbc_procedurecolumns', 'odbc_procedures' => 'Safe\odbc_procedures', 'odbc_result' => 'Safe\odbc_result', 'odbc_result_all' => 'Safe\odbc_result_all', 'odbc_rollback' => 'Safe\odbc_rollback', 'odbc_setoption' => 'Safe\odbc_setoption', - 'odbc_specialcolumns' => 'Safe\odbc_specialcolumns', - 'odbc_statistics' => 'Safe\odbc_statistics', - 'odbc_tableprivileges' => 'Safe\odbc_tableprivileges', 'odbc_tables' => 'Safe\odbc_tables', 'opcache_compile_file' => 'Safe\opcache_compile_file', 'opcache_get_status' => 'Safe\opcache_get_status', 'opendir' => 'Safe\opendir', - 'openlog' => 'Safe\openlog', 'openssl_cipher_iv_length' => 'Safe\openssl_cipher_iv_length', 'openssl_cipher_key_length' => 'Safe\openssl_cipher_key_length', 'openssl_cms_decrypt' => 'Safe\openssl_cms_decrypt', @@ -696,7 +665,6 @@ 'openssl_x509_read' => 'Safe\openssl_x509_read', 'output_add_rewrite_var' => 'Safe\output_add_rewrite_var', 'output_reset_rewrite_vars' => 'Safe\output_reset_rewrite_vars', - 'pack' => 'Safe\pack', 'parse_ini_file' => 'Safe\parse_ini_file', 'parse_ini_string' => 'Safe\parse_ini_string', 'parse_url' => 'Safe\parse_url', @@ -744,14 +712,14 @@ 'pg_result_error_field' => 'Safe\pg_result_error_field', 'pg_result_seek' => 'Safe\pg_result_seek', 'pg_select' => 'Safe\pg_select', + 'pg_set_chunked_rows_size' => 'Safe\pg_set_chunked_rows_size', 'pg_socket' => 'Safe\pg_socket', 'pg_trace' => 'Safe\pg_trace', 'pg_update' => 'Safe\pg_update', - 'phpcredits' => 'Safe\phpcredits', - 'phpinfo' => 'Safe\phpinfo', 'php_sapi_name' => 'Safe\php_sapi_name', 'png2wbmp' => 'Safe\png2wbmp', 'posix_access' => 'Safe\posix_access', + 'posix_eaccess' => 'Safe\posix_eaccess', 'posix_getgrgid' => 'Safe\posix_getgrgid', 'posix_getgrnam' => 'Safe\posix_getgrnam', 'posix_getgroups' => 'Safe\posix_getgroups', @@ -780,7 +748,6 @@ 'pspell_add_to_personal' => 'Safe\pspell_add_to_personal', 'pspell_add_to_session' => 'Safe\pspell_add_to_session', 'pspell_clear_session' => 'Safe\pspell_clear_session', - 'pspell_config_create' => 'Safe\pspell_config_create', 'pspell_config_data_dir' => 'Safe\pspell_config_data_dir', 'pspell_config_dict_dir' => 'Safe\pspell_config_dict_dir', 'pspell_config_ignore' => 'Safe\pspell_config_ignore', @@ -862,9 +829,6 @@ 'putenv' => 'Safe\putenv', 'readfile' => 'Safe\readfile', 'readgzfile' => 'Safe\readgzfile', - 'readline_add_history' => 'Safe\readline_add_history', - 'readline_callback_handler_install' => 'Safe\readline_callback_handler_install', - 'readline_clear_history' => 'Safe\readline_clear_history', 'readline_completion_function' => 'Safe\readline_completion_function', 'readline_read_history' => 'Safe\readline_read_history', 'readline_write_history' => 'Safe\readline_write_history', @@ -874,6 +838,33 @@ 'rename' => 'Safe\rename', 'rewind' => 'Safe\rewind', 'rmdir' => 'Safe\rmdir', + 'rnp_decrypt' => 'Safe\rnp_decrypt', + 'rnp_dump_packets' => 'Safe\rnp_dump_packets', + 'rnp_dump_packets_to_json' => 'Safe\rnp_dump_packets_to_json', + 'rnp_ffi_create' => 'Safe\rnp_ffi_create', + 'rnp_ffi_set_pass_provider' => 'Safe\rnp_ffi_set_pass_provider', + 'rnp_import_keys' => 'Safe\rnp_import_keys', + 'rnp_import_signatures' => 'Safe\rnp_import_signatures', + 'rnp_key_export' => 'Safe\rnp_key_export', + 'rnp_key_export_autocrypt' => 'Safe\rnp_key_export_autocrypt', + 'rnp_key_export_revocation' => 'Safe\rnp_key_export_revocation', + 'rnp_key_get_info' => 'Safe\rnp_key_get_info', + 'rnp_key_remove' => 'Safe\rnp_key_remove', + 'rnp_key_revoke' => 'Safe\rnp_key_revoke', + 'rnp_list_keys' => 'Safe\rnp_list_keys', + 'rnp_load_keys' => 'Safe\rnp_load_keys', + 'rnp_load_keys_from_path' => 'Safe\rnp_load_keys_from_path', + 'rnp_locate_key' => 'Safe\rnp_locate_key', + 'rnp_op_encrypt' => 'Safe\rnp_op_encrypt', + 'rnp_op_generate_key' => 'Safe\rnp_op_generate_key', + 'rnp_op_sign' => 'Safe\rnp_op_sign', + 'rnp_op_sign_cleartext' => 'Safe\rnp_op_sign_cleartext', + 'rnp_op_sign_detached' => 'Safe\rnp_op_sign_detached', + 'rnp_op_verify' => 'Safe\rnp_op_verify', + 'rnp_op_verify_detached' => 'Safe\rnp_op_verify_detached', + 'rnp_save_keys' => 'Safe\rnp_save_keys', + 'rnp_save_keys_to_path' => 'Safe\rnp_save_keys_to_path', + 'rnp_supported_features' => 'Safe\rnp_supported_features', 'rpmaddtag' => 'Safe\rpmaddtag', 'rrd_create' => 'Safe\rrd_create', 'rrd_first' => 'Safe\rrd_first', @@ -919,7 +910,6 @@ 'shm_put_var' => 'Safe\shm_put_var', 'shm_remove' => 'Safe\shm_remove', 'shm_remove_var' => 'Safe\shm_remove_var', - 'shuffle' => 'Safe\shuffle', 'simplexml_import_dom' => 'Safe\simplexml_import_dom', 'simplexml_load_file' => 'Safe\simplexml_load_file', 'simplexml_load_string' => 'Safe\simplexml_load_string', @@ -927,6 +917,7 @@ 'socket_addrinfo_bind' => 'Safe\socket_addrinfo_bind', 'socket_addrinfo_connect' => 'Safe\socket_addrinfo_connect', 'socket_addrinfo_lookup' => 'Safe\socket_addrinfo_lookup', + 'socket_atmark' => 'Safe\socket_atmark', 'socket_bind' => 'Safe\socket_bind', 'socket_connect' => 'Safe\socket_connect', 'socket_create' => 'Safe\socket_create', @@ -950,6 +941,8 @@ 'socket_wsaprotocol_info_export' => 'Safe\socket_wsaprotocol_info_export', 'socket_wsaprotocol_info_import' => 'Safe\socket_wsaprotocol_info_import', 'socket_wsaprotocol_info_release' => 'Safe\socket_wsaprotocol_info_release', + 'sodium_crypto_aead_aegis128l_decrypt' => 'Safe\sodium_crypto_aead_aegis128l_decrypt', + 'sodium_crypto_aead_aegis256_decrypt' => 'Safe\sodium_crypto_aead_aegis256_decrypt', 'sodium_crypto_aead_aes256gcm_decrypt' => 'Safe\sodium_crypto_aead_aes256gcm_decrypt', 'sodium_crypto_aead_chacha20poly1305_decrypt' => 'Safe\sodium_crypto_aead_chacha20poly1305_decrypt', 'sodium_crypto_aead_chacha20poly1305_encrypt' => 'Safe\sodium_crypto_aead_chacha20poly1305_encrypt', @@ -960,7 +953,6 @@ 'sodium_crypto_auth_verify' => 'Safe\sodium_crypto_auth_verify', 'sodium_crypto_box_open' => 'Safe\sodium_crypto_box_open', 'sodium_crypto_box_seal_open' => 'Safe\sodium_crypto_box_seal_open', - 'sodium_crypto_generichash_update' => 'Safe\sodium_crypto_generichash_update', 'sodium_crypto_secretbox_open' => 'Safe\sodium_crypto_secretbox_open', 'sodium_crypto_sign_open' => 'Safe\sodium_crypto_sign_open', 'sodium_crypto_sign_verify_detached' => 'Safe\sodium_crypto_sign_verify_detached', @@ -1009,6 +1001,7 @@ 'ssh2_sftp_symlink' => 'Safe\ssh2_sftp_symlink', 'ssh2_sftp_unlink' => 'Safe\ssh2_sftp_unlink', 'ssh2_shell' => 'Safe\ssh2_shell', + 'stream_context_set_options' => 'Safe\stream_context_set_options', 'stream_context_set_params' => 'Safe\stream_context_set_params', 'stream_copy_to_stream' => 'Safe\stream_copy_to_stream', 'stream_filter_append' => 'Safe\stream_filter_append', @@ -1044,7 +1037,6 @@ 'swoole_event_del' => 'Safe\swoole_event_del', 'swoole_event_write' => 'Safe\swoole_event_write', 'symlink' => 'Safe\symlink', - 'syslog' => 'Safe\syslog', 'system' => 'Safe\system', 'tempnam' => 'Safe\tempnam', 'timezone_name_from_abbr' => 'Safe\timezone_name_from_abbr', @@ -1071,16 +1063,7 @@ 'xdiff_string_patch_binary' => 'Safe\xdiff_string_patch_binary', 'xmlrpc_set_type' => 'Safe\xmlrpc_set_type', 'xml_parser_free' => 'Safe\xml_parser_free', - 'xml_set_character_data_handler' => 'Safe\xml_set_character_data_handler', - 'xml_set_default_handler' => 'Safe\xml_set_default_handler', - 'xml_set_element_handler' => 'Safe\xml_set_element_handler', - 'xml_set_end_namespace_decl_handler' => 'Safe\xml_set_end_namespace_decl_handler', - 'xml_set_external_entity_ref_handler' => 'Safe\xml_set_external_entity_ref_handler', - 'xml_set_notation_decl_handler' => 'Safe\xml_set_notation_decl_handler', - 'xml_set_object' => 'Safe\xml_set_object', - 'xml_set_processing_instruction_handler' => 'Safe\xml_set_processing_instruction_handler', - 'xml_set_start_namespace_decl_handler' => 'Safe\xml_set_start_namespace_decl_handler', - 'xml_set_unparsed_entity_decl_handler' => 'Safe\xml_set_unparsed_entity_decl_handler', + 'xml_parser_set_option' => 'Safe\xml_parser_set_option', 'yaml_parse' => 'Safe\yaml_parse', 'yaml_parse_file' => 'Safe\yaml_parse_file', 'yaml_parse_url' => 'Safe\yaml_parse_url',