feat: add memory leak regression tests (#105)#149
Merged
Conversation
- Add 5 .phpt test files for FFI memory leak detection: - test_memory_collection_lifecycle.phpt: 50x create/open/close/destroy cycle - test_memory_deserialize_buffer.phpt: 100x serialize/deserialize cycle - test_memory_query_output_fields.phpt: 100x query with/without output fields - test_memory_init_error_path.phpt: 20x init error/recovery cycles - test_memory_delete_cstrings.phpt: 30x insert/delete/fetch cycles - Add examples/07_memory_management.php with VmRSS monitoring patterns - Update CHANGELOG.md with test entries - Update AGENTS.md with memory leak regression test section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds memory leak regression tests for FFI memory safety as specified in #105.
Changes
Testing
Closes
Closes #105