Fix stub for zend_terminate_string()

This commit is contained in:
Nikita Popov 2020-04-03 18:21:40 +02:00
parent 2bcc4ab8f4
commit 02a685ead3
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ function zend_test_deprecated(): void {}
function zend_create_unterminated_string(string $str): string {}
function zend_terminate_string(string &$str): string {}
function zend_terminate_string(string &$str): void {}
/** @param mixed $variable */
function zend_leak_variable($variable): void {}

View File

@ -15,7 +15,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_create_unterminated_string,
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_terminate_string, 0, 1, IS_STRING, 0)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_terminate_string, 0, 1, IS_VOID, 0)
ZEND_ARG_TYPE_INFO(1, str, IS_STRING, 0)
ZEND_END_ARG_INFO()