Ben Ramsey on Nostr: Folks who know #PHP internals well and/or extension development: I’ve got a memory ...
Folks who know #PHP internals well and/or extension development:
I’ve got a memory leak that I don’t know how to fix. I’m sure I’m not properly allocating or freeing memory, but I’ve hit a wall with my knowledge on how to follow this Valgrind output.
My reading of the error makes it look like PHP itself is allocating memory for an enum and then freeing it too early. Maybe?
Steps to reproduce here: https://gist.github.com/ramsey/bb9cd7e1ca0dad5b6aa03b9e1ed4d377
Code here: https://github.com/ramsey/php-ecma-intl-ext
Help is appreciated.
I’ve got a memory leak that I don’t know how to fix. I’m sure I’m not properly allocating or freeing memory, but I’ve hit a wall with my knowledge on how to follow this Valgrind output.
My reading of the error makes it look like PHP itself is allocating memory for an enum and then freeing it too early. Maybe?
Steps to reproduce here: https://gist.github.com/ramsey/bb9cd7e1ca0dad5b6aa03b9e1ed4d377
Code here: https://github.com/ramsey/php-ecma-intl-ext
Help is appreciated.