Skip to content

Commit 7a9822b

Browse files
committed
Updating code according to new SVN PHPDoc
1 parent 56fcae8 commit 7a9822b

File tree

7 files changed

+52
-6
lines changed

7 files changed

+52
-6
lines changed

generated/filesystem.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,13 +1131,13 @@ function readlink(string $path): string
11311131
* @param string $path The path being checked.
11321132
*
11331133
*
1134-
* Whilst a path must be supplied, the value can be blank or NULL
1135-
* In these cases, the value is interpreted as the current directory.
1134+
* Whilst a path must be supplied, the value can be an empty string.
1135+
* In this case, the value is interpreted as the current directory.
11361136
*
11371137
*
11381138
*
1139-
* Whilst a path must be supplied, the value can be blank or NULL
1140-
* In these cases, the value is interpreted as the current directory.
1139+
* Whilst a path must be supplied, the value can be an empty string.
1140+
* In this case, the value is interpreted as the current directory.
11411141
* @return string Returns the canonicalized absolute pathname on success. The resulting path
11421142
* will have no symbolic link, /./ or /../ components. Trailing delimiters,
11431143
* such as \ and /, are also removed.

generated/functionsList.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
'forward_static_call',
201201
'func_get_arg',
202202
'register_tick_function',
203+
'gmp_binomial',
203204
'gmp_export',
204205
'gmp_import',
205206
'gmp_random_seed',
@@ -580,6 +581,7 @@
580581
'oci_statement_type',
581582
'oci_unregister_taf_callback',
582583
'opcache_compile_file',
584+
'opcache_get_status',
583585
'openssl_cipher_iv_length',
584586
'openssl_csr_export_to_file',
585587
'openssl_csr_export',

generated/gmp.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
44

55
use Safe\Exceptions\GmpException;
66

7+
/**
8+
* Calculates the binomial coefficient C(n, k).
9+
*
10+
* @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.
11+
* @param int $k
12+
* @return \\GMP Returns the binomial coefficient C(n, k), .
13+
* @throws GmpException
14+
*
15+
*/
16+
function gmp_binomial($n, int $k): \GMP
17+
{
18+
error_clear_last();
19+
$result = \gmp_binomial($n, $k);
20+
if ($result === false) {
21+
throw GmpException::createFromPhpError();
22+
}
23+
return $result;
24+
}
25+
26+
727
/**
828
* Export a GMP number to a binary string
929
*

generated/json.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
* JSON_FORCE_OBJECT,
3030
* JSON_PRESERVE_ZERO_FRACTION,
3131
* JSON_UNESCAPED_UNICODE,
32-
* JSON_PARTIAL_OUTPUT_ON_ERROR. The behaviour of these
32+
* JSON_PARTIAL_OUTPUT_ON_ERROR,
33+
* JSON_THROW_ON_ERROR. The behaviour of these
3334
* constants is described on the
3435
* JSON constants page.
3536
* @param int $depth Set the maximum depth. Must be greater than zero.

generated/opcache.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,23 @@ function opcache_compile_file(string $file): void
2121
throw OpcacheException::createFromPhpError();
2222
}
2323
}
24+
25+
26+
/**
27+
* This function returns state information about the cache instance
28+
*
29+
* @param bool $get_scripts Include script specific state information
30+
* @return array Returns an array of information, optionally containing script specific state information,
31+
* .
32+
* @throws OpcacheException
33+
*
34+
*/
35+
function opcache_get_status(bool $get_scripts = true): array
36+
{
37+
error_clear_last();
38+
$result = \opcache_get_status($get_scripts);
39+
if ($result === false) {
40+
throw OpcacheException::createFromPhpError();
41+
}
42+
return $result;
43+
}

generated/password.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
*
3030
*
3131
*
32-
* PASSWORD_ARGON2I - Use the Argon2 hashing algorithm to create the hash.
32+
* PASSWORD_ARGON2I - Use the Argon2i hashing algorithm to create the hash.
33+
* This algorithm is only available if PHP has been compiled with Argon2i support.
3334
*
3435
*
3536
*

rector-migrate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ services:
201201
forward_static_call: 'Safe\forward_static_call'
202202
func_get_arg: 'Safe\func_get_arg'
203203
register_tick_function: 'Safe\register_tick_function'
204+
gmp_binomial: 'Safe\gmp_binomial'
204205
gmp_export: 'Safe\gmp_export'
205206
gmp_import: 'Safe\gmp_import'
206207
gmp_random_seed: 'Safe\gmp_random_seed'
@@ -581,6 +582,7 @@ services:
581582
oci_statement_type: 'Safe\oci_statement_type'
582583
oci_unregister_taf_callback: 'Safe\oci_unregister_taf_callback'
583584
opcache_compile_file: 'Safe\opcache_compile_file'
585+
opcache_get_status: 'Safe\opcache_get_status'
584586
openssl_cipher_iv_length: 'Safe\openssl_cipher_iv_length'
585587
openssl_csr_export_to_file: 'Safe\openssl_csr_export_to_file'
586588
openssl_csr_export: 'Safe\openssl_csr_export'

0 commit comments

Comments
 (0)