Fix uouv in array_column

column_long and index_long might not be set, but are still used as arguments.
They are not actually used if column_str is set, but it's better to initialize
them anyway, if only to make MemorySanitizer happy.
This commit is contained in:
Ilija Tovilo 2023-07-19 18:10:58 +02:00
parent 79a8cf1b96
commit 2053af6628

View file

@ -4513,10 +4513,10 @@ PHP_FUNCTION(array_column)
HashTable *input; HashTable *input;
zval *colval, *data, rv; zval *colval, *data, rv;
zend_string *column_str = NULL; zend_string *column_str = NULL;
zend_long column_long; zend_long column_long = 0;
bool column_is_null = 0; bool column_is_null = 0;
zend_string *index_str = NULL; zend_string *index_str = NULL;
zend_long index_long; zend_long index_long = 0;
bool index_is_null = 1; bool index_is_null = 1;
ZEND_PARSE_PARAMETERS_START(2, 3) ZEND_PARSE_PARAMETERS_START(2, 3)