-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Memory leak in DOMProcessingInstruction/DOMDocument #16152
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
This is somewhat related to #16150; in Line 824 in 62a1eb9
In this case this is too much, since the refcount is later increased in |
Annoying, and convoluted code. This issue and the other one should be fixed together probably, but not in the mood to do that today anymore. |
The reference counts of the internal document pointer are mismanaged. In the case of fragments the refcount may be increased too much, while for other cases the document reference may not be applied to all children. This bug existed for a long time and this doesn't reproduce (easily) on 8.2 due to other bugs. Furthermore 8.2 will enter security mode soon, and this change may be too risky.
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.4.0-dev
Operating System
No response
The text was updated successfully, but these errors were encountered: