Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## [Unreleased]

### Fixed
- [#56] PHPStan: configure `--memory-limit=512M` in the `phpstan` composer script to prevent
analysis from crashing under the default 128M limit on large codebases.
- [#36] FutureStringArray: `await()` now copies `char*` elements into owned PHP strings via
`FFI::string()` before releasing the future's memory. Previously, the method returned raw
`FFI\CData` pointers that became dangling after `releaseMemory()`, causing use-after-free in
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"scripts": {
"lint": ["phpcs --standard=phpcs.xml.dist", "@rector", "@phpstan"],
"lint:fix": ["@rector:fix", "phpcbf --standard=phpcs.xml.dist"],
"phpstan": "phpstan analyse",
"phpstan": "phpstan analyse --memory-limit=512M",
"cs": "phpcs --standard=phpcs.xml.dist",
"cs-fix": "phpcbf --standard=phpcs.xml.dist",
"test": "phpunit",
Expand Down
Loading