@php-wasm/node 1.2.3 → 2.0.0

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.
Binary file
Binary file
Binary file
Binary file
package/jspi/php_7_2.js CHANGED
@@ -8,7 +8,8 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '7_2_34', 'php_7_2.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 28506158;
11
+ export const dependenciesTotalSize = 28865031;
12
+ const phpVersionString = '7.2.34';
12
13
  export function init(RuntimeName, PHPLoader) {
13
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
14
15
  // include: shell.js
@@ -847,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
847
848
  },
848
849
  };
849
850
 
850
- var ___heap_base = 11379936;
851
+ var ___heap_base = 12424800;
851
852
 
852
853
  var alignMemory = (size, alignment) => {
853
854
  return Math.ceil(size / alignment) * alignment;
@@ -1011,7 +1012,7 @@ export function init(RuntimeName, PHPLoader) {
1011
1012
 
1012
1013
  /** @type {WebAssembly.Table} */
1013
1014
  var wasmTable = new WebAssembly.Table({
1014
- initial: 15501,
1015
+ initial: 15576,
1015
1016
  element: 'anyfunc',
1016
1017
  });
1017
1018
  var getWasmTableEntry = (funcPtr) => {
@@ -1742,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
1742
1743
  1024
1743
1744
  );
1744
1745
 
1745
- var ___stack_high = 11379936;
1746
+ var ___stack_high = 12424800;
1746
1747
 
1747
- var ___stack_low = 11314400;
1748
+ var ___stack_low = 11376224;
1748
1749
 
1749
1750
  var ___stack_pointer = new WebAssembly.Global(
1750
1751
  { value: 'i32', mutable: true },
1751
- 11379936
1752
+ 12424800
1752
1753
  );
1753
1754
 
1754
1755
  var PATH = {
@@ -19319,7 +19320,7 @@ export function init(RuntimeName, PHPLoader) {
19319
19320
 
19320
19321
  var addOnExit = (cb) => onExits.unshift(cb);
19321
19322
 
19322
- var STACK_SIZE = 65536;
19323
+ var STACK_SIZE = 1048576;
19323
19324
 
19324
19325
  var STACK_ALIGN = 16;
19325
19326
 
@@ -31252,13 +31253,13 @@ export function init(RuntimeName, PHPLoader) {
31252
31253
  // End JS library code
31253
31254
 
31254
31255
  var ASM_CONSTS = {
31255
- 10385598: ($0) => {
31256
+ 10409966: ($0) => {
31256
31257
  if (!$0) {
31257
31258
  AL.alcErr = 0xa004;
31258
31259
  return 1;
31259
31260
  }
31260
31261
  },
31261
- 10385646: ($0) => {
31262
+ 10410014: ($0) => {
31262
31263
  if (!AL.currentCtx) {
31263
31264
  err('alGetProcAddress() called without a valid context');
31264
31265
  return 1;
@@ -34188,6 +34189,11 @@ export function init(RuntimeName, PHPLoader) {
34188
34189
  a0,
34189
34190
  a1
34190
34191
  ));
34192
+ var _initgroups = (Module['_initgroups'] = (a0, a1) =>
34193
+ (_initgroups = Module['_initgroups'] = wasmExports['initgroups'])(
34194
+ a0,
34195
+ a1
34196
+ ));
34191
34197
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports['memcpy'])(a0, a1, a2);
34192
34198
  var ___funcs_on_exit = () =>
34193
34199
  (___funcs_on_exit = wasmExports['__funcs_on_exit'])();
@@ -34424,6 +34430,15 @@ export function init(RuntimeName, PHPLoader) {
34424
34430
  };
34425
34431
  }
34426
34432
 
34433
+ /**
34434
+ * Expose the PHP version so the PHP class can make version-specific
34435
+ * adjustments to `php.ini`.
34436
+ */
34437
+ PHPLoader['phpVersion'] = (() => {
34438
+ const [major, minor, patch] = phpVersionString.split('.').map(Number);
34439
+ return { major, minor, patch };
34440
+ })();
34441
+
34427
34442
  return PHPLoader;
34428
34443
 
34429
34444
  // Close the opening bracket from esm-prefix.js:
package/jspi/php_7_3.js CHANGED
@@ -8,7 +8,8 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '7_3_33', 'php_7_3.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 28784650;
11
+ export const dependenciesTotalSize = 29193979;
12
+ const phpVersionString = '7.3.33';
12
13
  export function init(RuntimeName, PHPLoader) {
13
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
14
15
  // include: shell.js
@@ -847,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
847
848
  },
848
849
  };
849
850
 
850
- var ___heap_base = 11705184;
851
+ var ___heap_base = 12760416;
851
852
 
852
853
  var alignMemory = (size, alignment) => {
853
854
  return Math.ceil(size / alignment) * alignment;
@@ -1011,7 +1012,7 @@ export function init(RuntimeName, PHPLoader) {
1011
1012
 
1012
1013
  /** @type {WebAssembly.Table} */
1013
1014
  var wasmTable = new WebAssembly.Table({
1014
- initial: 15465,
1015
+ initial: 15542,
1015
1016
  element: 'anyfunc',
1016
1017
  });
1017
1018
  var getWasmTableEntry = (funcPtr) => {
@@ -1742,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
1742
1743
  1024
1743
1744
  );
1744
1745
 
1745
- var ___stack_high = 11705184;
1746
+ var ___stack_high = 12760416;
1746
1747
 
1747
- var ___stack_low = 11639648;
1748
+ var ___stack_low = 11711840;
1748
1749
 
1749
1750
  var ___stack_pointer = new WebAssembly.Global(
1750
1751
  { value: 'i32', mutable: true },
1751
- 11705184
1752
+ 12760416
1752
1753
  );
1753
1754
 
1754
1755
  var PATH = {
@@ -19319,7 +19320,7 @@ export function init(RuntimeName, PHPLoader) {
19319
19320
 
19320
19321
  var addOnExit = (cb) => onExits.unshift(cb);
19321
19322
 
19322
- var STACK_SIZE = 65536;
19323
+ var STACK_SIZE = 1048576;
19323
19324
 
19324
19325
  var STACK_ALIGN = 16;
19325
19326
 
@@ -31252,13 +31253,13 @@ export function init(RuntimeName, PHPLoader) {
31252
31253
  // End JS library code
31253
31254
 
31254
31255
  var ASM_CONSTS = {
31255
- 10780702: ($0) => {
31256
+ 10815374: ($0) => {
31256
31257
  if (!$0) {
31257
31258
  AL.alcErr = 0xa004;
31258
31259
  return 1;
31259
31260
  }
31260
31261
  },
31261
- 10780750: ($0) => {
31262
+ 10815422: ($0) => {
31262
31263
  if (!AL.currentCtx) {
31263
31264
  err('alGetProcAddress() called without a valid context');
31264
31265
  return 1;
@@ -34188,6 +34189,11 @@ export function init(RuntimeName, PHPLoader) {
34188
34189
  a0,
34189
34190
  a1
34190
34191
  ));
34192
+ var _initgroups = (Module['_initgroups'] = (a0, a1) =>
34193
+ (_initgroups = Module['_initgroups'] = wasmExports['initgroups'])(
34194
+ a0,
34195
+ a1
34196
+ ));
34191
34197
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports['memcpy'])(a0, a1, a2);
34192
34198
  var ___funcs_on_exit = () =>
34193
34199
  (___funcs_on_exit = wasmExports['__funcs_on_exit'])();
@@ -34424,6 +34430,15 @@ export function init(RuntimeName, PHPLoader) {
34424
34430
  };
34425
34431
  }
34426
34432
 
34433
+ /**
34434
+ * Expose the PHP version so the PHP class can make version-specific
34435
+ * adjustments to `php.ini`.
34436
+ */
34437
+ PHPLoader['phpVersion'] = (() => {
34438
+ const [major, minor, patch] = phpVersionString.split('.').map(Number);
34439
+ return { major, minor, patch };
34440
+ })();
34441
+
34427
34442
  return PHPLoader;
34428
34443
 
34429
34444
  // Close the opening bracket from esm-prefix.js:
package/jspi/php_7_4.js CHANGED
@@ -8,7 +8,8 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '7_4_33', 'php_7_4.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 29141175;
11
+ export const dependenciesTotalSize = 29566253;
12
+ const phpVersionString = '7.4.33';
12
13
  export function init(RuntimeName, PHPLoader) {
13
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
14
15
  // include: shell.js
@@ -847,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
847
848
  },
848
849
  };
849
850
 
850
- var ___heap_base = 12030368;
851
+ var ___heap_base = 13084960;
851
852
 
852
853
  var alignMemory = (size, alignment) => {
853
854
  return Math.ceil(size / alignment) * alignment;
@@ -1011,7 +1012,7 @@ export function init(RuntimeName, PHPLoader) {
1011
1012
 
1012
1013
  /** @type {WebAssembly.Table} */
1013
1014
  var wasmTable = new WebAssembly.Table({
1014
- initial: 15223,
1015
+ initial: 15290,
1015
1016
  element: 'anyfunc',
1016
1017
  });
1017
1018
  var getWasmTableEntry = (funcPtr) => {
@@ -1742,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
1742
1743
  1024
1743
1744
  );
1744
1745
 
1745
- var ___stack_high = 12030368;
1746
+ var ___stack_high = 13084960;
1746
1747
 
1747
- var ___stack_low = 11964832;
1748
+ var ___stack_low = 12036384;
1748
1749
 
1749
1750
  var ___stack_pointer = new WebAssembly.Global(
1750
1751
  { value: 'i32', mutable: true },
1751
- 12030368
1752
+ 13084960
1752
1753
  );
1753
1754
 
1754
1755
  var PATH = {
@@ -19323,7 +19324,7 @@ export function init(RuntimeName, PHPLoader) {
19323
19324
 
19324
19325
  var addOnExit = (cb) => onExits.unshift(cb);
19325
19326
 
19326
- var STACK_SIZE = 65536;
19327
+ var STACK_SIZE = 1048576;
19327
19328
 
19328
19329
  var STACK_ALIGN = 16;
19329
19330
 
@@ -31252,13 +31253,13 @@ export function init(RuntimeName, PHPLoader) {
31252
31253
  // End JS library code
31253
31254
 
31254
31255
  var ASM_CONSTS = {
31255
- 11105182: ($0) => {
31256
+ 11139230: ($0) => {
31256
31257
  if (!$0) {
31257
31258
  AL.alcErr = 0xa004;
31258
31259
  return 1;
31259
31260
  }
31260
31261
  },
31261
- 11105230: ($0) => {
31262
+ 11139278: ($0) => {
31262
31263
  if (!AL.currentCtx) {
31263
31264
  err('alGetProcAddress() called without a valid context');
31264
31265
  return 1;
@@ -34105,6 +34106,11 @@ export function init(RuntimeName, PHPLoader) {
34105
34106
  (_wasm_sleep = Module['_wasm_sleep'] = wasmExports['wasm_sleep'])(a0));
34106
34107
  var ___cxa_throw = (a0, a1, a2) =>
34107
34108
  (___cxa_throw = wasmExports['__cxa_throw'])(a0, a1, a2);
34109
+ var _initgroups = (Module['_initgroups'] = (a0, a1) =>
34110
+ (_initgroups = Module['_initgroups'] = wasmExports['initgroups'])(
34111
+ a0,
34112
+ a1
34113
+ ));
34108
34114
  var ___wrap_usleep = (Module['___wrap_usleep'] = (a0) =>
34109
34115
  (___wrap_usleep = Module['___wrap_usleep'] =
34110
34116
  wasmExports['__wrap_usleep'])(a0));
@@ -34424,6 +34430,15 @@ export function init(RuntimeName, PHPLoader) {
34424
34430
  };
34425
34431
  }
34426
34432
 
34433
+ /**
34434
+ * Expose the PHP version so the PHP class can make version-specific
34435
+ * adjustments to `php.ini`.
34436
+ */
34437
+ PHPLoader['phpVersion'] = (() => {
34438
+ const [major, minor, patch] = phpVersionString.split('.').map(Number);
34439
+ return { major, minor, patch };
34440
+ })();
34441
+
34427
34442
  return PHPLoader;
34428
34443
 
34429
34444
  // Close the opening bracket from esm-prefix.js:
package/jspi/php_8_0.js CHANGED
@@ -8,7 +8,8 @@ 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 = 30349968;
11
+ export const dependenciesTotalSize = 30759315;
12
+ const phpVersionString = '8.0.30';
12
13
  export function init(RuntimeName, PHPLoader) {
13
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
14
15
  // include: shell.js
@@ -847,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
847
848
  },
848
849
  };
849
850
 
850
- var ___heap_base = 13134240;
851
+ var ___heap_base = 14177504;
851
852
 
852
853
  var alignMemory = (size, alignment) => {
853
854
  return Math.ceil(size / alignment) * alignment;
@@ -1011,7 +1012,7 @@ export function init(RuntimeName, PHPLoader) {
1011
1012
 
1012
1013
  /** @type {WebAssembly.Table} */
1013
1014
  var wasmTable = new WebAssembly.Table({
1014
- initial: 15336,
1015
+ initial: 15404,
1015
1016
  element: 'anyfunc',
1016
1017
  });
1017
1018
  var getWasmTableEntry = (funcPtr) => {
@@ -1742,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
1742
1743
  1024
1743
1744
  );
1744
1745
 
1745
- var ___stack_high = 13134240;
1746
+ var ___stack_high = 14177504;
1746
1747
 
1747
- var ___stack_low = 13068704;
1748
+ var ___stack_low = 13128928;
1748
1749
 
1749
1750
  var ___stack_pointer = new WebAssembly.Global(
1750
1751
  { value: 'i32', mutable: true },
1751
- 13134240
1752
+ 14177504
1752
1753
  );
1753
1754
 
1754
1755
  var PATH = {
@@ -19323,7 +19324,7 @@ export function init(RuntimeName, PHPLoader) {
19323
19324
 
19324
19325
  var addOnExit = (cb) => onExits.unshift(cb);
19325
19326
 
19326
- var STACK_SIZE = 65536;
19327
+ var STACK_SIZE = 1048576;
19327
19328
 
19328
19329
  var STACK_ALIGN = 16;
19329
19330
 
@@ -31252,13 +31253,13 @@ export function init(RuntimeName, PHPLoader) {
31252
31253
  // End JS library code
31253
31254
 
31254
31255
  var ASM_CONSTS = {
31255
- 12138558: ($0) => {
31256
+ 12161278: ($0) => {
31256
31257
  if (!$0) {
31257
31258
  AL.alcErr = 0xa004;
31258
31259
  return 1;
31259
31260
  }
31260
31261
  },
31261
- 12138606: ($0) => {
31262
+ 12161326: ($0) => {
31262
31263
  if (!AL.currentCtx) {
31263
31264
  err('alGetProcAddress() called without a valid context');
31264
31265
  return 1;
@@ -34105,6 +34106,11 @@ export function init(RuntimeName, PHPLoader) {
34105
34106
  var ___cxa_throw = (a0, a1, a2) =>
34106
34107
  (___cxa_throw = wasmExports['__cxa_throw'])(a0, a1, a2);
34107
34108
  var _calloc = (a0, a1) => (_calloc = wasmExports['calloc'])(a0, a1);
34109
+ var _initgroups = (Module['_initgroups'] = (a0, a1) =>
34110
+ (_initgroups = Module['_initgroups'] = wasmExports['initgroups'])(
34111
+ a0,
34112
+ a1
34113
+ ));
34108
34114
  var ___wrap_usleep = (Module['___wrap_usleep'] = (a0) =>
34109
34115
  (___wrap_usleep = Module['___wrap_usleep'] =
34110
34116
  wasmExports['__wrap_usleep'])(a0));
@@ -34424,6 +34430,15 @@ export function init(RuntimeName, PHPLoader) {
34424
34430
  };
34425
34431
  }
34426
34432
 
34433
+ /**
34434
+ * Expose the PHP version so the PHP class can make version-specific
34435
+ * adjustments to `php.ini`.
34436
+ */
34437
+ PHPLoader['phpVersion'] = (() => {
34438
+ const [major, minor, patch] = phpVersionString.split('.').map(Number);
34439
+ return { major, minor, patch };
34440
+ })();
34441
+
34427
34442
  return PHPLoader;
34428
34443
 
34429
34444
  // Close the opening bracket from esm-prefix.js:
package/jspi/php_8_1.js CHANGED
@@ -6,9 +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_1_23', 'php_8_1.wasm');
9
+ const dependencyFilename = path.join(__dirname, '8_1_33', 'php_8_1.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 30963592;
11
+ export const dependenciesTotalSize = 31100909;
12
+ const phpVersionString = '8.1.33';
12
13
  export function init(RuntimeName, PHPLoader) {
13
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
14
15
  // include: shell.js
@@ -847,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
847
848
  },
848
849
  };
849
850
 
850
- var ___heap_base = 13228640;
851
+ var ___heap_base = 14258208;
851
852
 
852
853
  var alignMemory = (size, alignment) => {
853
854
  return Math.ceil(size / alignment) * alignment;
@@ -1011,7 +1012,7 @@ export function init(RuntimeName, PHPLoader) {
1011
1012
 
1012
1013
  /** @type {WebAssembly.Table} */
1013
1014
  var wasmTable = new WebAssembly.Table({
1014
- initial: 15384,
1015
+ initial: 15458,
1015
1016
  element: 'anyfunc',
1016
1017
  });
1017
1018
  var getWasmTableEntry = (funcPtr) => {
@@ -1742,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
1742
1743
  1024
1743
1744
  );
1744
1745
 
1745
- var ___stack_high = 13228640;
1746
+ var ___stack_high = 14258208;
1746
1747
 
1747
- var ___stack_low = 13163104;
1748
+ var ___stack_low = 13209632;
1748
1749
 
1749
1750
  var ___stack_pointer = new WebAssembly.Global(
1750
1751
  { value: 'i32', mutable: true },
1751
- 13228640
1752
+ 14258208
1752
1753
  );
1753
1754
 
1754
1755
  var PATH = {
@@ -19329,7 +19330,7 @@ export function init(RuntimeName, PHPLoader) {
19329
19330
 
19330
19331
  var addOnExit = (cb) => onExits.unshift(cb);
19331
19332
 
19332
- var STACK_SIZE = 65536;
19333
+ var STACK_SIZE = 1048576;
19333
19334
 
19334
19335
  var STACK_ALIGN = 16;
19335
19336
 
@@ -31252,13 +31253,13 @@ export function init(RuntimeName, PHPLoader) {
31252
31253
  // End JS library code
31253
31254
 
31254
31255
  var ASM_CONSTS = {
31255
- 12233246: ($0) => {
31256
+ 12242382: ($0) => {
31256
31257
  if (!$0) {
31257
31258
  AL.alcErr = 0xa004;
31258
31259
  return 1;
31259
31260
  }
31260
31261
  },
31261
- 12233294: ($0) => {
31262
+ 12242430: ($0) => {
31262
31263
  if (!AL.currentCtx) {
31263
31264
  err('alGetProcAddress() called without a valid context');
31264
31265
  return 1;
@@ -34105,6 +34106,11 @@ export function init(RuntimeName, PHPLoader) {
34105
34106
  var ___cxa_throw = (a0, a1, a2) =>
34106
34107
  (___cxa_throw = wasmExports['__cxa_throw'])(a0, a1, a2);
34107
34108
  var _calloc = (a0, a1) => (_calloc = wasmExports['calloc'])(a0, a1);
34109
+ var _initgroups = (Module['_initgroups'] = (a0, a1) =>
34110
+ (_initgroups = Module['_initgroups'] = wasmExports['initgroups'])(
34111
+ a0,
34112
+ a1
34113
+ ));
34108
34114
  var ___wrap_usleep = (Module['___wrap_usleep'] = (a0) =>
34109
34115
  (___wrap_usleep = Module['___wrap_usleep'] =
34110
34116
  wasmExports['__wrap_usleep'])(a0));
@@ -34424,6 +34430,15 @@ export function init(RuntimeName, PHPLoader) {
34424
34430
  };
34425
34431
  }
34426
34432
 
34433
+ /**
34434
+ * Expose the PHP version so the PHP class can make version-specific
34435
+ * adjustments to `php.ini`.
34436
+ */
34437
+ PHPLoader['phpVersion'] = (() => {
34438
+ const [major, minor, patch] = phpVersionString.split('.').map(Number);
34439
+ return { major, minor, patch };
34440
+ })();
34441
+
34427
34442
  return PHPLoader;
34428
34443
 
34429
34444
  // Close the opening bracket from esm-prefix.js:
package/jspi/php_8_2.js CHANGED
@@ -6,9 +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_2_10', 'php_8_2.wasm');
9
+ const dependencyFilename = path.join(__dirname, '8_2_29', 'php_8_2.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 31311839;
11
+ export const dependenciesTotalSize = 31474550;
12
+ const phpVersionString = '8.2.29';
12
13
  export function init(RuntimeName, PHPLoader) {
13
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
14
15
  // include: shell.js
@@ -847,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
847
848
  },
848
849
  };
849
850
 
850
- var ___heap_base = 13258720;
851
+ var ___heap_base = 14295392;
851
852
 
852
853
  var alignMemory = (size, alignment) => {
853
854
  return Math.ceil(size / alignment) * alignment;
@@ -1011,7 +1012,7 @@ export function init(RuntimeName, PHPLoader) {
1011
1012
 
1012
1013
  /** @type {WebAssembly.Table} */
1013
1014
  var wasmTable = new WebAssembly.Table({
1014
- initial: 15615,
1015
+ initial: 15696,
1015
1016
  element: 'anyfunc',
1016
1017
  });
1017
1018
  var getWasmTableEntry = (funcPtr) => {
@@ -1742,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
1742
1743
  1024
1743
1744
  );
1744
1745
 
1745
- var ___stack_high = 13258720;
1746
+ var ___stack_high = 14295392;
1746
1747
 
1747
- var ___stack_low = 13193184;
1748
+ var ___stack_low = 13246816;
1748
1749
 
1749
1750
  var ___stack_pointer = new WebAssembly.Global(
1750
1751
  { value: 'i32', mutable: true },
1751
- 13258720
1752
+ 14295392
1752
1753
  );
1753
1754
 
1754
1755
  var PATH = {
@@ -19331,7 +19332,7 @@ export function init(RuntimeName, PHPLoader) {
19331
19332
 
19332
19333
  var addOnExit = (cb) => onExits.unshift(cb);
19333
19334
 
19334
- var STACK_SIZE = 65536;
19335
+ var STACK_SIZE = 1048576;
19335
19336
 
19336
19337
  var STACK_ALIGN = 16;
19337
19338
 
@@ -31252,13 +31253,13 @@ export function init(RuntimeName, PHPLoader) {
31252
31253
  // End JS library code
31253
31254
 
31254
31255
  var ASM_CONSTS = {
31255
- 12264846: ($0) => {
31256
+ 12281038: ($0) => {
31256
31257
  if (!$0) {
31257
31258
  AL.alcErr = 0xa004;
31258
31259
  return 1;
31259
31260
  }
31260
31261
  },
31261
- 12264894: ($0) => {
31262
+ 12281086: ($0) => {
31262
31263
  if (!AL.currentCtx) {
31263
31264
  err('alGetProcAddress() called without a valid context');
31264
31265
  return 1;
@@ -34099,6 +34100,11 @@ export function init(RuntimeName, PHPLoader) {
34099
34100
  var _calloc = (a0, a1) => (_calloc = wasmExports['calloc'])(a0, a1);
34100
34101
  var _flock = (Module['_flock'] = (a0, a1) =>
34101
34102
  (_flock = Module['_flock'] = wasmExports['flock'])(a0, a1));
34103
+ var _initgroups = (Module['_initgroups'] = (a0, a1) =>
34104
+ (_initgroups = Module['_initgroups'] = wasmExports['initgroups'])(
34105
+ a0,
34106
+ a1
34107
+ ));
34102
34108
  var _wasm_read = (Module['_wasm_read'] = (a0, a1, a2) =>
34103
34109
  (_wasm_read = Module['_wasm_read'] = wasmExports['wasm_read'])(
34104
34110
  a0,
@@ -34424,6 +34430,15 @@ export function init(RuntimeName, PHPLoader) {
34424
34430
  };
34425
34431
  }
34426
34432
 
34433
+ /**
34434
+ * Expose the PHP version so the PHP class can make version-specific
34435
+ * adjustments to `php.ini`.
34436
+ */
34437
+ PHPLoader['phpVersion'] = (() => {
34438
+ const [major, minor, patch] = phpVersionString.split('.').map(Number);
34439
+ return { major, minor, patch };
34440
+ })();
34441
+
34427
34442
  return PHPLoader;
34428
34443
 
34429
34444
  // Close the opening bracket from esm-prefix.js: