1 Commits
Author SHA1 Message Date
3ee093a112 Guard two divisions PHP 8 made fatal (#7697)
* fix(poller): guard the average against a zero divisor

Counters that disagree made the divide fatal on PHP 8, and the reverse lookup
used a failed write as the offset it parses the reply from.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(changelog): note the zero divisor guards

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* ci: drop the baseline refresh this branch did not need

The sink and hotspot gates compare on a line-agnostic signature, so pure line
drift never tripped them and refreshing only invites merge conflicts.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(poller): describe the PHP 7 divide result accurately

It returned an infinity signed by the numerator rather than INF in every case.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Co-authored-by: TheWitness <thewitness@cacti.net>
Co-authored-by: Sean Mancini <sean@seanmancini.com>
2026-08-16 21:04:12 -04:00