Skip to content

Remove dead stores from ext/spl - #12550

Merged
Girgias merged 1 commit into
php:masterfrom
ndossche:spl-dead-store
Oct 29, 2023
Merged

Remove dead stores from ext/spl#12550
Girgias merged 1 commit into
php:masterfrom
ndossche:spl-dead-store

Conversation

@ndossche

Copy link
Copy Markdown
Member

No description provided.

@ndossche
ndossche requested a review from Girgias as a code owner October 29, 2023 12:59
@ndossche ndossche changed the title Remove dead stoers from ext/spl Remove dead stores from ext/spl Oct 29, 2023
Comment thread ext/spl/spl_fixedarray.c
Comment on lines +743 to 745
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();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The double foreach seems possibly unnecessary, but this is already an improvement

@Girgias
Girgias merged commit 4cfc8f6 into php:master Oct 29, 2023
adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants