PHP Network Weathermap 0.98a - PHP 8 Compatibility Build 1
Build date: 2026-07-29

PURPOSE
-------
This is a compatibility-first build of PHP Network Weathermap 0.98a.
It preserves the original project structure and functionality while correcting
syntax that was removed in PHP 8.

VERIFIED RESULT
---------------
All 50 PHP files pass `php -l` under PHP 8.4.16. These syntax corrections are
also applicable to PHP 8.3, the primary deployment target.

CHANGES
-------
Only obsolete array/string offset syntax was changed:

  $value{...}  ->  $value[...]

Changed files:
  check.php
  setup.php
  random-bits/cacti-integrate.php
  lib/datasources/WeatherMapDataSource_snmp.php

A total of seven offset expressions were corrected.

SCOPE
-----
Build 1 establishes PHP 8 syntax compatibility. It does not yet certify every
runtime path, editor action, Cacti integration, datasource, or rendering output.
Those require runtime regression testing in later builds.

INSTALLATION
------------
Back up the existing installation before replacing it. Extract this package so
that the included `weathermap` directory replaces or is copied over the legacy
0.98a source tree. Preserve site-specific configuration files, output files,
permissions, and Cacti settings.

After installation, run:

  find /path/to/weathermap -type f -name '*.php' -print0 | \
    xargs -0 -n1 php -l

Recommended PHP modules and utilities for runtime testing include GD, SNMP,
RRDtool, and the command-line option dependency used by the legacy renderer.
