Skip to content

Fix RCN violations in array functions #18929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Conversation

nielsdos
Copy link
Member

When the array functions perform their operation in-place, the @refcount 1 annotation is wrong and causes a failure under ZEND_VERIFY_FUNC_INFO.
The test file tests all functions that have the in-place optimization, even those that didn't have the refcount annotation, just to prevent future regressions.

@Girgias This should fix the symfony test failures you saw

When the array functions perform their operation in-place, the
`@refcount 1` annotation is wrong and causes a failure under
`ZEND_VERIFY_FUNC_INFO`.
The test file tests all functions that have the in-place optimization,
even those that didn't have the refcount annotation, just to prevent
future regressions.
@Girgias
Copy link
Member

Girgias commented Jun 24, 2025

Thank you!

"completely useless func info", alright then

This reverts commit ea4807e.
@nielsdos
Copy link
Member Author

Heh now it warns "completely useless func info", so ig let's just drop it altogether...

@nielsdos nielsdos closed this in 359a21f Jun 24, 2025
@nielsdos
Copy link
Member Author

Merging this as I want to see the effect on the pipeline wrt ICount. I wonder if the ICount change was due to CI/Valgrind noise or not

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