+To update the [Function Runtime Catalogue](../docs/probe-results.md#function-runtime-catalogue), save the PHP version and the extensions of each Function Runtime, dated, in the fixtures it is generated from:
10. Export the function's logs of the last hour, CRON lines included, from Cockpit's Grafana or with the Loki query of the [README](../README.md#logs).
76
82
77
83
11. Compare a CRON Event (step 9 or 10) with the HTTP one of `01-facts.json`, `event` and `context` alike, and list what only the CRON one has or lacks: headers (a trigger name or id, a token, `User-Agent`, `X-Forwarded-For`), method, path, context fields.
+To update the [Function Runtime Catalogue](../docs/probe-results.md#function-runtime-catalogue), save the PHP version and the extensions of each Function Runtime, dated, in the fixtures it is generated from:
10. Export the function's logs of the last hour, CRON lines included, from Cockpit's Grafana or with the Loki query of the [README](../README.md#logs).
81
10. Export the function's logs of the last hour, CRON lines included, from Cockpit's Grafana or with the Loki query of the [README](../README.md#logs).
76
82
77
11. Compare a CRON Event (step 9 or 10) with the HTTP one of `01-facts.json`, `event` and `context` alike, and list what only the CRON one has or lacks: headers (a trigger name or id, a token, `User-Agent`, `X-Forwarded-For`), method, path, context fields.
83
11. Compare a CRON Event (step 9 or 10) with the HTTP one of `01-facts.json`, `event` and `context` alike, and list what only the CRON one has or lacks: headers (a trigger name or id, a token, `User-Agent`, `X-Forwarded-For`), method, path, context fields.
modifiedprobe/function/handler.php+9-0
@@ -112,6 +112,15 @@ function handle($event, $context)
112
112
case 'exception':
113
113
throw new RuntimeException('probe: exception escaping the handler');
114
114
115
+ case 'runtime':
116
+ // Only what the Function Runtime Catalogue is generated from, so that its output can be committed as it is.
117
+ return json_response([
118
+ 'measuredAt' => gmdate('Y-m-d\\TH:i:s\\Z'),
119
+ 'phpVersion' => PHP_VERSION,
120
+ // false when an extension reports no version: Platform Requirements on its version stay unknown.