-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Reference invariant broken in mb_convert_variables() #16261
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
One of the legacy code places that incorrectly sets references, I'll check it out. |
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Oct 6, 2024
The behaviour is weird in the sense that the reference must get unwrapped. What ended up happening is that when destroying the old reference the sources list was not cleaned properly. We add handling for that. Normally we would use use ZEND_TRY_ASSIGN_STRINGL but that doesn't work here as it would keep the reference and change values through references (see bug #26639).
nielsdos
added a commit
that referenced
this issue
Oct 7, 2024
* PHP-8.2: Fix GH-16261: Reference invariant broken in mb_convert_variables()
nielsdos
added a commit
that referenced
this issue
Oct 7, 2024
* PHP-8.3: Fix GH-16261: Reference invariant broken in mb_convert_variables()
nielsdos
added a commit
that referenced
this issue
Oct 7, 2024
* PHP-8.4: Fix GH-16261: Reference invariant broken in mb_convert_variables()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following code:
Resulted in this output:
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: