mirror of
https://github.com/php/php-src.git
synced 2025-01-06 02:43:34 +08:00
Merge branch 'PHP-8.2'
* PHP-8.2: Fix use-of-uninitialized value in phar_object.c
This commit is contained in:
commit
38cf52d8aa
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user