@php-wasm/node 3.0.6 → 3.0.12

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.
Files changed (43) hide show
  1. package/asyncify/7_2_34/php_7_2.wasm +0 -0
  2. package/asyncify/7_3_33/php_7_3.wasm +0 -0
  3. package/asyncify/7_4_33/php_7_4.wasm +0 -0
  4. package/asyncify/8_0_30/php_8_0.wasm +0 -0
  5. package/asyncify/8_1_33/php_8_1.wasm +0 -0
  6. package/asyncify/8_2_29/php_8_2.wasm +0 -0
  7. package/asyncify/{8_3_25 → 8_3_26}/php_8_3.wasm +0 -0
  8. package/asyncify/{8_4_12 → 8_4_13}/php_8_4.wasm +0 -0
  9. package/asyncify/php_7_2.js +35551 -32177
  10. package/asyncify/php_7_3.js +35564 -32190
  11. package/asyncify/php_7_4.js +35575 -32202
  12. package/asyncify/php_8_0.js +2 -2
  13. package/asyncify/php_8_1.js +2 -2
  14. package/asyncify/php_8_2.js +2 -2
  15. package/asyncify/php_8_3.js +10 -10
  16. package/asyncify/php_8_4.js +11 -11
  17. package/index.cjs +9123 -2983
  18. package/index.js +9123 -2983
  19. package/jspi/7_2_34/php_7_2.wasm +0 -0
  20. package/jspi/7_3_33/php_7_3.wasm +0 -0
  21. package/jspi/7_4_33/php_7_4.wasm +0 -0
  22. package/jspi/8_0_30/php_8_0.wasm +0 -0
  23. package/jspi/8_1_33/php_8_1.wasm +0 -0
  24. package/jspi/8_2_29/php_8_2.wasm +0 -0
  25. package/jspi/{8_3_25 → 8_3_26}/php_8_3.wasm +0 -0
  26. package/jspi/{8_4_12 → 8_4_13}/php_8_4.wasm +0 -0
  27. package/jspi/extensions/xdebug/7_2/xdebug.so +0 -0
  28. package/jspi/extensions/xdebug/7_3/xdebug.so +0 -0
  29. package/jspi/extensions/xdebug/7_4/xdebug.so +0 -0
  30. package/jspi/extensions/xdebug/8_0/xdebug.so +0 -0
  31. package/jspi/extensions/xdebug/8_1/xdebug.so +0 -0
  32. package/jspi/extensions/xdebug/8_2/xdebug.so +0 -0
  33. package/jspi/extensions/xdebug/8_3/xdebug.so +0 -0
  34. package/jspi/extensions/xdebug/8_4/xdebug.so +0 -0
  35. package/jspi/php_8_0.js +1 -1
  36. package/jspi/php_8_1.js +1 -1
  37. package/jspi/php_8_2.js +1 -1
  38. package/jspi/php_8_3.js +10 -10
  39. package/jspi/php_8_4.js +11 -11
  40. package/package.json +12 -8
  41. package/asyncify/8_3_23/php_8_3.wasm +0 -0
  42. package/asyncify/8_4_10/php_8_4.wasm +0 -0
  43. package/jspi/8_3_24/php_8_3.wasm +0 -0
@@ -8,7 +8,7 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '8_0_30', 'php_8_0.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 24845917;
11
+ export const dependenciesTotalSize = 24846242;
12
12
  const phpVersionString = '8.0.30';
13
13
  export function init(RuntimeName, PHPLoader) {
14
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
@@ -6637,7 +6637,7 @@ export function init(RuntimeName, PHPLoader) {
6637
6637
  // single PHP process.
6638
6638
  FS.mkdir('/request');
6639
6639
  // The /internal directory is shared amongst all PHP processes
6640
- // and contains wp-config.php, constants, etc.
6640
+ // and contains the php.ini, constants definitions, etc.
6641
6641
  FS.mkdir('/internal');
6642
6642
 
6643
6643
  if (phpWasmInitOptions?.nativeInternalDirPath) {
@@ -8,7 +8,7 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '8_1_33', 'php_8_1.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 25172855;
11
+ export const dependenciesTotalSize = 25173180;
12
12
  const phpVersionString = '8.1.33';
13
13
  export function init(RuntimeName, PHPLoader) {
14
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
@@ -6637,7 +6637,7 @@ export function init(RuntimeName, PHPLoader) {
6637
6637
  // single PHP process.
6638
6638
  FS.mkdir('/request');
6639
6639
  // The /internal directory is shared amongst all PHP processes
6640
- // and contains wp-config.php, constants, etc.
6640
+ // and contains the php.ini, constants definitions, etc.
6641
6641
  FS.mkdir('/internal');
6642
6642
 
6643
6643
  if (phpWasmInitOptions?.nativeInternalDirPath) {
@@ -8,7 +8,7 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '8_2_29', 'php_8_2.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 25477333;
11
+ export const dependenciesTotalSize = 25477658;
12
12
  const phpVersionString = '8.2.29';
13
13
  export function init(RuntimeName, PHPLoader) {
14
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
@@ -6637,7 +6637,7 @@ export function init(RuntimeName, PHPLoader) {
6637
6637
  // single PHP process.
6638
6638
  FS.mkdir('/request');
6639
6639
  // The /internal directory is shared amongst all PHP processes
6640
- // and contains wp-config.php, constants, etc.
6640
+ // and contains the php.ini, constants definitions, etc.
6641
6641
  FS.mkdir('/internal');
6642
6642
 
6643
6643
  if (phpWasmInitOptions?.nativeInternalDirPath) {
@@ -6,10 +6,10 @@ const require = createRequire(import.meta.url);
6
6
  // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
7
7
  import path from 'path';
8
8
 
9
- const dependencyFilename = path.join(__dirname, '8_3_25', 'php_8_3.wasm');
9
+ const dependencyFilename = path.join(__dirname, '8_3_26', 'php_8_3.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 26575810;
12
- const phpVersionString = '8.3.25';
11
+ export const dependenciesTotalSize = 26577262;
12
+ const phpVersionString = '8.3.26';
13
13
  export function init(RuntimeName, PHPLoader) {
14
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
15
15
  // include: shell.js
@@ -831,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
831
831
  },
832
832
  };
833
833
 
834
- var ___heap_base = 13876672;
834
+ var ___heap_base = 13876800;
835
835
 
836
836
  var alignMemory = (size, alignment) => {
837
837
  return Math.ceil(size / alignment) * alignment;
@@ -1786,13 +1786,13 @@ export function init(RuntimeName, PHPLoader) {
1786
1786
  1024
1787
1787
  );
1788
1788
 
1789
- var ___stack_high = 13876672;
1789
+ var ___stack_high = 13876800;
1790
1790
 
1791
- var ___stack_low = 12828096;
1791
+ var ___stack_low = 12828224;
1792
1792
 
1793
1793
  var ___stack_pointer = new WebAssembly.Global(
1794
1794
  { value: 'i32', mutable: true },
1795
- 13876672
1795
+ 13876800
1796
1796
  );
1797
1797
 
1798
1798
  var PATH = {
@@ -6637,7 +6637,7 @@ export function init(RuntimeName, PHPLoader) {
6637
6637
  // single PHP process.
6638
6638
  FS.mkdir('/request');
6639
6639
  // The /internal directory is shared amongst all PHP processes
6640
- // and contains wp-config.php, constants, etc.
6640
+ // and contains the php.ini, constants definitions, etc.
6641
6641
  FS.mkdir('/internal');
6642
6642
 
6643
6643
  if (phpWasmInitOptions?.nativeInternalDirPath) {
@@ -32138,13 +32138,13 @@ export function init(RuntimeName, PHPLoader) {
32138
32138
  // End JS library code
32139
32139
 
32140
32140
  var ASM_CONSTS = {
32141
- 12632621: ($0) => {
32141
+ 12632749: ($0) => {
32142
32142
  if (!$0) {
32143
32143
  AL.alcErr = 0xa004;
32144
32144
  return 1;
32145
32145
  }
32146
32146
  },
32147
- 12632669: ($0) => {
32147
+ 12632797: ($0) => {
32148
32148
  if (!AL.currentCtx) {
32149
32149
  err('alGetProcAddress() called without a valid context');
32150
32150
  return 1;
@@ -6,10 +6,10 @@ const require = createRequire(import.meta.url);
6
6
  // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
7
7
  import path from 'path';
8
8
 
9
- const dependencyFilename = path.join(__dirname, '8_4_12', 'php_8_4.wasm');
9
+ const dependencyFilename = path.join(__dirname, '8_4_13', 'php_8_4.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 30326899;
12
- const phpVersionString = '8.4.12';
11
+ export const dependenciesTotalSize = 28961712;
12
+ const phpVersionString = '8.4.13';
13
13
  export function init(RuntimeName, PHPLoader) {
14
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
15
15
  // include: shell.js
@@ -831,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
831
831
  },
832
832
  };
833
833
 
834
- var ___heap_base = 16972480;
834
+ var ___heap_base = 15605120;
835
835
 
836
836
  var alignMemory = (size, alignment) => {
837
837
  return Math.ceil(size / alignment) * alignment;
@@ -995,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
995
995
 
996
996
  /** @type {WebAssembly.Table} */
997
997
  var wasmTable = new WebAssembly.Table({
998
- initial: 12454,
998
+ initial: 12461,
999
999
  element: 'anyfunc',
1000
1000
  });
1001
1001
  var getWasmTableEntry = (funcPtr) => {
@@ -1786,13 +1786,13 @@ export function init(RuntimeName, PHPLoader) {
1786
1786
  1024
1787
1787
  );
1788
1788
 
1789
- var ___stack_high = 16972480;
1789
+ var ___stack_high = 15605120;
1790
1790
 
1791
- var ___stack_low = 15923904;
1791
+ var ___stack_low = 14556544;
1792
1792
 
1793
1793
  var ___stack_pointer = new WebAssembly.Global(
1794
1794
  { value: 'i32', mutable: true },
1795
- 16972480
1795
+ 15605120
1796
1796
  );
1797
1797
 
1798
1798
  var PATH = {
@@ -6637,7 +6637,7 @@ export function init(RuntimeName, PHPLoader) {
6637
6637
  // single PHP process.
6638
6638
  FS.mkdir('/request');
6639
6639
  // The /internal directory is shared amongst all PHP processes
6640
- // and contains wp-config.php, constants, etc.
6640
+ // and contains the php.ini, constants definitions, etc.
6641
6641
  FS.mkdir('/internal');
6642
6642
 
6643
6643
  if (phpWasmInitOptions?.nativeInternalDirPath) {
@@ -32138,13 +32138,13 @@ export function init(RuntimeName, PHPLoader) {
32138
32138
  // End JS library code
32139
32139
 
32140
32140
  var ASM_CONSTS = {
32141
- 15723869: ($0) => {
32141
+ 14356509: ($0) => {
32142
32142
  if (!$0) {
32143
32143
  AL.alcErr = 0xa004;
32144
32144
  return 1;
32145
32145
  }
32146
32146
  },
32147
- 15723917: ($0) => {
32147
+ 14356557: ($0) => {
32148
32148
  if (!AL.currentCtx) {
32149
32149
  err('alGetProcAddress() called without a valid context');
32150
32150
  return 1;