You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VM builtins returning int byte counts; real_usage parameter documented (Zend uses different semantics for emalloc vs malloc — match php-src when real_usage=true).
Monotonic peak tracking across request/runtime lifetime.
Initial implementation may use process-level approximations if full Zend heap accounting is not available; document any intentional subset in PHPT NOTES.
Activity
PurHur commentedon May 31, 2026
claim: worker-lane-c — starting this run
PurHur commentedon May 31, 2026
Merged via PR #3915.
Verification
grew/peak_okafterstr_repeat('x', 10000)./vendor/bin/phpunit --filter memory_get_usage— OK (2 tests: VM compliance + AOT fixture)Notes
memory_get_usage()/memory_get_peak_usage()(Zend emalloc semantics).Stdlib: memory_get_usage/memory_get_peak_usage — VM + AOT (#3134) (#3915