@php-wasm/node 1.2.2 → 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.
Files changed (44) 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_23 → 8_1_33}/php_8_1.wasm +0 -0
  6. package/asyncify/{8_2_10 → 8_2_29}/php_8_2.wasm +0 -0
  7. package/asyncify/{8_3_0 → 8_3_23}/php_8_3.wasm +0 -0
  8. package/asyncify/{8_4_0 → 8_4_10}/php_8_4.wasm +0 -0
  9. package/asyncify/extensions/xdebug/7_2/xdebug.so +0 -0
  10. package/asyncify/extensions/xdebug/7_3/xdebug.so +0 -0
  11. package/asyncify/extensions/xdebug/7_4/xdebug.so +0 -0
  12. package/asyncify/extensions/xdebug/8_0/xdebug.so +0 -0
  13. package/asyncify/extensions/xdebug/8_1/xdebug.so +0 -0
  14. package/asyncify/extensions/xdebug/8_2/xdebug.so +0 -0
  15. package/asyncify/extensions/xdebug/8_3/xdebug.so +0 -0
  16. package/asyncify/extensions/xdebug/8_4/xdebug.so +0 -0
  17. package/asyncify/php_7_2.js +61 -51
  18. package/asyncify/php_7_3.js +75 -51
  19. package/asyncify/php_7_4.js +88 -51
  20. package/asyncify/php_8_0.js +79 -56
  21. package/asyncify/php_8_1.js +92 -55
  22. package/asyncify/php_8_2.js +92 -55
  23. package/asyncify/php_8_3.js +92 -55
  24. package/asyncify/php_8_4.js +90 -53
  25. package/index.cjs +906 -562
  26. package/index.js +907 -561
  27. package/jspi/7_2_34/php_7_2.wasm +0 -0
  28. package/jspi/7_3_33/php_7_3.wasm +0 -0
  29. package/jspi/7_4_33/php_7_4.wasm +0 -0
  30. package/jspi/8_0_30/php_8_0.wasm +0 -0
  31. package/jspi/{8_1_23 → 8_1_33}/php_8_1.wasm +0 -0
  32. package/jspi/{8_2_10 → 8_2_29}/php_8_2.wasm +0 -0
  33. package/jspi/{8_3_0 → 8_3_23}/php_8_3.wasm +0 -0
  34. package/jspi/{8_4_0 → 8_4_10}/php_8_4.wasm +0 -0
  35. package/jspi/php_7_2.js +29 -15
  36. package/jspi/php_7_3.js +29 -15
  37. package/jspi/php_7_4.js +29 -15
  38. package/jspi/php_8_0.js +29 -15
  39. package/jspi/php_8_1.js +30 -16
  40. package/jspi/php_8_2.js +30 -16
  41. package/jspi/php_8_3.js +30 -16
  42. package/jspi/php_8_4.js +30 -16
  43. package/lib/node-fs-mount.d.ts +1 -1
  44. package/package.json +7 -7
@@ -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 = 29675281;
11
+ export const dependenciesTotalSize = 30107729;
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
@@ -830,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
830
831
  },
831
832
  };
832
833
 
833
- var ___heap_base = 12029184;
834
+ var ___heap_base = 13083904;
834
835
 
835
836
  var alignMemory = (size, alignment) => {
836
837
  return Math.ceil(size / alignment) * alignment;
@@ -994,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
994
995
 
995
996
  /** @type {WebAssembly.Table} */
996
997
  var wasmTable = new WebAssembly.Table({
997
- initial: 15481,
998
+ initial: 15610,
998
999
  element: 'anyfunc',
999
1000
  });
1000
1001
  var getWasmTableEntry = (funcPtr) => {
@@ -1853,13 +1854,13 @@ export function init(RuntimeName, PHPLoader) {
1853
1854
  1024
1854
1855
  );
1855
1856
 
1856
- var ___stack_high = 12029184;
1857
+ var ___stack_high = 13083904;
1857
1858
 
1858
- var ___stack_low = 11963648;
1859
+ var ___stack_low = 12035328;
1859
1860
 
1860
1861
  var ___stack_pointer = new WebAssembly.Global(
1861
1862
  { value: 'i32', mutable: true },
1862
- 12029184
1863
+ 13083904
1863
1864
  );
1864
1865
 
1865
1866
  var PATH = {
@@ -3913,10 +3914,6 @@ export function init(RuntimeName, PHPLoader) {
3913
3914
  if (FS.isMountpoint(node)) {
3914
3915
  throw new FS.ErrnoError(10);
3915
3916
  }
3916
-
3917
- if (!FS.isDir(node.mode)) {
3918
- throw new FS.ErrnoError(54);
3919
- }
3920
3917
  }
3921
3918
 
3922
3919
  var mount = {
@@ -17742,10 +17739,6 @@ export function init(RuntimeName, PHPLoader) {
17742
17739
  HEAPU32[iov >> 2] = buffer; // iov_base
17743
17740
  HEAPU32[(iov + 4) >> 2] = CHUNK_SIZE; // iov_len
17744
17741
 
17745
- if (typeof js_fd_read === 'undefined') {
17746
- globalThis.js_fd_read = __asyncjs__js_fd_read;
17747
- }
17748
-
17749
17742
  function pump() {
17750
17743
  try {
17751
17744
  while (true) {
@@ -19603,7 +19596,7 @@ export function init(RuntimeName, PHPLoader) {
19603
19596
 
19604
19597
  var addOnExit = (cb) => onExits.unshift(cb);
19605
19598
 
19606
- var STACK_SIZE = 65536;
19599
+ var STACK_SIZE = 1048576;
19607
19600
 
19608
19601
  var STACK_ALIGN = 16;
19609
19602
 
@@ -31815,13 +31808,13 @@ export function init(RuntimeName, PHPLoader) {
31815
31808
  // End JS library code
31816
31809
 
31817
31810
  var ASM_CONSTS = {
31818
- 11104566: ($0) => {
31811
+ 11138685: ($0) => {
31819
31812
  if (!$0) {
31820
31813
  AL.alcErr = 0xa004;
31821
31814
  return 1;
31822
31815
  }
31823
31816
  },
31824
- 11104614: ($0) => {
31817
+ 11138733: ($0) => {
31825
31818
  if (!AL.currentCtx) {
31826
31819
  err('alGetProcAddress() called without a valid context');
31827
31820
  return 1;
@@ -31943,6 +31936,9 @@ export function init(RuntimeName, PHPLoader) {
31943
31936
  while (true) {
31944
31937
  var mask = POLLNVAL;
31945
31938
  mask = SYSCALLS.DEFAULT_POLLMASK;
31939
+ if (FS.isClosed(stream)) {
31940
+ return ERRNO_CODES.EBADF;
31941
+ }
31946
31942
  if (stream.stream_ops?.poll) {
31947
31943
  mask = stream.stream_ops.poll(stream, -1);
31948
31944
  }
@@ -34579,6 +34575,10 @@ export function init(RuntimeName, PHPLoader) {
34579
34575
  /** @export */
34580
34576
  invoke_iijiji,
34581
34577
  /** @export */
34578
+ invoke_iijj,
34579
+ /** @export */
34580
+ invoke_ji,
34581
+ /** @export */
34582
34582
  invoke_jii,
34583
34583
  /** @export */
34584
34584
  invoke_jiii,
@@ -34733,6 +34733,11 @@ export function init(RuntimeName, PHPLoader) {
34733
34733
  var _htonl = (a0) => (_htonl = wasmExports['htonl'])(a0);
34734
34734
  var _wasm_sleep = (Module['_wasm_sleep'] = (a0) =>
34735
34735
  (_wasm_sleep = Module['_wasm_sleep'] = wasmExports['wasm_sleep'])(a0));
34736
+ var _initgroups = (Module['_initgroups'] = (a0, a1) =>
34737
+ (_initgroups = Module['_initgroups'] = wasmExports['initgroups'])(
34738
+ a0,
34739
+ a1
34740
+ ));
34736
34741
  var ___wrap_usleep = (Module['___wrap_usleep'] = (a0) =>
34737
34742
  (___wrap_usleep = Module['___wrap_usleep'] =
34738
34743
  wasmExports['__wrap_usleep'])(a0));
@@ -35031,19 +35036,10 @@ export function init(RuntimeName, PHPLoader) {
35031
35036
  }
35032
35037
  }
35033
35038
 
35034
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
35039
+ function invoke_vji(index, a1, a2) {
35035
35040
  var sp = stackSave();
35036
35041
  try {
35037
- return Module['dynCall_iiiiiiii'](
35038
- index,
35039
- a1,
35040
- a2,
35041
- a3,
35042
- a4,
35043
- a5,
35044
- a6,
35045
- a7
35046
- );
35042
+ Module['dynCall_vji'](index, a1, a2);
35047
35043
  } catch (e) {
35048
35044
  stackRestore(sp);
35049
35045
  if (e !== e + 0) throw e;
@@ -35051,32 +35047,34 @@ export function init(RuntimeName, PHPLoader) {
35051
35047
  }
35052
35048
  }
35053
35049
 
35054
- function invoke_iiji(index, a1, a2, a3) {
35050
+ function invoke_jii(index, a1, a2) {
35055
35051
  var sp = stackSave();
35056
35052
  try {
35057
- return Module['dynCall_iiji'](index, a1, a2, a3);
35053
+ return Module['dynCall_jii'](index, a1, a2);
35058
35054
  } catch (e) {
35059
35055
  stackRestore(sp);
35060
35056
  if (e !== e + 0) throw e;
35061
35057
  _setThrew(1, 0);
35058
+ return 0n;
35062
35059
  }
35063
35060
  }
35064
35061
 
35065
- function invoke_iijii(index, a1, a2, a3, a4) {
35062
+ function invoke_ji(index, a1) {
35066
35063
  var sp = stackSave();
35067
35064
  try {
35068
- return Module['dynCall_iijii'](index, a1, a2, a3, a4);
35065
+ return Module['dynCall_ji'](index, a1);
35069
35066
  } catch (e) {
35070
35067
  stackRestore(sp);
35071
35068
  if (e !== e + 0) throw e;
35072
35069
  _setThrew(1, 0);
35070
+ return 0n;
35073
35071
  }
35074
35072
  }
35075
35073
 
35076
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
35074
+ function invoke_v(index) {
35077
35075
  var sp = stackSave();
35078
35076
  try {
35079
- return Module['dynCall_iijiji'](index, a1, a2, a3, a4, a5);
35077
+ Module['dynCall_v'](index);
35080
35078
  } catch (e) {
35081
35079
  stackRestore(sp);
35082
35080
  if (e !== e + 0) throw e;
@@ -35084,10 +35082,10 @@ export function init(RuntimeName, PHPLoader) {
35084
35082
  }
35085
35083
  }
35086
35084
 
35087
- function invoke_v(index) {
35085
+ function invoke_iijj(index, a1, a2, a3) {
35088
35086
  var sp = stackSave();
35089
35087
  try {
35090
- Module['dynCall_v'](index);
35088
+ return Module['dynCall_iijj'](index, a1, a2, a3);
35091
35089
  } catch (e) {
35092
35090
  stackRestore(sp);
35093
35091
  if (e !== e + 0) throw e;
@@ -35095,10 +35093,19 @@ export function init(RuntimeName, PHPLoader) {
35095
35093
  }
35096
35094
  }
35097
35095
 
35098
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
35096
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
35099
35097
  var sp = stackSave();
35100
35098
  try {
35101
- return Module['dynCall_iiiiiii'](index, a1, a2, a3, a4, a5, a6);
35099
+ return Module['dynCall_iiiiiiii'](
35100
+ index,
35101
+ a1,
35102
+ a2,
35103
+ a3,
35104
+ a4,
35105
+ a5,
35106
+ a6,
35107
+ a7
35108
+ );
35102
35109
  } catch (e) {
35103
35110
  stackRestore(sp);
35104
35111
  if (e !== e + 0) throw e;
@@ -35106,10 +35113,10 @@ export function init(RuntimeName, PHPLoader) {
35106
35113
  }
35107
35114
  }
35108
35115
 
35109
- function invoke_vji(index, a1, a2) {
35116
+ function invoke_iiji(index, a1, a2, a3) {
35110
35117
  var sp = stackSave();
35111
35118
  try {
35112
- Module['dynCall_vji'](index, a1, a2);
35119
+ return Module['dynCall_iiji'](index, a1, a2, a3);
35113
35120
  } catch (e) {
35114
35121
  stackRestore(sp);
35115
35122
  if (e !== e + 0) throw e;
@@ -35117,10 +35124,10 @@ export function init(RuntimeName, PHPLoader) {
35117
35124
  }
35118
35125
  }
35119
35126
 
35120
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
35127
+ function invoke_iijii(index, a1, a2, a3, a4) {
35121
35128
  var sp = stackSave();
35122
35129
  try {
35123
- Module['dynCall_viiiiii'](index, a1, a2, a3, a4, a5, a6);
35130
+ return Module['dynCall_iijii'](index, a1, a2, a3, a4);
35124
35131
  } catch (e) {
35125
35132
  stackRestore(sp);
35126
35133
  if (e !== e + 0) throw e;
@@ -35128,10 +35135,10 @@ export function init(RuntimeName, PHPLoader) {
35128
35135
  }
35129
35136
  }
35130
35137
 
35131
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
35138
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
35132
35139
  var sp = stackSave();
35133
35140
  try {
35134
- Module['dynCall_viijii'](index, a1, a2, a3, a4, a5);
35141
+ return Module['dynCall_iijiji'](index, a1, a2, a3, a4, a5);
35135
35142
  } catch (e) {
35136
35143
  stackRestore(sp);
35137
35144
  if (e !== e + 0) throw e;
@@ -35139,10 +35146,10 @@ export function init(RuntimeName, PHPLoader) {
35139
35146
  }
35140
35147
  }
35141
35148
 
35142
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
35149
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
35143
35150
  var sp = stackSave();
35144
35151
  try {
35145
- Module['dynCall_viidii'](index, a1, a2, a3, a4, a5);
35152
+ return Module['dynCall_iiiiiii'](index, a1, a2, a3, a4, a5, a6);
35146
35153
  } catch (e) {
35147
35154
  stackRestore(sp);
35148
35155
  if (e !== e + 0) throw e;
@@ -35150,22 +35157,43 @@ export function init(RuntimeName, PHPLoader) {
35150
35157
  }
35151
35158
  }
35152
35159
 
35153
- function invoke_jiii(index, a1, a2, a3) {
35160
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
35154
35161
  var sp = stackSave();
35155
35162
  try {
35156
- return Module['dynCall_jiii'](index, a1, a2, a3);
35163
+ Module['dynCall_viiiiii'](index, a1, a2, a3, a4, a5, a6);
35157
35164
  } catch (e) {
35158
35165
  stackRestore(sp);
35159
35166
  if (e !== e + 0) throw e;
35160
35167
  _setThrew(1, 0);
35161
- return 0n;
35162
35168
  }
35163
35169
  }
35164
35170
 
35165
- function invoke_jii(index, a1, a2) {
35171
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
35166
35172
  var sp = stackSave();
35167
35173
  try {
35168
- return Module['dynCall_jii'](index, a1, a2);
35174
+ Module['dynCall_viijii'](index, a1, a2, a3, a4, a5);
35175
+ } catch (e) {
35176
+ stackRestore(sp);
35177
+ if (e !== e + 0) throw e;
35178
+ _setThrew(1, 0);
35179
+ }
35180
+ }
35181
+
35182
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
35183
+ var sp = stackSave();
35184
+ try {
35185
+ Module['dynCall_viidii'](index, a1, a2, a3, a4, a5);
35186
+ } catch (e) {
35187
+ stackRestore(sp);
35188
+ if (e !== e + 0) throw e;
35189
+ _setThrew(1, 0);
35190
+ }
35191
+ }
35192
+
35193
+ function invoke_jiii(index, a1, a2, a3) {
35194
+ var sp = stackSave();
35195
+ try {
35196
+ return Module['dynCall_jiii'](index, a1, a2, a3);
35169
35197
  } catch (e) {
35170
35198
  stackRestore(sp);
35171
35199
  if (e !== e + 0) throw e;
@@ -35359,6 +35387,15 @@ export function init(RuntimeName, PHPLoader) {
35359
35387
  };
35360
35388
  }
35361
35389
 
35390
+ /**
35391
+ * Expose the PHP version so the PHP class can make version-specific
35392
+ * adjustments to `php.ini`.
35393
+ */
35394
+ PHPLoader['phpVersion'] = (() => {
35395
+ const [major, minor, patch] = phpVersionString.split('.').map(Number);
35396
+ return { major, minor, patch };
35397
+ })();
35398
+
35362
35399
  return PHPLoader;
35363
35400
 
35364
35401
  // Close the opening bracket from esm-prefix.js:
@@ -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 = 30898967;
11
+ export const dependenciesTotalSize = 31315360;
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
@@ -830,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
830
831
  },
831
832
  };
832
833
 
833
- var ___heap_base = 13133056;
834
+ var ___heap_base = 14176384;
834
835
 
835
836
  var alignMemory = (size, alignment) => {
836
837
  return Math.ceil(size / alignment) * alignment;
@@ -994,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
994
995
 
995
996
  /** @type {WebAssembly.Table} */
996
997
  var wasmTable = new WebAssembly.Table({
997
- initial: 15613,
998
+ initial: 15745,
998
999
  element: 'anyfunc',
999
1000
  });
1000
1001
  var getWasmTableEntry = (funcPtr) => {
@@ -1853,13 +1854,13 @@ export function init(RuntimeName, PHPLoader) {
1853
1854
  1024
1854
1855
  );
1855
1856
 
1856
- var ___stack_high = 13133056;
1857
+ var ___stack_high = 14176384;
1857
1858
 
1858
- var ___stack_low = 13067520;
1859
+ var ___stack_low = 13127808;
1859
1860
 
1860
1861
  var ___stack_pointer = new WebAssembly.Global(
1861
1862
  { value: 'i32', mutable: true },
1862
- 13133056
1863
+ 14176384
1863
1864
  );
1864
1865
 
1865
1866
  var PATH = {
@@ -3913,10 +3914,6 @@ export function init(RuntimeName, PHPLoader) {
3913
3914
  if (FS.isMountpoint(node)) {
3914
3915
  throw new FS.ErrnoError(10);
3915
3916
  }
3916
-
3917
- if (!FS.isDir(node.mode)) {
3918
- throw new FS.ErrnoError(54);
3919
- }
3920
3917
  }
3921
3918
 
3922
3919
  var mount = {
@@ -17742,10 +17739,6 @@ export function init(RuntimeName, PHPLoader) {
17742
17739
  HEAPU32[iov >> 2] = buffer; // iov_base
17743
17740
  HEAPU32[(iov + 4) >> 2] = CHUNK_SIZE; // iov_len
17744
17741
 
17745
- if (typeof js_fd_read === 'undefined') {
17746
- globalThis.js_fd_read = __asyncjs__js_fd_read;
17747
- }
17748
-
17749
17742
  function pump() {
17750
17743
  try {
17751
17744
  while (true) {
@@ -19603,7 +19596,7 @@ export function init(RuntimeName, PHPLoader) {
19603
19596
 
19604
19597
  var addOnExit = (cb) => onExits.unshift(cb);
19605
19598
 
19606
- var STACK_SIZE = 65536;
19599
+ var STACK_SIZE = 1048576;
19607
19600
 
19608
19601
  var STACK_ALIGN = 16;
19609
19602
 
@@ -31815,13 +31808,13 @@ export function init(RuntimeName, PHPLoader) {
31815
31808
  // End JS library code
31816
31809
 
31817
31810
  var ASM_CONSTS = {
31818
- 12137942: ($0) => {
31811
+ 12160717: ($0) => {
31819
31812
  if (!$0) {
31820
31813
  AL.alcErr = 0xa004;
31821
31814
  return 1;
31822
31815
  }
31823
31816
  },
31824
- 12137990: ($0) => {
31817
+ 12160765: ($0) => {
31825
31818
  if (!AL.currentCtx) {
31826
31819
  err('alGetProcAddress() called without a valid context');
31827
31820
  return 1;
@@ -31943,6 +31936,9 @@ export function init(RuntimeName, PHPLoader) {
31943
31936
  while (true) {
31944
31937
  var mask = POLLNVAL;
31945
31938
  mask = SYSCALLS.DEFAULT_POLLMASK;
31939
+ if (FS.isClosed(stream)) {
31940
+ return ERRNO_CODES.EBADF;
31941
+ }
31946
31942
  if (stream.stream_ops?.poll) {
31947
31943
  mask = stream.stream_ops.poll(stream, -1);
31948
31944
  }
@@ -34579,6 +34575,8 @@ export function init(RuntimeName, PHPLoader) {
34579
34575
  /** @export */
34580
34576
  invoke_iijiji,
34581
34577
  /** @export */
34578
+ invoke_iijj,
34579
+ /** @export */
34582
34580
  invoke_ji,
34583
34581
  /** @export */
34584
34582
  invoke_jii,
@@ -34737,6 +34735,11 @@ export function init(RuntimeName, PHPLoader) {
34737
34735
  var _wasm_sleep = (Module['_wasm_sleep'] = (a0) =>
34738
34736
  (_wasm_sleep = Module['_wasm_sleep'] = wasmExports['wasm_sleep'])(a0));
34739
34737
  var _calloc = (a0, a1) => (_calloc = wasmExports['calloc'])(a0, a1);
34738
+ var _initgroups = (Module['_initgroups'] = (a0, a1) =>
34739
+ (_initgroups = Module['_initgroups'] = wasmExports['initgroups'])(
34740
+ a0,
34741
+ a1
34742
+ ));
34740
34743
  var ___wrap_usleep = (Module['___wrap_usleep'] = (a0) =>
34741
34744
  (___wrap_usleep = Module['___wrap_usleep'] =
34742
34745
  wasmExports['__wrap_usleep'])(a0));
@@ -35035,19 +35038,10 @@ export function init(RuntimeName, PHPLoader) {
35035
35038
  }
35036
35039
  }
35037
35040
 
35038
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
35041
+ function invoke_vji(index, a1, a2) {
35039
35042
  var sp = stackSave();
35040
35043
  try {
35041
- return Module['dynCall_iiiiiiii'](
35042
- index,
35043
- a1,
35044
- a2,
35045
- a3,
35046
- a4,
35047
- a5,
35048
- a6,
35049
- a7
35050
- );
35044
+ Module['dynCall_vji'](index, a1, a2);
35051
35045
  } catch (e) {
35052
35046
  stackRestore(sp);
35053
35047
  if (e !== e + 0) throw e;
@@ -35055,32 +35049,34 @@ export function init(RuntimeName, PHPLoader) {
35055
35049
  }
35056
35050
  }
35057
35051
 
35058
- function invoke_iiji(index, a1, a2, a3) {
35052
+ function invoke_jii(index, a1, a2) {
35059
35053
  var sp = stackSave();
35060
35054
  try {
35061
- return Module['dynCall_iiji'](index, a1, a2, a3);
35055
+ return Module['dynCall_jii'](index, a1, a2);
35062
35056
  } catch (e) {
35063
35057
  stackRestore(sp);
35064
35058
  if (e !== e + 0) throw e;
35065
35059
  _setThrew(1, 0);
35060
+ return 0n;
35066
35061
  }
35067
35062
  }
35068
35063
 
35069
- function invoke_iijii(index, a1, a2, a3, a4) {
35064
+ function invoke_ji(index, a1) {
35070
35065
  var sp = stackSave();
35071
35066
  try {
35072
- return Module['dynCall_iijii'](index, a1, a2, a3, a4);
35067
+ return Module['dynCall_ji'](index, a1);
35073
35068
  } catch (e) {
35074
35069
  stackRestore(sp);
35075
35070
  if (e !== e + 0) throw e;
35076
35071
  _setThrew(1, 0);
35072
+ return 0n;
35077
35073
  }
35078
35074
  }
35079
35075
 
35080
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
35076
+ function invoke_v(index) {
35081
35077
  var sp = stackSave();
35082
35078
  try {
35083
- return Module['dynCall_iijiji'](index, a1, a2, a3, a4, a5);
35079
+ Module['dynCall_v'](index);
35084
35080
  } catch (e) {
35085
35081
  stackRestore(sp);
35086
35082
  if (e !== e + 0) throw e;
@@ -35088,10 +35084,10 @@ export function init(RuntimeName, PHPLoader) {
35088
35084
  }
35089
35085
  }
35090
35086
 
35091
- function invoke_v(index) {
35087
+ function invoke_iijj(index, a1, a2, a3) {
35092
35088
  var sp = stackSave();
35093
35089
  try {
35094
- Module['dynCall_v'](index);
35090
+ return Module['dynCall_iijj'](index, a1, a2, a3);
35095
35091
  } catch (e) {
35096
35092
  stackRestore(sp);
35097
35093
  if (e !== e + 0) throw e;
@@ -35099,10 +35095,19 @@ export function init(RuntimeName, PHPLoader) {
35099
35095
  }
35100
35096
  }
35101
35097
 
35102
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
35098
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
35103
35099
  var sp = stackSave();
35104
35100
  try {
35105
- return Module['dynCall_iiiiiii'](index, a1, a2, a3, a4, a5, a6);
35101
+ return Module['dynCall_iiiiiiii'](
35102
+ index,
35103
+ a1,
35104
+ a2,
35105
+ a3,
35106
+ a4,
35107
+ a5,
35108
+ a6,
35109
+ a7
35110
+ );
35106
35111
  } catch (e) {
35107
35112
  stackRestore(sp);
35108
35113
  if (e !== e + 0) throw e;
@@ -35110,10 +35115,10 @@ export function init(RuntimeName, PHPLoader) {
35110
35115
  }
35111
35116
  }
35112
35117
 
35113
- function invoke_vji(index, a1, a2) {
35118
+ function invoke_iiji(index, a1, a2, a3) {
35114
35119
  var sp = stackSave();
35115
35120
  try {
35116
- Module['dynCall_vji'](index, a1, a2);
35121
+ return Module['dynCall_iiji'](index, a1, a2, a3);
35117
35122
  } catch (e) {
35118
35123
  stackRestore(sp);
35119
35124
  if (e !== e + 0) throw e;
@@ -35121,10 +35126,10 @@ export function init(RuntimeName, PHPLoader) {
35121
35126
  }
35122
35127
  }
35123
35128
 
35124
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
35129
+ function invoke_iijii(index, a1, a2, a3, a4) {
35125
35130
  var sp = stackSave();
35126
35131
  try {
35127
- Module['dynCall_viiiiii'](index, a1, a2, a3, a4, a5, a6);
35132
+ return Module['dynCall_iijii'](index, a1, a2, a3, a4);
35128
35133
  } catch (e) {
35129
35134
  stackRestore(sp);
35130
35135
  if (e !== e + 0) throw e;
@@ -35132,10 +35137,10 @@ export function init(RuntimeName, PHPLoader) {
35132
35137
  }
35133
35138
  }
35134
35139
 
35135
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
35140
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
35136
35141
  var sp = stackSave();
35137
35142
  try {
35138
- Module['dynCall_viijii'](index, a1, a2, a3, a4, a5);
35143
+ return Module['dynCall_iijiji'](index, a1, a2, a3, a4, a5);
35139
35144
  } catch (e) {
35140
35145
  stackRestore(sp);
35141
35146
  if (e !== e + 0) throw e;
@@ -35143,10 +35148,10 @@ export function init(RuntimeName, PHPLoader) {
35143
35148
  }
35144
35149
  }
35145
35150
 
35146
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
35151
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
35147
35152
  var sp = stackSave();
35148
35153
  try {
35149
- Module['dynCall_viidii'](index, a1, a2, a3, a4, a5);
35154
+ return Module['dynCall_iiiiiii'](index, a1, a2, a3, a4, a5, a6);
35150
35155
  } catch (e) {
35151
35156
  stackRestore(sp);
35152
35157
  if (e !== e + 0) throw e;
@@ -35154,34 +35159,32 @@ export function init(RuntimeName, PHPLoader) {
35154
35159
  }
35155
35160
  }
35156
35161
 
35157
- function invoke_jiii(index, a1, a2, a3) {
35162
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
35158
35163
  var sp = stackSave();
35159
35164
  try {
35160
- return Module['dynCall_jiii'](index, a1, a2, a3);
35165
+ Module['dynCall_viiiiii'](index, a1, a2, a3, a4, a5, a6);
35161
35166
  } catch (e) {
35162
35167
  stackRestore(sp);
35163
35168
  if (e !== e + 0) throw e;
35164
35169
  _setThrew(1, 0);
35165
- return 0n;
35166
35170
  }
35167
35171
  }
35168
35172
 
35169
- function invoke_ji(index, a1) {
35173
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
35170
35174
  var sp = stackSave();
35171
35175
  try {
35172
- return Module['dynCall_ji'](index, a1);
35176
+ Module['dynCall_viijii'](index, a1, a2, a3, a4, a5);
35173
35177
  } catch (e) {
35174
35178
  stackRestore(sp);
35175
35179
  if (e !== e + 0) throw e;
35176
35180
  _setThrew(1, 0);
35177
- return 0n;
35178
35181
  }
35179
35182
  }
35180
35183
 
35181
- function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
35184
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
35182
35185
  var sp = stackSave();
35183
35186
  try {
35184
- Module['dynCall_viiiiiii'](index, a1, a2, a3, a4, a5, a6, a7);
35187
+ Module['dynCall_viidii'](index, a1, a2, a3, a4, a5);
35185
35188
  } catch (e) {
35186
35189
  stackRestore(sp);
35187
35190
  if (e !== e + 0) throw e;
@@ -35189,10 +35192,10 @@ export function init(RuntimeName, PHPLoader) {
35189
35192
  }
35190
35193
  }
35191
35194
 
35192
- function invoke_jii(index, a1, a2) {
35195
+ function invoke_jiii(index, a1, a2, a3) {
35193
35196
  var sp = stackSave();
35194
35197
  try {
35195
- return Module['dynCall_jii'](index, a1, a2);
35198
+ return Module['dynCall_jiii'](index, a1, a2, a3);
35196
35199
  } catch (e) {
35197
35200
  stackRestore(sp);
35198
35201
  if (e !== e + 0) throw e;
@@ -35201,6 +35204,17 @@ export function init(RuntimeName, PHPLoader) {
35201
35204
  }
35202
35205
  }
35203
35206
 
35207
+ function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
35208
+ var sp = stackSave();
35209
+ try {
35210
+ Module['dynCall_viiiiiii'](index, a1, a2, a3, a4, a5, a6, a7);
35211
+ } catch (e) {
35212
+ stackRestore(sp);
35213
+ if (e !== e + 0) throw e;
35214
+ _setThrew(1, 0);
35215
+ }
35216
+ }
35217
+
35204
35218
  // include: postamble.js
35205
35219
  // === Auto-generated postamble setup entry stuff ===
35206
35220
 
@@ -35386,6 +35400,15 @@ export function init(RuntimeName, PHPLoader) {
35386
35400
  };
35387
35401
  }
35388
35402
 
35403
+ /**
35404
+ * Expose the PHP version so the PHP class can make version-specific
35405
+ * adjustments to `php.ini`.
35406
+ */
35407
+ PHPLoader['phpVersion'] = (() => {
35408
+ const [major, minor, patch] = phpVersionString.split('.').map(Number);
35409
+ return { major, minor, patch };
35410
+ })();
35411
+
35389
35412
  return PHPLoader;
35390
35413
 
35391
35414
  // Close the opening bracket from esm-prefix.js: