Login  |  Packages  |  Support  |  Bugs
Top Level :: System :: statgrab :: 2.2.0

statgrab 2.2.0

This package has been superseded, but is still maintained for bugs and security fixes. Package has moved to channel https://github.com/iliaal/statgrab
Package Information
Summary System statistics via libstatgrab
Maintainers Ilia Alshanetsky < ilia at php dot net > (lead) [details]
License PHP License 3.01
Description A PHP extension wrapping libstatgrab (https://libstatgrab.org), the
cross-platform system-statistics library. Exposes CPU, memory, swap,
disk I/O, filesystem, network, page, process, user, and host metrics
through both a procedural API (the original 2006 surface) and a
modern Statgrab class.

Requires libstatgrab >= 0.92 and PHP >= 8.0.
Release notes
Version 2.2.0
(stable)
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.

[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ]

Dependencies for release 2.2.0
PHP Version: PHP version 8.99.99 or older
PHP Version: PHP 8.0.0 or newer
PEAR Package: PEAR 1.10.0 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Sep 03 10:50:24 2025 UTC
Bandwidth and hardware provided by: pair Networks