-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Assertion `zval_get_type(&(*(zptr))) == 6 && "Concat should return string"' failed #10571
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
Comments
I think this is related to #10179, rather. Unfortunately that fix did not cover this problem. |
Taking a quick look, it seems we'd need to increase the refcount of the object (that's not currently passed, refs might need special handling) in Edit: Ugh. Furthermore releasing the object in |
There needs to be a fundamental change to fix this in all cases, preferably in a uniform way. We could try patching it up ad-hoc for 8.1 and 8.2 and fix it better (in a different way) with a small BC break in 8.3 by delaying destructors uniformly until after the copies. Edit: edited for clarity |
… should return string"' failed
… should return string"' failed
… should return string"' failed
Description
The following code:
Resulted in this output:
With asan, the output is:
It seems a use-after-free bug.
PHP Version
PHP 8.3.0-dev
Operating System
No response
The text was updated successfully, but these errors were encountered: