statgrab 2.2.0

libstatgab bindings


libstatgrab is a library that provides a common interface for retrieving
a variety of system statistics on a number of *NIX like systems.

This extension allows you to call the functions made available by
libstatgrab library.

License: PHP

Changes

Bundled-libstatgrab support and leak fixes.

- Vendored libstatgrab 0.92.1 with one local patch fixing an
off-by-one in sg_destroy_globals that leaked the user-stats vector
(~1.1 KB) at every process exit. Patch is LGPL 2.1+, lives under
vendor/libstatgrab/patches/, submitted upstream.
- New --with-statgrab=bundled configure option statically links the
patched copy. System libstatgrab remains the default.
- Fixed our own 144-byte-per-call leak in sg_cpu_percent_usage /
Statgrab::cpu: sg_get_cpu_percents_r returns owned memory and we
weren't freeing it via sg_free_stats_buf.
- LICENSE.libstatgrab (LGPL 2.1) ships next to LICENSE (PHP-3.01);
the two licenses cohabit cleanly.

See CHANGELOG.md for the full list.