-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Memory leak in libxml encoding handling #17223
Comments
|
I'll make sure to be more consistent with OS info, etc. |
@chongwick This is not a PHP bug, but a libxml bug. There is a memory leak here: https://github.com/GNOME/libxml2/blame/0dd910e82bf74cdebcabe1a576f6178e0092cb5d/xmlsave.c#L2830, and a quick and dirty test of adding an |
ah true definitively there is no php involvement in this case, should have read better the report.. |
Thanks, since this is now tracked upstream, I believe we can close this. |
It's a bug in both libxml2 and PHP. The libxml2 fix is here: https://gitlab.gnome.org/GNOME/libxml2/-/commit/b3871dd138ad68a22ef315809bbe4b071090711b In PHP, you have to make On another note, I think you could avoid the whole |
@nwellnhof Thanks! I'll look into it tomorrow or Monday as it's already late in the evening here |
This was a bug in both libxml and PHP. We follow up with the same change as done in GNOME/libxml@b3871dd138. Changing away from `xmlOutputBufferCreateFilenameDefault` is not possible yet because this is a stable branch and would break BC.
Description
The following code:
Resulted in this output:
PHP Version
8.5-dev
Operating System
No response
The text was updated successfully, but these errors were encountered: