Merge branch 'PHP-8.2'

* PHP-8.2:
  Fix use-of-uninitialized value in phar_object.c
This commit is contained in:
Ilija Tovilo 2023-05-08 17:07:04 +02:00
commit 38cf52d8aa
No known key found for this signature in database
GPG Key ID: A4F5D403F118200A

View File

@ -3709,7 +3709,7 @@ PHP_METHOD(Phar, offsetSet)
{
char *fname, *cont_str = NULL;
size_t fname_len, cont_len;
zval *zresource;
zval *zresource = NULL;
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "pr", &fname, &fname_len, &zresource) == FAILURE
&& zend_parse_parameters(ZEND_NUM_ARGS(), "ps", &fname, &fname_len, &cont_str, &cont_len) == FAILURE) {