Extends the dispatch-only attach workflow to the LiteSpeed family: same additive mechanism (amd64 manifest digest untouched), arm64 built from the packaged lsphp, with a parity gate (PHP version, SAPI, extensions, every ini value, OLS version) against the existing amd64 image before the tag is touched. Tests and docs/arm64-ols-family.md updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
23 lines
1.1 KiB
PHP
23 lines
1.1 KiB
PHP
<?php
|
|
// arm64-parity-probe.php - facts that must be IDENTICAL between the existing amd64 image and the
|
|
// arm64 image attached to the same tag (version, SAPI, loaded extensions + versions, every ini
|
|
// value). Run twice by arm64-attach.yaml: `lsphp probe.php` (image config) and
|
|
// `lsphp -n probe.php` (compiled-in defaults only, e.g. session.upload_progress.enabled).
|
|
// Output is plain text so a failed parity check prints a readable diff. No timestamps/paths of
|
|
// the build host: only things a customer's PHP can observe.
|
|
echo 'PHP_VERSION=', PHP_VERSION, "\n";
|
|
echo 'PHP_VERSION_ID=', PHP_VERSION_ID, "\n";
|
|
echo 'SAPI=', php_sapi_name(), "\n";
|
|
echo 'ZTS=', (PHP_ZTS ? 1 : 0), ' DEBUG=', (PHP_DEBUG ? 1 : 0), ' INT_SIZE=', PHP_INT_SIZE, "\n";
|
|
echo 'EXTENSION_DIR=', ini_get('extension_dir'), "\n";
|
|
$ext = get_loaded_extensions();
|
|
sort($ext, SORT_STRING);
|
|
foreach ($ext as $e) {
|
|
echo 'ext ', $e, ' ', (phpversion($e) ?: '-'), "\n";
|
|
}
|
|
$ini = ini_get_all(null, false);
|
|
ksort($ini, SORT_STRING);
|
|
foreach ($ini as $k => $v) {
|
|
echo 'ini ', $k, '=', var_export($v, true), "\n";
|
|
}
|