Skip to content

Commit

Permalink
Remove dead stores from ext/spl (#12550)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Oct 29, 2023
1 parent 53218b1 commit 4cfc8f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/spl/spl_fixedarray.c
Expand Up @@ -740,7 +740,7 @@ PHP_METHOD(SplFixedArray, fromArray)
}
spl_fixedarray_init(&array, tmp);

ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(data), num_index, str_index, element) {
ZEND_HASH_FOREACH_NUM_KEY_VAL(Z_ARRVAL_P(data), num_index, element) {
ZVAL_COPY_DEREF(&array.elements[num_index], element);
} ZEND_HASH_FOREACH_END();

Expand Down
4 changes: 2 additions & 2 deletions ext/spl/spl_iterators.c
Expand Up @@ -1198,7 +1198,7 @@ PHP_METHOD(RecursiveTreeIterator, current)
}

if (object->flags & RTIT_BYPASS_CURRENT) {
zend_object_iterator *iterator = object->iterators[object->level].iterator;
zend_object_iterator *iterator;
zval *data;

SPL_FETCH_SUB_ITERATOR(iterator, object);
Expand Down Expand Up @@ -1920,7 +1920,7 @@ PHP_METHOD(RegexIterator, accept)
/* {{{ Returns current regular expression */
PHP_METHOD(RegexIterator, getRegex)
{
spl_dual_it_object *intern = Z_SPLDUAL_IT_P(ZEND_THIS);
spl_dual_it_object *intern;

if (zend_parse_parameters_none() == FAILURE) {
RETURN_THROWS();
Expand Down

0 comments on commit 4cfc8f6

Please sign in to comment.