1212<txp:if_variable name="json-latest-is-beta">
1313 "beta": {
1414 "version": "<txp:variable name="json-beta-version" escape="json" />",
15+ <txp:if_variable name="json-beta-manifest">"phpHasManifest": 1,</txp:if_variable>
1516 <txp:if_custom_field name="max-txp-version-verified-beta">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified-beta" escape="json" />",</txp:if_custom_field>
1617 <txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" escape="json" />",</txp:if_variable>
1718 <txp:if_variable name="json-beta-txt">"endpointUrl": "<txp:variable name="json-beta-txt" escape="json" />"<txp:else />"endpointUrl": "<txp:variable name="json-beta-php" escape="json" />"</txp:if_variable>
2021<txp:if_variable name="json-stable-version">
2122 "stable": {
2223 "version": "<txp:variable name="json-stable-version" escape="json" />",
24+ <txp:if_variable name="json-stable-manifest">"phpHasManifest": 1,</txp:if_variable>
2325 <txp:if_custom_field name="max-txp-version-verified">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified" escape="json" />",</txp:if_custom_field>
2426 <txp:if_custom_field name="min-txp-version-verified">"verifiedMinTxpCompatibility": "<txp:custom_field name="min-txp-version-verified" escape="json" />",</txp:if_custom_field>
2527 <txp:if_variable name="json-stable-date">"datePublished": "<txp:variable name="json-stable-date" escape="json" />",</txp:if_variable>
2830<txp:else />
2931 "beta": {
3032 "version": "<txp:variable name="json-beta-version" escape="json" />",
33+ <txp:if_variable name="json-beta-manifest">"phpHasManifest": 1,</txp:if_variable>
3134 <txp:if_custom_field name="max-txp-version-verified-beta">"verifiedMaxTxpCompatibility": "<txp:custom_field name="max-txp-version-verified-beta" escape="json" />",</txp:if_custom_field>
3235 <txp:if_custom_field name="min-txp-version-verified">"verifiedMinTxpCompatibility": "<txp:custom_field name="min-txp-version-verified" escape="json" />",</txp:if_custom_field>
3336 <txp:if_variable name="json-beta-date">"datePublished": "<txp:variable name="json-beta-date" escape="json" />",</txp:if_variable>
@@ -46,6 +49,12 @@ if (!empty($json2['legacy'])) {
4649 foreach ($txpBlock as $txpver => $endpointData) {
4750 $newJson['legacy'][$txpver]['version'] = txpspecialchars($endpointData['version']);
4851
52+ if (!empty($endpointData['phpHasManifest'])) {
53+ if ($endpointData['phpHasManifest'] = 1) {
54+ $newJson['legacy'][$txpver]['phpHasManifest'] = txpspecialchars($endpointData['phpHasManifest']);
55+ }
56+ }
57+
4958 if (!empty($endpointData['datePublished'])) {
5059 $newJson['legacy'][$txpver]['datePublished'] = txpspecialchars($endpointData['datePublished']);
5160 }
0 commit comments