Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions generated/filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -1131,13 +1131,13 @@ function readlink(string $path): string
* @param string $path The path being checked.
*
*
* Whilst a path must be supplied, the value can be blank or NULL
* In these cases, the value is interpreted as the current directory.
* Whilst a path must be supplied, the value can be an empty string.
* In this case, the value is interpreted as the current directory.
*
*
*
* Whilst a path must be supplied, the value can be blank or NULL
* In these cases, the value is interpreted as the current directory.
* Whilst a path must be supplied, the value can be an empty string.
* In this case, the value is interpreted as the current directory.
* @return string Returns the canonicalized absolute pathname on success. The resulting path
* will have no symbolic link, /./ or /../ components. Trailing delimiters,
* such as \ and /, are also removed.
Expand Down
2 changes: 2 additions & 0 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
'forward_static_call',
'func_get_arg',
'register_tick_function',
'gmp_binomial',
'gmp_export',
'gmp_import',
'gmp_random_seed',
Expand Down Expand Up @@ -580,6 +581,7 @@
'oci_statement_type',
'oci_unregister_taf_callback',
'opcache_compile_file',
'opcache_get_status',
'openssl_cipher_iv_length',
'openssl_csr_export_to_file',
'openssl_csr_export',
Expand Down
20 changes: 20 additions & 0 deletions generated/gmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@

use Safe\Exceptions\GmpException;

/**
* Calculates the binomial coefficient C(n, k).
*
* @param mixed $n Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.
* @param int $k
* @return \\GMP Returns the binomial coefficient C(n, k), .
* @throws GmpException
*
*/
function gmp_binomial($n, int $k): \GMP
{
error_clear_last();
$result = \gmp_binomial($n, $k);
if ($result === false) {
throw GmpException::createFromPhpError();
}
return $result;
}


/**
* Export a GMP number to a binary string
*
Expand Down
3 changes: 2 additions & 1 deletion generated/json.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
* JSON_FORCE_OBJECT,
* JSON_PRESERVE_ZERO_FRACTION,
* JSON_UNESCAPED_UNICODE,
* JSON_PARTIAL_OUTPUT_ON_ERROR. The behaviour of these
* JSON_PARTIAL_OUTPUT_ON_ERROR,
* JSON_THROW_ON_ERROR. The behaviour of these
* constants is described on the
* JSON constants page.
* @param int $depth Set the maximum depth. Must be greater than zero.
Expand Down
20 changes: 20 additions & 0 deletions generated/opcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,23 @@ function opcache_compile_file(string $file): void
throw OpcacheException::createFromPhpError();
}
}


/**
* This function returns state information about the cache instance
*
* @param bool $get_scripts Include script specific state information
* @return array Returns an array of information, optionally containing script specific state information,
* .
* @throws OpcacheException
*
*/
function opcache_get_status(bool $get_scripts = true): array
{
error_clear_last();
$result = \opcache_get_status($get_scripts);
if ($result === false) {
throw OpcacheException::createFromPhpError();
}
return $result;
}
3 changes: 2 additions & 1 deletion generated/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
*
*
*
* PASSWORD_ARGON2I - Use the Argon2 hashing algorithm to create the hash.
* PASSWORD_ARGON2I - Use the Argon2i hashing algorithm to create the hash.
* This algorithm is only available if PHP has been compiled with Argon2i support.
*
*
*
Expand Down
2 changes: 2 additions & 0 deletions rector-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ services:
forward_static_call: 'Safe\forward_static_call'
func_get_arg: 'Safe\func_get_arg'
register_tick_function: 'Safe\register_tick_function'
gmp_binomial: 'Safe\gmp_binomial'
gmp_export: 'Safe\gmp_export'
gmp_import: 'Safe\gmp_import'
gmp_random_seed: 'Safe\gmp_random_seed'
Expand Down Expand Up @@ -581,6 +582,7 @@ services:
oci_statement_type: 'Safe\oci_statement_type'
oci_unregister_taf_callback: 'Safe\oci_unregister_taf_callback'
opcache_compile_file: 'Safe\opcache_compile_file'
opcache_get_status: 'Safe\opcache_get_status'
openssl_cipher_iv_length: 'Safe\openssl_cipher_iv_length'
openssl_csr_export_to_file: 'Safe\openssl_csr_export_to_file'
openssl_csr_export: 'Safe\openssl_csr_export'
Expand Down