added 2 new functions

This commit is contained in:
DmitryTronin 2022-09-07 12:24:31 +02:00
parent 1ef9ac4617
commit 37dd64dd3c
3 changed files with 22 additions and 0 deletions

View File

@ -3596,6 +3596,7 @@ const FUNCTIONS = array (
'libxml_clear_errors' => 'libxml/libxml.php',
'libxml_disable_entity_loader' => 'libxml/libxml.php',
'libxml_get_errors' => 'libxml/libxml.php',
'libxml_get_external_entity_loader' => 'libxml/libxml.php',
'libxml_get_last_error' => 'libxml/libxml.php',
'libxml_set_external_entity_loader' => 'libxml/libxml.php',
'libxml_set_streams_context' => 'libxml/libxml.php',
@ -4465,6 +4466,7 @@ const FUNCTIONS = array (
'opendir' => 'standard/standard_7.php',
'openlog' => 'standard/standard_7.php',
'openssl_cipher_iv_length' => 'openssl/openssl.php',
'openssl_cipher_key_length' => 'openssl/openssl.php',
'openssl_cms_decrypt' => 'openssl/openssl.php',
'openssl_cms_encrypt' => 'openssl/openssl.php',
'openssl_cms_read' => 'openssl/openssl.php',

View File

@ -146,6 +146,17 @@ function libxml_disable_entity_loader(bool $disable = true): bool {}
*/
function libxml_set_external_entity_loader(?callable $resolver_function): bool {}
/**
* Returns the currently installed external entity loader, i.e. the value which was passed to
* libxml_set_external_entity_loader() or null if no loader was installed and the default entity loader will be used.
* This allows libraries to save and restore the loader, controlling entity expansion without interfering with the rest
* of the application.
*
* @return callable|null
* @since 8.2
*/
function libxml_get_external_entity_loader(): ?callable {}
/**
* libxml version like 20605 or 20617
* @link https://php.net/manual/en/libxml.constants.php

View File

@ -757,6 +757,15 @@ function openssl_decrypt(
*/
function openssl_cipher_iv_length(string $cipher_algo): int|false {}
/**
* This function works in exactly the same way as openssl_cipher_iv_length but for a key length. This is especially
* useful to make sure that the right key length is provided to openssl_encrypt and openssl_decrypt.
* @param string $cipher_algo
* @return int|false
* @since 8.2
*/
function openssl_cipher_key_length(string $cipher_algo): int|false {}
/**
* Generate signature
* @link https://php.net/manual/en/function.openssl-sign.php