@php-wasm/universal 3.1.35 → 3.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -2483,7 +2483,7 @@ class PHPProcessManager {
2483
2483
  this.instances = [], this.idleInstances = [];
2484
2484
  }
2485
2485
  }
2486
- const SupportedPHPVersions = [
2486
+ const PHPNextVersion = "next", SupportedPHPVersions = [
2487
2487
  "8.5",
2488
2488
  "8.4",
2489
2489
  "8.3",
@@ -2492,10 +2492,14 @@ const SupportedPHPVersions = [
2492
2492
  "8.0",
2493
2493
  "7.4"
2494
2494
  ], LatestSupportedPHPVersion = SupportedPHPVersions[0], SupportedPHPVersionsList = SupportedPHPVersions, LegacyPHPVersions = ["5.2"];
2495
+ function isPHPNextVersion(r) {
2496
+ return r === PHPNextVersion;
2497
+ }
2495
2498
  function isLegacyPHPVersion(r) {
2496
2499
  return LegacyPHPVersions.includes(r ?? "");
2497
2500
  }
2498
2501
  const AllPHPVersions = [
2502
+ PHPNextVersion,
2499
2503
  ...SupportedPHPVersions,
2500
2504
  ...LegacyPHPVersions
2501
2505
  ], LEGACY_PHP_INI_PATH = "/internal/shared/php.ini", LEGACY_PHP_INI_CONTENT = [
@@ -5949,6 +5953,7 @@ export {
5949
5953
  MAX_ADDRESSABLE_FILE_OFFSET,
5950
5954
  PHP,
5951
5955
  PHPExecutionFailureError,
5956
+ PHPNextVersion,
5952
5957
  PHPProcessManager,
5953
5958
  PHPRequestHandler,
5954
5959
  PHPResponse,
@@ -5974,6 +5979,7 @@ export {
5974
5979
  installPHPExtensionFilesSync,
5975
5980
  isExitCode,
5976
5981
  isLegacyPHPVersion,
5982
+ isPHPNextVersion,
5977
5983
  isPathToSharedFS,
5978
5984
  iteratePhpFiles as iterateFiles,
5979
5985
  loadPHPRuntime,