@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
package/index.cjs CHANGED
@@ -543,7 +543,7 @@ function init2(RuntimeName, PHPLoader) {
543
543
  newDSO("__main__", 0, wasmImports);
544
544
  }
545
545
  };
546
- var ___heap_base = 17317728;
546
+ var ___heap_base = 18314400;
547
547
  var alignMemory = (size, alignment) => {
548
548
  return Math.ceil(size / alignment) * alignment;
549
549
  };
@@ -685,7 +685,7 @@ function init2(RuntimeName, PHPLoader) {
685
685
  };
686
686
  var wasmTableMirror = [];
687
687
  var wasmTable = new WebAssembly.Table({
688
- initial: 16487,
688
+ initial: 16555,
689
689
  element: "anyfunc"
690
690
  });
691
691
  var getWasmTableEntry = (funcPtr) => {
@@ -1207,11 +1207,11 @@ function init2(RuntimeName, PHPLoader) {
1207
1207
  { value: "i32", mutable: false },
1208
1208
  1024
1209
1209
  );
1210
- var ___stack_high = 17317728;
1211
- var ___stack_low = 17252192;
1210
+ var ___stack_high = 18314400;
1211
+ var ___stack_low = 17265824;
1212
1212
  var ___stack_pointer = new WebAssembly.Global(
1213
1213
  { value: "i32", mutable: true },
1214
- 17317728
1214
+ 18314400
1215
1215
  );
1216
1216
  var PATH = {
1217
1217
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -3107,9 +3107,6 @@ function init2(RuntimeName, PHPLoader) {
3107
3107
  if (FS.isMountpoint(node)) {
3108
3108
  throw new FS.ErrnoError(10);
3109
3109
  }
3110
- if (!FS.isDir(node.mode)) {
3111
- throw new FS.ErrnoError(54);
3112
- }
3113
3110
  }
3114
3111
  var mount = {
3115
3112
  type,
@@ -5660,7 +5657,7 @@ function init2(RuntimeName, PHPLoader) {
5660
5657
  PHPLoader.trace(_js_getpid(), format, ...args2);
5661
5658
  }
5662
5659
  }
5663
- function _fd_close(fd) {
5660
+ var _fd_close = function fd_close(fd) {
5664
5661
  return Asyncify.handleAsync(async () => {
5665
5662
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
5666
5663
  if (pathResolutionErrno !== 0) {
@@ -5691,7 +5688,7 @@ function init2(RuntimeName, PHPLoader) {
5691
5688
  }
5692
5689
  return result;
5693
5690
  });
5694
- }
5691
+ };
5695
5692
  _fd_close.sig = "ii";
5696
5693
  function _builtin_fd_close(fd) {
5697
5694
  try {
@@ -15784,7 +15781,7 @@ ${e}`);
15784
15781
  var addOnPreMain = (cb) => onMains.unshift(cb);
15785
15782
  var onExits = [];
15786
15783
  var addOnExit = (cb) => onExits.unshift(cb);
15787
- var STACK_SIZE = 65536;
15784
+ var STACK_SIZE = 1048576;
15788
15785
  var STACK_ALIGN = 16;
15789
15786
  var ASSERTIONS = 0;
15790
15787
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -25219,13 +25216,13 @@ ${e}`);
25219
25216
  Module["createContext"] = Browser.createContext;
25220
25217
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
25221
25218
  var ASM_CONSTS = {
25222
- 16319223: ($0) => {
25219
+ 16328094: ($0) => {
25223
25220
  if (!$0) {
25224
25221
  AL.alcErr = 40964;
25225
25222
  return 1;
25226
25223
  }
25227
25224
  },
25228
- 16319271: ($0) => {
25225
+ 16328142: ($0) => {
25229
25226
  if (!AL.currentCtx) {
25230
25227
  err("alGetProcAddress() called without a valid context");
25231
25228
  return 1;
@@ -25351,6 +25348,9 @@ ${e}`);
25351
25348
  while (true) {
25352
25349
  var mask = POLLNVAL;
25353
25350
  mask = SYSCALLS.DEFAULT_POLLMASK;
25351
+ if (FS.isClosed(stream)) {
25352
+ return ERRNO_CODES.EBADF;
25353
+ }
25354
25354
  if (stream.stream_ops?.poll) {
25355
25355
  mask = stream.stream_ops.poll(stream, -1);
25356
25356
  }
@@ -27906,6 +27906,10 @@ ${e}`);
27906
27906
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
27907
27907
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
27908
27908
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
27909
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
27910
+ a0,
27911
+ a1
27912
+ );
27909
27913
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
27910
27914
  a0,
27911
27915
  a1,
@@ -28077,16 +28081,21 @@ ${e}`);
28077
28081
  return originalHashAddNode.apply(FS, arguments);
28078
28082
  };
28079
28083
  }
28084
+ PHPLoader["phpVersion"] = (() => {
28085
+ const [major, minor, patch] = phpVersionString.split(".").map(Number);
28086
+ return { major, minor, patch };
28087
+ })();
28080
28088
  return PHPLoader;
28081
28089
  }
28082
- var import_module, import_path, dependencyFilename, dependenciesTotalSize;
28090
+ var import_module, import_path, dependencyFilename, dependenciesTotalSize, phpVersionString;
28083
28091
  var init_php_8_4 = __esm({
28084
28092
  "packages/php-wasm/node/jspi/php_8_4.js"() {
28085
28093
  "use strict";
28086
28094
  import_module = require("module");
28087
28095
  import_path = __toESM(require("path"), 1);
28088
- dependencyFilename = import_path.default.join(__dirname + "/jspi", "8_4_0", "php_8_4.wasm");
28089
- dependenciesTotalSize = 36202422;
28096
+ dependencyFilename = import_path.default.join(__dirname + "/jspi", "8_4_10", "php_8_4.wasm");
28097
+ dependenciesTotalSize = 36372438;
28098
+ phpVersionString = "8.4.10";
28090
28099
  }
28091
28100
  });
28092
28101
 
@@ -28603,7 +28612,7 @@ function init3(RuntimeName, PHPLoader) {
28603
28612
  newDSO("__main__", 0, wasmImports);
28604
28613
  }
28605
28614
  };
28606
- var ___heap_base = 14208864;
28615
+ var ___heap_base = 15214368;
28607
28616
  var alignMemory = (size, alignment) => {
28608
28617
  return Math.ceil(size / alignment) * alignment;
28609
28618
  };
@@ -28745,7 +28754,7 @@ function init3(RuntimeName, PHPLoader) {
28745
28754
  };
28746
28755
  var wasmTableMirror = [];
28747
28756
  var wasmTable = new WebAssembly.Table({
28748
- initial: 15668,
28757
+ initial: 15738,
28749
28758
  element: "anyfunc"
28750
28759
  });
28751
28760
  var getWasmTableEntry = (funcPtr) => {
@@ -29267,11 +29276,11 @@ function init3(RuntimeName, PHPLoader) {
29267
29276
  { value: "i32", mutable: false },
29268
29277
  1024
29269
29278
  );
29270
- var ___stack_high = 14208864;
29271
- var ___stack_low = 14143328;
29279
+ var ___stack_high = 15214368;
29280
+ var ___stack_low = 14165792;
29272
29281
  var ___stack_pointer = new WebAssembly.Global(
29273
29282
  { value: "i32", mutable: true },
29274
- 14208864
29283
+ 15214368
29275
29284
  );
29276
29285
  var PATH = {
29277
29286
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -31167,9 +31176,6 @@ function init3(RuntimeName, PHPLoader) {
31167
31176
  if (FS.isMountpoint(node)) {
31168
31177
  throw new FS.ErrnoError(10);
31169
31178
  }
31170
- if (!FS.isDir(node.mode)) {
31171
- throw new FS.ErrnoError(54);
31172
- }
31173
31179
  }
31174
31180
  var mount = {
31175
31181
  type,
@@ -33720,7 +33726,7 @@ function init3(RuntimeName, PHPLoader) {
33720
33726
  PHPLoader.trace(_js_getpid(), format, ...args2);
33721
33727
  }
33722
33728
  }
33723
- function _fd_close(fd) {
33729
+ var _fd_close = function fd_close(fd) {
33724
33730
  return Asyncify.handleAsync(async () => {
33725
33731
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
33726
33732
  if (pathResolutionErrno !== 0) {
@@ -33751,7 +33757,7 @@ function init3(RuntimeName, PHPLoader) {
33751
33757
  }
33752
33758
  return result;
33753
33759
  });
33754
- }
33760
+ };
33755
33761
  _fd_close.sig = "ii";
33756
33762
  function _builtin_fd_close(fd) {
33757
33763
  try {
@@ -43844,7 +43850,7 @@ ${e}`);
43844
43850
  var addOnPreMain = (cb) => onMains.unshift(cb);
43845
43851
  var onExits = [];
43846
43852
  var addOnExit = (cb) => onExits.unshift(cb);
43847
- var STACK_SIZE = 65536;
43853
+ var STACK_SIZE = 1048576;
43848
43854
  var STACK_ALIGN = 16;
43849
43855
  var ASSERTIONS = 0;
43850
43856
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -53279,13 +53285,13 @@ ${e}`);
53279
53285
  Module["createContext"] = Browser.createContext;
53280
53286
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
53281
53287
  var ASM_CONSTS = {
53282
- 13214775: ($0) => {
53288
+ 13232622: ($0) => {
53283
53289
  if (!$0) {
53284
53290
  AL.alcErr = 40964;
53285
53291
  return 1;
53286
53292
  }
53287
53293
  },
53288
- 13214823: ($0) => {
53294
+ 13232670: ($0) => {
53289
53295
  if (!AL.currentCtx) {
53290
53296
  err("alGetProcAddress() called without a valid context");
53291
53297
  return 1;
@@ -53411,6 +53417,9 @@ ${e}`);
53411
53417
  while (true) {
53412
53418
  var mask = POLLNVAL;
53413
53419
  mask = SYSCALLS.DEFAULT_POLLMASK;
53420
+ if (FS.isClosed(stream)) {
53421
+ return ERRNO_CODES.EBADF;
53422
+ }
53414
53423
  if (stream.stream_ops?.poll) {
53415
53424
  mask = stream.stream_ops.poll(stream, -1);
53416
53425
  }
@@ -55966,6 +55975,10 @@ ${e}`);
55966
55975
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
55967
55976
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
55968
55977
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
55978
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
55979
+ a0,
55980
+ a1
55981
+ );
55969
55982
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
55970
55983
  a0,
55971
55984
  a1,
@@ -56137,16 +56150,21 @@ ${e}`);
56137
56150
  return originalHashAddNode.apply(FS, arguments);
56138
56151
  };
56139
56152
  }
56153
+ PHPLoader["phpVersion"] = (() => {
56154
+ const [major, minor, patch] = phpVersionString2.split(".").map(Number);
56155
+ return { major, minor, patch };
56156
+ })();
56140
56157
  return PHPLoader;
56141
56158
  }
56142
- var import_module2, import_path2, dependencyFilename2, dependenciesTotalSize2;
56159
+ var import_module2, import_path2, dependencyFilename2, dependenciesTotalSize2, phpVersionString2;
56143
56160
  var init_php_8_3 = __esm({
56144
56161
  "packages/php-wasm/node/jspi/php_8_3.js"() {
56145
56162
  "use strict";
56146
56163
  import_module2 = require("module");
56147
56164
  import_path2 = __toESM(require("path"), 1);
56148
- dependencyFilename2 = import_path2.default.join(__dirname + "/jspi", "8_3_0", "php_8_3.wasm");
56149
- dependenciesTotalSize2 = 32388923;
56165
+ dependencyFilename2 = import_path2.default.join(__dirname + "/jspi", "8_3_23", "php_8_3.wasm");
56166
+ dependenciesTotalSize2 = 32571921;
56167
+ phpVersionString2 = "8.3.23";
56150
56168
  }
56151
56169
  });
56152
56170
 
@@ -56663,7 +56681,7 @@ function init4(RuntimeName, PHPLoader) {
56663
56681
  newDSO("__main__", 0, wasmImports);
56664
56682
  }
56665
56683
  };
56666
- var ___heap_base = 13258656;
56684
+ var ___heap_base = 14295392;
56667
56685
  var alignMemory = (size, alignment) => {
56668
56686
  return Math.ceil(size / alignment) * alignment;
56669
56687
  };
@@ -56805,7 +56823,7 @@ function init4(RuntimeName, PHPLoader) {
56805
56823
  };
56806
56824
  var wasmTableMirror = [];
56807
56825
  var wasmTable = new WebAssembly.Table({
56808
- initial: 15615,
56826
+ initial: 15696,
56809
56827
  element: "anyfunc"
56810
56828
  });
56811
56829
  var getWasmTableEntry = (funcPtr) => {
@@ -57327,11 +57345,11 @@ function init4(RuntimeName, PHPLoader) {
57327
57345
  { value: "i32", mutable: false },
57328
57346
  1024
57329
57347
  );
57330
- var ___stack_high = 13258656;
57331
- var ___stack_low = 13193120;
57348
+ var ___stack_high = 14295392;
57349
+ var ___stack_low = 13246816;
57332
57350
  var ___stack_pointer = new WebAssembly.Global(
57333
57351
  { value: "i32", mutable: true },
57334
- 13258656
57352
+ 14295392
57335
57353
  );
57336
57354
  var PATH = {
57337
57355
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -59227,9 +59245,6 @@ function init4(RuntimeName, PHPLoader) {
59227
59245
  if (FS.isMountpoint(node)) {
59228
59246
  throw new FS.ErrnoError(10);
59229
59247
  }
59230
- if (!FS.isDir(node.mode)) {
59231
- throw new FS.ErrnoError(54);
59232
- }
59233
59248
  }
59234
59249
  var mount = {
59235
59250
  type,
@@ -61780,7 +61795,7 @@ function init4(RuntimeName, PHPLoader) {
61780
61795
  PHPLoader.trace(_js_getpid(), format, ...args2);
61781
61796
  }
61782
61797
  }
61783
- function _fd_close(fd) {
61798
+ var _fd_close = function fd_close(fd) {
61784
61799
  return Asyncify.handleAsync(async () => {
61785
61800
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
61786
61801
  if (pathResolutionErrno !== 0) {
@@ -61811,7 +61826,7 @@ function init4(RuntimeName, PHPLoader) {
61811
61826
  }
61812
61827
  return result;
61813
61828
  });
61814
- }
61829
+ };
61815
61830
  _fd_close.sig = "ii";
61816
61831
  function _builtin_fd_close(fd) {
61817
61832
  try {
@@ -71904,7 +71919,7 @@ ${e}`);
71904
71919
  var addOnPreMain = (cb) => onMains.unshift(cb);
71905
71920
  var onExits = [];
71906
71921
  var addOnExit = (cb) => onExits.unshift(cb);
71907
- var STACK_SIZE = 65536;
71922
+ var STACK_SIZE = 1048576;
71908
71923
  var STACK_ALIGN = 16;
71909
71924
  var ASSERTIONS = 0;
71910
71925
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -81339,13 +81354,13 @@ ${e}`);
81339
81354
  Module["createContext"] = Browser.createContext;
81340
81355
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
81341
81356
  var ASM_CONSTS = {
81342
- 12264791: ($0) => {
81357
+ 12281038: ($0) => {
81343
81358
  if (!$0) {
81344
81359
  AL.alcErr = 40964;
81345
81360
  return 1;
81346
81361
  }
81347
81362
  },
81348
- 12264839: ($0) => {
81363
+ 12281086: ($0) => {
81349
81364
  if (!AL.currentCtx) {
81350
81365
  err("alGetProcAddress() called without a valid context");
81351
81366
  return 1;
@@ -81471,6 +81486,9 @@ ${e}`);
81471
81486
  while (true) {
81472
81487
  var mask = POLLNVAL;
81473
81488
  mask = SYSCALLS.DEFAULT_POLLMASK;
81489
+ if (FS.isClosed(stream)) {
81490
+ return ERRNO_CODES.EBADF;
81491
+ }
81474
81492
  if (stream.stream_ops?.poll) {
81475
81493
  mask = stream.stream_ops.poll(stream, -1);
81476
81494
  }
@@ -84026,6 +84044,10 @@ ${e}`);
84026
84044
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
84027
84045
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
84028
84046
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
84047
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
84048
+ a0,
84049
+ a1
84050
+ );
84029
84051
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
84030
84052
  a0,
84031
84053
  a1,
@@ -84197,16 +84219,21 @@ ${e}`);
84197
84219
  return originalHashAddNode.apply(FS, arguments);
84198
84220
  };
84199
84221
  }
84222
+ PHPLoader["phpVersion"] = (() => {
84223
+ const [major, minor, patch] = phpVersionString3.split(".").map(Number);
84224
+ return { major, minor, patch };
84225
+ })();
84200
84226
  return PHPLoader;
84201
84227
  }
84202
- var import_module3, import_path3, dependencyFilename3, dependenciesTotalSize3;
84228
+ var import_module3, import_path3, dependencyFilename3, dependenciesTotalSize3, phpVersionString3;
84203
84229
  var init_php_8_2 = __esm({
84204
84230
  "packages/php-wasm/node/jspi/php_8_2.js"() {
84205
84231
  "use strict";
84206
84232
  import_module3 = require("module");
84207
84233
  import_path3 = __toESM(require("path"), 1);
84208
- dependencyFilename3 = import_path3.default.join(__dirname + "/jspi", "8_2_10", "php_8_2.wasm");
84209
- dependenciesTotalSize3 = 31311784;
84234
+ dependencyFilename3 = import_path3.default.join(__dirname + "/jspi", "8_2_29", "php_8_2.wasm");
84235
+ dependenciesTotalSize3 = 31474550;
84236
+ phpVersionString3 = "8.2.29";
84210
84237
  }
84211
84238
  });
84212
84239
 
@@ -84723,7 +84750,7 @@ function init5(RuntimeName, PHPLoader) {
84723
84750
  newDSO("__main__", 0, wasmImports);
84724
84751
  }
84725
84752
  };
84726
- var ___heap_base = 13228576;
84753
+ var ___heap_base = 14258208;
84727
84754
  var alignMemory = (size, alignment) => {
84728
84755
  return Math.ceil(size / alignment) * alignment;
84729
84756
  };
@@ -84865,7 +84892,7 @@ function init5(RuntimeName, PHPLoader) {
84865
84892
  };
84866
84893
  var wasmTableMirror = [];
84867
84894
  var wasmTable = new WebAssembly.Table({
84868
- initial: 15384,
84895
+ initial: 15458,
84869
84896
  element: "anyfunc"
84870
84897
  });
84871
84898
  var getWasmTableEntry = (funcPtr) => {
@@ -85387,11 +85414,11 @@ function init5(RuntimeName, PHPLoader) {
85387
85414
  { value: "i32", mutable: false },
85388
85415
  1024
85389
85416
  );
85390
- var ___stack_high = 13228576;
85391
- var ___stack_low = 13163040;
85417
+ var ___stack_high = 14258208;
85418
+ var ___stack_low = 13209632;
85392
85419
  var ___stack_pointer = new WebAssembly.Global(
85393
85420
  { value: "i32", mutable: true },
85394
- 13228576
85421
+ 14258208
85395
85422
  );
85396
85423
  var PATH = {
85397
85424
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -87287,9 +87314,6 @@ function init5(RuntimeName, PHPLoader) {
87287
87314
  if (FS.isMountpoint(node)) {
87288
87315
  throw new FS.ErrnoError(10);
87289
87316
  }
87290
- if (!FS.isDir(node.mode)) {
87291
- throw new FS.ErrnoError(54);
87292
- }
87293
87317
  }
87294
87318
  var mount = {
87295
87319
  type,
@@ -89840,7 +89864,7 @@ function init5(RuntimeName, PHPLoader) {
89840
89864
  PHPLoader.trace(_js_getpid(), format, ...args2);
89841
89865
  }
89842
89866
  }
89843
- function _fd_close(fd) {
89867
+ var _fd_close = function fd_close(fd) {
89844
89868
  return Asyncify.handleAsync(async () => {
89845
89869
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
89846
89870
  if (pathResolutionErrno !== 0) {
@@ -89871,7 +89895,7 @@ function init5(RuntimeName, PHPLoader) {
89871
89895
  }
89872
89896
  return result;
89873
89897
  });
89874
- }
89898
+ };
89875
89899
  _fd_close.sig = "ii";
89876
89900
  function _builtin_fd_close(fd) {
89877
89901
  try {
@@ -99963,7 +99987,7 @@ ${e}`);
99963
99987
  var addOnPreMain = (cb) => onMains.unshift(cb);
99964
99988
  var onExits = [];
99965
99989
  var addOnExit = (cb) => onExits.unshift(cb);
99966
- var STACK_SIZE = 65536;
99990
+ var STACK_SIZE = 1048576;
99967
99991
  var STACK_ALIGN = 16;
99968
99992
  var ASSERTIONS = 0;
99969
99993
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -109399,13 +109423,13 @@ ${e}`);
109399
109423
  Module["createContext"] = Browser.createContext;
109400
109424
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
109401
109425
  var ASM_CONSTS = {
109402
- 12233191: ($0) => {
109426
+ 12242382: ($0) => {
109403
109427
  if (!$0) {
109404
109428
  AL.alcErr = 40964;
109405
109429
  return 1;
109406
109430
  }
109407
109431
  },
109408
- 12233239: ($0) => {
109432
+ 12242430: ($0) => {
109409
109433
  if (!AL.currentCtx) {
109410
109434
  err("alGetProcAddress() called without a valid context");
109411
109435
  return 1;
@@ -109531,6 +109555,9 @@ ${e}`);
109531
109555
  while (true) {
109532
109556
  var mask = POLLNVAL;
109533
109557
  mask = SYSCALLS.DEFAULT_POLLMASK;
109558
+ if (FS.isClosed(stream)) {
109559
+ return ERRNO_CODES.EBADF;
109560
+ }
109534
109561
  if (stream.stream_ops?.poll) {
109535
109562
  mask = stream.stream_ops.poll(stream, -1);
109536
109563
  }
@@ -112091,6 +112118,10 @@ ${e}`);
112091
112118
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
112092
112119
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
112093
112120
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
112121
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
112122
+ a0,
112123
+ a1
112124
+ );
112094
112125
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
112095
112126
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
112096
112127
  var _wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = (a0) => (_wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = wasmExports["wasm_set_sapi_name"])(a0);
@@ -112257,16 +112288,21 @@ ${e}`);
112257
112288
  return originalHashAddNode.apply(FS, arguments);
112258
112289
  };
112259
112290
  }
112291
+ PHPLoader["phpVersion"] = (() => {
112292
+ const [major, minor, patch] = phpVersionString4.split(".").map(Number);
112293
+ return { major, minor, patch };
112294
+ })();
112260
112295
  return PHPLoader;
112261
112296
  }
112262
- var import_module4, import_path4, dependencyFilename4, dependenciesTotalSize4;
112297
+ var import_module4, import_path4, dependencyFilename4, dependenciesTotalSize4, phpVersionString4;
112263
112298
  var init_php_8_1 = __esm({
112264
112299
  "packages/php-wasm/node/jspi/php_8_1.js"() {
112265
112300
  "use strict";
112266
112301
  import_module4 = require("module");
112267
112302
  import_path4 = __toESM(require("path"), 1);
112268
- dependencyFilename4 = import_path4.default.join(__dirname + "/jspi", "8_1_23", "php_8_1.wasm");
112269
- dependenciesTotalSize4 = 30963537;
112303
+ dependencyFilename4 = import_path4.default.join(__dirname + "/jspi", "8_1_33", "php_8_1.wasm");
112304
+ dependenciesTotalSize4 = 31100909;
112305
+ phpVersionString4 = "8.1.33";
112270
112306
  }
112271
112307
  });
112272
112308
 
@@ -112783,7 +112819,7 @@ function init6(RuntimeName, PHPLoader) {
112783
112819
  newDSO("__main__", 0, wasmImports);
112784
112820
  }
112785
112821
  };
112786
- var ___heap_base = 13134176;
112822
+ var ___heap_base = 14177504;
112787
112823
  var alignMemory = (size, alignment) => {
112788
112824
  return Math.ceil(size / alignment) * alignment;
112789
112825
  };
@@ -112925,7 +112961,7 @@ function init6(RuntimeName, PHPLoader) {
112925
112961
  };
112926
112962
  var wasmTableMirror = [];
112927
112963
  var wasmTable = new WebAssembly.Table({
112928
- initial: 15336,
112964
+ initial: 15404,
112929
112965
  element: "anyfunc"
112930
112966
  });
112931
112967
  var getWasmTableEntry = (funcPtr) => {
@@ -113447,11 +113483,11 @@ function init6(RuntimeName, PHPLoader) {
113447
113483
  { value: "i32", mutable: false },
113448
113484
  1024
113449
113485
  );
113450
- var ___stack_high = 13134176;
113451
- var ___stack_low = 13068640;
113486
+ var ___stack_high = 14177504;
113487
+ var ___stack_low = 13128928;
113452
113488
  var ___stack_pointer = new WebAssembly.Global(
113453
113489
  { value: "i32", mutable: true },
113454
- 13134176
113490
+ 14177504
113455
113491
  );
113456
113492
  var PATH = {
113457
113493
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -115347,9 +115383,6 @@ function init6(RuntimeName, PHPLoader) {
115347
115383
  if (FS.isMountpoint(node)) {
115348
115384
  throw new FS.ErrnoError(10);
115349
115385
  }
115350
- if (!FS.isDir(node.mode)) {
115351
- throw new FS.ErrnoError(54);
115352
- }
115353
115386
  }
115354
115387
  var mount = {
115355
115388
  type,
@@ -117900,7 +117933,7 @@ function init6(RuntimeName, PHPLoader) {
117900
117933
  PHPLoader.trace(_js_getpid(), format, ...args2);
117901
117934
  }
117902
117935
  }
117903
- function _fd_close(fd) {
117936
+ var _fd_close = function fd_close(fd) {
117904
117937
  return Asyncify.handleAsync(async () => {
117905
117938
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
117906
117939
  if (pathResolutionErrno !== 0) {
@@ -117931,7 +117964,7 @@ function init6(RuntimeName, PHPLoader) {
117931
117964
  }
117932
117965
  return result;
117933
117966
  });
117934
- }
117967
+ };
117935
117968
  _fd_close.sig = "ii";
117936
117969
  function _builtin_fd_close(fd) {
117937
117970
  try {
@@ -128020,7 +128053,7 @@ ${e}`);
128020
128053
  var addOnPreMain = (cb) => onMains.unshift(cb);
128021
128054
  var onExits = [];
128022
128055
  var addOnExit = (cb) => onExits.unshift(cb);
128023
- var STACK_SIZE = 65536;
128056
+ var STACK_SIZE = 1048576;
128024
128057
  var STACK_ALIGN = 16;
128025
128058
  var ASSERTIONS = 0;
128026
128059
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -137459,13 +137492,13 @@ ${e}`);
137459
137492
  Module["createContext"] = Browser.createContext;
137460
137493
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
137461
137494
  var ASM_CONSTS = {
137462
- 12138519: ($0) => {
137495
+ 12161278: ($0) => {
137463
137496
  if (!$0) {
137464
137497
  AL.alcErr = 40964;
137465
137498
  return 1;
137466
137499
  }
137467
137500
  },
137468
- 12138567: ($0) => {
137501
+ 12161326: ($0) => {
137469
137502
  if (!AL.currentCtx) {
137470
137503
  err("alGetProcAddress() called without a valid context");
137471
137504
  return 1;
@@ -137591,6 +137624,9 @@ ${e}`);
137591
137624
  while (true) {
137592
137625
  var mask = POLLNVAL;
137593
137626
  mask = SYSCALLS.DEFAULT_POLLMASK;
137627
+ if (FS.isClosed(stream)) {
137628
+ return ERRNO_CODES.EBADF;
137629
+ }
137594
137630
  if (stream.stream_ops?.poll) {
137595
137631
  mask = stream.stream_ops.poll(stream, -1);
137596
137632
  }
@@ -140151,6 +140187,10 @@ ${e}`);
140151
140187
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
140152
140188
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
140153
140189
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
140190
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
140191
+ a0,
140192
+ a1
140193
+ );
140154
140194
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
140155
140195
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
140156
140196
  var _wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = (a0) => (_wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = wasmExports["wasm_set_sapi_name"])(a0);
@@ -140317,16 +140357,21 @@ ${e}`);
140317
140357
  return originalHashAddNode.apply(FS, arguments);
140318
140358
  };
140319
140359
  }
140360
+ PHPLoader["phpVersion"] = (() => {
140361
+ const [major, minor, patch] = phpVersionString5.split(".").map(Number);
140362
+ return { major, minor, patch };
140363
+ })();
140320
140364
  return PHPLoader;
140321
140365
  }
140322
- var import_module5, import_path5, dependencyFilename5, dependenciesTotalSize5;
140366
+ var import_module5, import_path5, dependencyFilename5, dependenciesTotalSize5, phpVersionString5;
140323
140367
  var init_php_8_0 = __esm({
140324
140368
  "packages/php-wasm/node/jspi/php_8_0.js"() {
140325
140369
  "use strict";
140326
140370
  import_module5 = require("module");
140327
140371
  import_path5 = __toESM(require("path"), 1);
140328
140372
  dependencyFilename5 = import_path5.default.join(__dirname + "/jspi", "8_0_30", "php_8_0.wasm");
140329
- dependenciesTotalSize5 = 30349929;
140373
+ dependenciesTotalSize5 = 30759315;
140374
+ phpVersionString5 = "8.0.30";
140330
140375
  }
140331
140376
  });
140332
140377
 
@@ -140843,7 +140888,7 @@ function init7(RuntimeName, PHPLoader) {
140843
140888
  newDSO("__main__", 0, wasmImports);
140844
140889
  }
140845
140890
  };
140846
- var ___heap_base = 12030304;
140891
+ var ___heap_base = 13084960;
140847
140892
  var alignMemory = (size, alignment) => {
140848
140893
  return Math.ceil(size / alignment) * alignment;
140849
140894
  };
@@ -140985,7 +141030,7 @@ function init7(RuntimeName, PHPLoader) {
140985
141030
  };
140986
141031
  var wasmTableMirror = [];
140987
141032
  var wasmTable = new WebAssembly.Table({
140988
- initial: 15223,
141033
+ initial: 15290,
140989
141034
  element: "anyfunc"
140990
141035
  });
140991
141036
  var getWasmTableEntry = (funcPtr) => {
@@ -141507,11 +141552,11 @@ function init7(RuntimeName, PHPLoader) {
141507
141552
  { value: "i32", mutable: false },
141508
141553
  1024
141509
141554
  );
141510
- var ___stack_high = 12030304;
141511
- var ___stack_low = 11964768;
141555
+ var ___stack_high = 13084960;
141556
+ var ___stack_low = 12036384;
141512
141557
  var ___stack_pointer = new WebAssembly.Global(
141513
141558
  { value: "i32", mutable: true },
141514
- 12030304
141559
+ 13084960
141515
141560
  );
141516
141561
  var PATH = {
141517
141562
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -143407,9 +143452,6 @@ function init7(RuntimeName, PHPLoader) {
143407
143452
  if (FS.isMountpoint(node)) {
143408
143453
  throw new FS.ErrnoError(10);
143409
143454
  }
143410
- if (!FS.isDir(node.mode)) {
143411
- throw new FS.ErrnoError(54);
143412
- }
143413
143455
  }
143414
143456
  var mount = {
143415
143457
  type,
@@ -145960,7 +146002,7 @@ function init7(RuntimeName, PHPLoader) {
145960
146002
  PHPLoader.trace(_js_getpid(), format, ...args2);
145961
146003
  }
145962
146004
  }
145963
- function _fd_close(fd) {
146005
+ var _fd_close = function fd_close(fd) {
145964
146006
  return Asyncify.handleAsync(async () => {
145965
146007
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
145966
146008
  if (pathResolutionErrno !== 0) {
@@ -145991,7 +146033,7 @@ function init7(RuntimeName, PHPLoader) {
145991
146033
  }
145992
146034
  return result;
145993
146035
  });
145994
- }
146036
+ };
145995
146037
  _fd_close.sig = "ii";
145996
146038
  function _builtin_fd_close(fd) {
145997
146039
  try {
@@ -156080,7 +156122,7 @@ ${e}`);
156080
156122
  var addOnPreMain = (cb) => onMains.unshift(cb);
156081
156123
  var onExits = [];
156082
156124
  var addOnExit = (cb) => onExits.unshift(cb);
156083
- var STACK_SIZE = 65536;
156125
+ var STACK_SIZE = 1048576;
156084
156126
  var STACK_ALIGN = 16;
156085
156127
  var ASSERTIONS = 0;
156086
156128
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -165519,13 +165561,13 @@ ${e}`);
165519
165561
  Module["createContext"] = Browser.createContext;
165520
165562
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
165521
165563
  var ASM_CONSTS = {
165522
- 11105127: ($0) => {
165564
+ 11139230: ($0) => {
165523
165565
  if (!$0) {
165524
165566
  AL.alcErr = 40964;
165525
165567
  return 1;
165526
165568
  }
165527
165569
  },
165528
- 11105175: ($0) => {
165570
+ 11139278: ($0) => {
165529
165571
  if (!AL.currentCtx) {
165530
165572
  err("alGetProcAddress() called without a valid context");
165531
165573
  return 1;
@@ -165651,6 +165693,9 @@ ${e}`);
165651
165693
  while (true) {
165652
165694
  var mask = POLLNVAL;
165653
165695
  mask = SYSCALLS.DEFAULT_POLLMASK;
165696
+ if (FS.isClosed(stream)) {
165697
+ return ERRNO_CODES.EBADF;
165698
+ }
165654
165699
  if (stream.stream_ops?.poll) {
165655
165700
  mask = stream.stream_ops.poll(stream, -1);
165656
165701
  }
@@ -168211,6 +168256,10 @@ ${e}`);
168211
168256
  var _htonl = (a0) => (_htonl = wasmExports["htonl"])(a0);
168212
168257
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
168213
168258
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
168259
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
168260
+ a0,
168261
+ a1
168262
+ );
168214
168263
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
168215
168264
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
168216
168265
  var _wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = (a0) => (_wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = wasmExports["wasm_set_sapi_name"])(a0);
@@ -168377,16 +168426,21 @@ ${e}`);
168377
168426
  return originalHashAddNode.apply(FS, arguments);
168378
168427
  };
168379
168428
  }
168429
+ PHPLoader["phpVersion"] = (() => {
168430
+ const [major, minor, patch] = phpVersionString6.split(".").map(Number);
168431
+ return { major, minor, patch };
168432
+ })();
168380
168433
  return PHPLoader;
168381
168434
  }
168382
- var import_module6, import_path6, dependencyFilename6, dependenciesTotalSize6;
168435
+ var import_module6, import_path6, dependencyFilename6, dependenciesTotalSize6, phpVersionString6;
168383
168436
  var init_php_7_4 = __esm({
168384
168437
  "packages/php-wasm/node/jspi/php_7_4.js"() {
168385
168438
  "use strict";
168386
168439
  import_module6 = require("module");
168387
168440
  import_path6 = __toESM(require("path"), 1);
168388
168441
  dependencyFilename6 = import_path6.default.join(__dirname + "/jspi", "7_4_33", "php_7_4.wasm");
168389
- dependenciesTotalSize6 = 29141120;
168442
+ dependenciesTotalSize6 = 29566253;
168443
+ phpVersionString6 = "7.4.33";
168390
168444
  }
168391
168445
  });
168392
168446
 
@@ -168903,7 +168957,7 @@ function init8(RuntimeName, PHPLoader) {
168903
168957
  newDSO("__main__", 0, wasmImports);
168904
168958
  }
168905
168959
  };
168906
- var ___heap_base = 11705120;
168960
+ var ___heap_base = 12760416;
168907
168961
  var alignMemory = (size, alignment) => {
168908
168962
  return Math.ceil(size / alignment) * alignment;
168909
168963
  };
@@ -169045,7 +169099,7 @@ function init8(RuntimeName, PHPLoader) {
169045
169099
  };
169046
169100
  var wasmTableMirror = [];
169047
169101
  var wasmTable = new WebAssembly.Table({
169048
- initial: 15465,
169102
+ initial: 15542,
169049
169103
  element: "anyfunc"
169050
169104
  });
169051
169105
  var getWasmTableEntry = (funcPtr) => {
@@ -169567,11 +169621,11 @@ function init8(RuntimeName, PHPLoader) {
169567
169621
  { value: "i32", mutable: false },
169568
169622
  1024
169569
169623
  );
169570
- var ___stack_high = 11705120;
169571
- var ___stack_low = 11639584;
169624
+ var ___stack_high = 12760416;
169625
+ var ___stack_low = 11711840;
169572
169626
  var ___stack_pointer = new WebAssembly.Global(
169573
169627
  { value: "i32", mutable: true },
169574
- 11705120
169628
+ 12760416
169575
169629
  );
169576
169630
  var PATH = {
169577
169631
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -171467,9 +171521,6 @@ function init8(RuntimeName, PHPLoader) {
171467
171521
  if (FS.isMountpoint(node)) {
171468
171522
  throw new FS.ErrnoError(10);
171469
171523
  }
171470
- if (!FS.isDir(node.mode)) {
171471
- throw new FS.ErrnoError(54);
171472
- }
171473
171524
  }
171474
171525
  var mount = {
171475
171526
  type,
@@ -174020,7 +174071,7 @@ function init8(RuntimeName, PHPLoader) {
174020
174071
  PHPLoader.trace(_js_getpid(), format, ...args2);
174021
174072
  }
174022
174073
  }
174023
- function _fd_close(fd) {
174074
+ var _fd_close = function fd_close(fd) {
174024
174075
  return Asyncify.handleAsync(async () => {
174025
174076
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
174026
174077
  if (pathResolutionErrno !== 0) {
@@ -174051,7 +174102,7 @@ function init8(RuntimeName, PHPLoader) {
174051
174102
  }
174052
174103
  return result;
174053
174104
  });
174054
- }
174105
+ };
174055
174106
  _fd_close.sig = "ii";
174056
174107
  function _builtin_fd_close(fd) {
174057
174108
  try {
@@ -184137,7 +184188,7 @@ ${e}`);
184137
184188
  var addOnPreMain = (cb) => onMains.unshift(cb);
184138
184189
  var onExits = [];
184139
184190
  var addOnExit = (cb) => onExits.unshift(cb);
184140
- var STACK_SIZE = 65536;
184191
+ var STACK_SIZE = 1048576;
184141
184192
  var STACK_ALIGN = 16;
184142
184193
  var ASSERTIONS = 0;
184143
184194
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -193579,13 +193630,13 @@ ${e}`);
193579
193630
  Module["createContext"] = Browser.createContext;
193580
193631
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
193581
193632
  var ASM_CONSTS = {
193582
- 10780647: ($0) => {
193633
+ 10815374: ($0) => {
193583
193634
  if (!$0) {
193584
193635
  AL.alcErr = 40964;
193585
193636
  return 1;
193586
193637
  }
193587
193638
  },
193588
- 10780695: ($0) => {
193639
+ 10815422: ($0) => {
193589
193640
  if (!AL.currentCtx) {
193590
193641
  err("alGetProcAddress() called without a valid context");
193591
193642
  return 1;
@@ -193711,6 +193762,9 @@ ${e}`);
193711
193762
  while (true) {
193712
193763
  var mask = POLLNVAL;
193713
193764
  mask = SYSCALLS.DEFAULT_POLLMASK;
193765
+ if (FS.isClosed(stream)) {
193766
+ return ERRNO_CODES.EBADF;
193767
+ }
193714
193768
  if (stream.stream_ops?.poll) {
193715
193769
  mask = stream.stream_ops.poll(stream, -1);
193716
193770
  }
@@ -196300,6 +196354,10 @@ ${e}`);
196300
196354
  a0,
196301
196355
  a1
196302
196356
  );
196357
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
196358
+ a0,
196359
+ a1
196360
+ );
196303
196361
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports["memcpy"])(a0, a1, a2);
196304
196362
  var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports["__funcs_on_exit"])();
196305
196363
  var ___dl_seterr = (a0, a1) => (___dl_seterr = wasmExports["__dl_seterr"])(a0, a1);
@@ -196437,16 +196495,21 @@ ${e}`);
196437
196495
  return originalHashAddNode.apply(FS, arguments);
196438
196496
  };
196439
196497
  }
196498
+ PHPLoader["phpVersion"] = (() => {
196499
+ const [major, minor, patch] = phpVersionString7.split(".").map(Number);
196500
+ return { major, minor, patch };
196501
+ })();
196440
196502
  return PHPLoader;
196441
196503
  }
196442
- var import_module7, import_path7, dependencyFilename7, dependenciesTotalSize7;
196504
+ var import_module7, import_path7, dependencyFilename7, dependenciesTotalSize7, phpVersionString7;
196443
196505
  var init_php_7_3 = __esm({
196444
196506
  "packages/php-wasm/node/jspi/php_7_3.js"() {
196445
196507
  "use strict";
196446
196508
  import_module7 = require("module");
196447
196509
  import_path7 = __toESM(require("path"), 1);
196448
196510
  dependencyFilename7 = import_path7.default.join(__dirname + "/jspi", "7_3_33", "php_7_3.wasm");
196449
- dependenciesTotalSize7 = 28784595;
196511
+ dependenciesTotalSize7 = 29193979;
196512
+ phpVersionString7 = "7.3.33";
196450
196513
  }
196451
196514
  });
196452
196515
 
@@ -196963,7 +197026,7 @@ function init9(RuntimeName, PHPLoader) {
196963
197026
  newDSO("__main__", 0, wasmImports);
196964
197027
  }
196965
197028
  };
196966
- var ___heap_base = 11379872;
197029
+ var ___heap_base = 12424800;
196967
197030
  var alignMemory = (size, alignment) => {
196968
197031
  return Math.ceil(size / alignment) * alignment;
196969
197032
  };
@@ -197105,7 +197168,7 @@ function init9(RuntimeName, PHPLoader) {
197105
197168
  };
197106
197169
  var wasmTableMirror = [];
197107
197170
  var wasmTable = new WebAssembly.Table({
197108
- initial: 15501,
197171
+ initial: 15576,
197109
197172
  element: "anyfunc"
197110
197173
  });
197111
197174
  var getWasmTableEntry = (funcPtr) => {
@@ -197627,11 +197690,11 @@ function init9(RuntimeName, PHPLoader) {
197627
197690
  { value: "i32", mutable: false },
197628
197691
  1024
197629
197692
  );
197630
- var ___stack_high = 11379872;
197631
- var ___stack_low = 11314336;
197693
+ var ___stack_high = 12424800;
197694
+ var ___stack_low = 11376224;
197632
197695
  var ___stack_pointer = new WebAssembly.Global(
197633
197696
  { value: "i32", mutable: true },
197634
- 11379872
197697
+ 12424800
197635
197698
  );
197636
197699
  var PATH = {
197637
197700
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -199527,9 +199590,6 @@ function init9(RuntimeName, PHPLoader) {
199527
199590
  if (FS.isMountpoint(node)) {
199528
199591
  throw new FS.ErrnoError(10);
199529
199592
  }
199530
- if (!FS.isDir(node.mode)) {
199531
- throw new FS.ErrnoError(54);
199532
- }
199533
199593
  }
199534
199594
  var mount = {
199535
199595
  type,
@@ -202080,7 +202140,7 @@ function init9(RuntimeName, PHPLoader) {
202080
202140
  PHPLoader.trace(_js_getpid(), format, ...args2);
202081
202141
  }
202082
202142
  }
202083
- function _fd_close(fd) {
202143
+ var _fd_close = function fd_close(fd) {
202084
202144
  return Asyncify.handleAsync(async () => {
202085
202145
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
202086
202146
  if (pathResolutionErrno !== 0) {
@@ -202111,7 +202171,7 @@ function init9(RuntimeName, PHPLoader) {
202111
202171
  }
202112
202172
  return result;
202113
202173
  });
202114
- }
202174
+ };
202115
202175
  _fd_close.sig = "ii";
202116
202176
  function _builtin_fd_close(fd) {
202117
202177
  try {
@@ -212197,7 +212257,7 @@ ${e}`);
212197
212257
  var addOnPreMain = (cb) => onMains.unshift(cb);
212198
212258
  var onExits = [];
212199
212259
  var addOnExit = (cb) => onExits.unshift(cb);
212200
- var STACK_SIZE = 65536;
212260
+ var STACK_SIZE = 1048576;
212201
212261
  var STACK_ALIGN = 16;
212202
212262
  var ASSERTIONS = 0;
212203
212263
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -221639,13 +221699,13 @@ ${e}`);
221639
221699
  Module["createContext"] = Browser.createContext;
221640
221700
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
221641
221701
  var ASM_CONSTS = {
221642
- 10385543: ($0) => {
221702
+ 10409966: ($0) => {
221643
221703
  if (!$0) {
221644
221704
  AL.alcErr = 40964;
221645
221705
  return 1;
221646
221706
  }
221647
221707
  },
221648
- 10385591: ($0) => {
221708
+ 10410014: ($0) => {
221649
221709
  if (!AL.currentCtx) {
221650
221710
  err("alGetProcAddress() called without a valid context");
221651
221711
  return 1;
@@ -221771,6 +221831,9 @@ ${e}`);
221771
221831
  while (true) {
221772
221832
  var mask = POLLNVAL;
221773
221833
  mask = SYSCALLS.DEFAULT_POLLMASK;
221834
+ if (FS.isClosed(stream)) {
221835
+ return ERRNO_CODES.EBADF;
221836
+ }
221774
221837
  if (stream.stream_ops?.poll) {
221775
221838
  mask = stream.stream_ops.poll(stream, -1);
221776
221839
  }
@@ -224360,6 +224423,10 @@ ${e}`);
224360
224423
  a0,
224361
224424
  a1
224362
224425
  );
224426
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
224427
+ a0,
224428
+ a1
224429
+ );
224363
224430
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports["memcpy"])(a0, a1, a2);
224364
224431
  var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports["__funcs_on_exit"])();
224365
224432
  var ___dl_seterr = (a0, a1) => (___dl_seterr = wasmExports["__dl_seterr"])(a0, a1);
@@ -224497,16 +224564,21 @@ ${e}`);
224497
224564
  return originalHashAddNode.apply(FS, arguments);
224498
224565
  };
224499
224566
  }
224567
+ PHPLoader["phpVersion"] = (() => {
224568
+ const [major, minor, patch] = phpVersionString8.split(".").map(Number);
224569
+ return { major, minor, patch };
224570
+ })();
224500
224571
  return PHPLoader;
224501
224572
  }
224502
- var import_module8, import_path8, dependencyFilename8, dependenciesTotalSize8;
224573
+ var import_module8, import_path8, dependencyFilename8, dependenciesTotalSize8, phpVersionString8;
224503
224574
  var init_php_7_2 = __esm({
224504
224575
  "packages/php-wasm/node/jspi/php_7_2.js"() {
224505
224576
  "use strict";
224506
224577
  import_module8 = require("module");
224507
224578
  import_path8 = __toESM(require("path"), 1);
224508
224579
  dependencyFilename8 = import_path8.default.join(__dirname + "/jspi", "7_2_34", "php_7_2.wasm");
224509
- dependenciesTotalSize8 = 28506103;
224580
+ dependenciesTotalSize8 = 28865031;
224581
+ phpVersionString8 = "7.2.34";
224510
224582
  }
224511
224583
  });
224512
224584
 
@@ -225019,7 +225091,7 @@ function init10(RuntimeName, PHPLoader) {
225019
225091
  newDSO("__main__", 0, wasmImports);
225020
225092
  }
225021
225093
  };
225022
- var ___heap_base = 17316672;
225094
+ var ___heap_base = 18313280;
225023
225095
  var alignMemory = (size, alignment) => {
225024
225096
  return Math.ceil(size / alignment) * alignment;
225025
225097
  };
@@ -225161,7 +225233,7 @@ function init10(RuntimeName, PHPLoader) {
225161
225233
  };
225162
225234
  var wasmTableMirror = [];
225163
225235
  var wasmTable = new WebAssembly.Table({
225164
- initial: 16834,
225236
+ initial: 16954,
225165
225237
  element: "anyfunc"
225166
225238
  });
225167
225239
  var getWasmTableEntry = (funcPtr) => {
@@ -225783,11 +225855,11 @@ function init10(RuntimeName, PHPLoader) {
225783
225855
  { value: "i32", mutable: false },
225784
225856
  1024
225785
225857
  );
225786
- var ___stack_high = 17316672;
225787
- var ___stack_low = 17251136;
225858
+ var ___stack_high = 18313280;
225859
+ var ___stack_low = 17264704;
225788
225860
  var ___stack_pointer = new WebAssembly.Global(
225789
225861
  { value: "i32", mutable: true },
225790
- 17316672
225862
+ 18313280
225791
225863
  );
225792
225864
  var PATH = {
225793
225865
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -227683,9 +227755,6 @@ function init10(RuntimeName, PHPLoader) {
227683
227755
  if (FS.isMountpoint(node)) {
227684
227756
  throw new FS.ErrnoError(10);
227685
227757
  }
227686
- if (!FS.isDir(node.mode)) {
227687
- throw new FS.ErrnoError(54);
227688
- }
227689
227758
  }
227690
227759
  var mount = {
227691
227760
  type,
@@ -239089,9 +239158,6 @@ ${e}`);
239089
239158
  const buffer = _malloc(CHUNK_SIZE);
239090
239159
  HEAPU32[iov >> 2] = buffer;
239091
239160
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
239092
- if (typeof js_fd_read === "undefined") {
239093
- globalThis.js_fd_read = __asyncjs__js_fd_read;
239094
- }
239095
239161
  const interval = setInterval(pump2, 20);
239096
239162
  pump2();
239097
239163
  }
@@ -240489,7 +240555,7 @@ ${e}`);
240489
240555
  var addOnPreMain = (cb) => onMains.unshift(cb);
240490
240556
  var onExits = [];
240491
240557
  var addOnExit = (cb) => onExits.unshift(cb);
240492
- var STACK_SIZE = 65536;
240558
+ var STACK_SIZE = 1048576;
240493
240559
  var STACK_ALIGN = 16;
240494
240560
  var ASSERTIONS = 0;
240495
240561
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -250329,13 +250395,13 @@ ${e}`);
250329
250395
  Module["createContext"] = Browser.createContext;
250330
250396
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
250331
250397
  var ASM_CONSTS = {
250332
- 16318662: ($0) => {
250398
+ 16327533: ($0) => {
250333
250399
  if (!$0) {
250334
250400
  AL.alcErr = 40964;
250335
250401
  return 1;
250336
250402
  }
250337
250403
  },
250338
- 16318710: ($0) => {
250404
+ 16327581: ($0) => {
250339
250405
  if (!AL.currentCtx) {
250340
250406
  err("alGetProcAddress() called without a valid context");
250341
250407
  return 1;
@@ -250455,6 +250521,9 @@ ${e}`);
250455
250521
  while (true) {
250456
250522
  var mask = POLLNVAL;
250457
250523
  mask = SYSCALLS.DEFAULT_POLLMASK;
250524
+ if (FS.isClosed(stream)) {
250525
+ return ERRNO_CODES.EBADF;
250526
+ }
250458
250527
  if (stream.stream_ops?.poll) {
250459
250528
  mask = stream.stream_ops.poll(stream, -1);
250460
250529
  }
@@ -252949,6 +253018,8 @@ ${e}`);
252949
253018
  /** @export */
252950
253019
  invoke_iijiji,
252951
253020
  /** @export */
253021
+ invoke_ji,
253022
+ /** @export */
252952
253023
  invoke_jii,
252953
253024
  /** @export */
252954
253025
  invoke_jiii,
@@ -252973,6 +253044,8 @@ ${e}`);
252973
253044
  /** @export */
252974
253045
  invoke_viijii,
252975
253046
  /** @export */
253047
+ invoke_vijj,
253048
+ /** @export */
252976
253049
  invoke_vji,
252977
253050
  /** @export */
252978
253051
  js_fd_read,
@@ -253088,6 +253161,10 @@ ${e}`);
253088
253161
  var _fflush = (a0) => (_fflush = wasmExports["fflush"])(a0);
253089
253162
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
253090
253163
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
253164
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
253165
+ a0,
253166
+ a1
253167
+ );
253091
253168
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
253092
253169
  a0,
253093
253170
  a1,
@@ -253311,21 +253388,22 @@ ${e}`);
253311
253388
  _setThrew(1, 0);
253312
253389
  }
253313
253390
  }
253314
- function invoke_iijii(index, a1, a2, a3, a4) {
253391
+ function invoke_jii(index, a1, a2) {
253315
253392
  var sp = stackSave();
253316
253393
  try {
253317
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
253394
+ return Module["dynCall_jii"](index, a1, a2);
253318
253395
  } catch (e) {
253319
253396
  stackRestore(sp);
253320
253397
  if (e !== e + 0)
253321
253398
  throw e;
253322
253399
  _setThrew(1, 0);
253400
+ return 0n;
253323
253401
  }
253324
253402
  }
253325
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
253403
+ function invoke_v(index) {
253326
253404
  var sp = stackSave();
253327
253405
  try {
253328
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
253406
+ Module["dynCall_v"](index);
253329
253407
  } catch (e) {
253330
253408
  stackRestore(sp);
253331
253409
  if (e !== e + 0)
@@ -253333,19 +253411,10 @@ ${e}`);
253333
253411
  _setThrew(1, 0);
253334
253412
  }
253335
253413
  }
253336
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
253414
+ function invoke_vji(index, a1, a2) {
253337
253415
  var sp = stackSave();
253338
253416
  try {
253339
- return Module["dynCall_iiiiiiii"](
253340
- index,
253341
- a1,
253342
- a2,
253343
- a3,
253344
- a4,
253345
- a5,
253346
- a6,
253347
- a7
253348
- );
253417
+ Module["dynCall_vji"](index, a1, a2);
253349
253418
  } catch (e) {
253350
253419
  stackRestore(sp);
253351
253420
  if (e !== e + 0)
@@ -253353,21 +253422,22 @@ ${e}`);
253353
253422
  _setThrew(1, 0);
253354
253423
  }
253355
253424
  }
253356
- function invoke_iiji(index, a1, a2, a3) {
253425
+ function invoke_ji(index, a1) {
253357
253426
  var sp = stackSave();
253358
253427
  try {
253359
- return Module["dynCall_iiji"](index, a1, a2, a3);
253428
+ return Module["dynCall_ji"](index, a1);
253360
253429
  } catch (e) {
253361
253430
  stackRestore(sp);
253362
253431
  if (e !== e + 0)
253363
253432
  throw e;
253364
253433
  _setThrew(1, 0);
253434
+ return 0n;
253365
253435
  }
253366
253436
  }
253367
- function invoke_v(index) {
253437
+ function invoke_vijj(index, a1, a2, a3) {
253368
253438
  var sp = stackSave();
253369
253439
  try {
253370
- Module["dynCall_v"](index);
253440
+ Module["dynCall_vijj"](index, a1, a2, a3);
253371
253441
  } catch (e) {
253372
253442
  stackRestore(sp);
253373
253443
  if (e !== e + 0)
@@ -253375,10 +253445,10 @@ ${e}`);
253375
253445
  _setThrew(1, 0);
253376
253446
  }
253377
253447
  }
253378
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
253448
+ function invoke_iij(index, a1, a2) {
253379
253449
  var sp = stackSave();
253380
253450
  try {
253381
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
253451
+ return Module["dynCall_iij"](index, a1, a2);
253382
253452
  } catch (e) {
253383
253453
  stackRestore(sp);
253384
253454
  if (e !== e + 0)
@@ -253386,10 +253456,10 @@ ${e}`);
253386
253456
  _setThrew(1, 0);
253387
253457
  }
253388
253458
  }
253389
- function invoke_vji(index, a1, a2) {
253459
+ function invoke_iijii(index, a1, a2, a3, a4) {
253390
253460
  var sp = stackSave();
253391
253461
  try {
253392
- Module["dynCall_vji"](index, a1, a2);
253462
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
253393
253463
  } catch (e) {
253394
253464
  stackRestore(sp);
253395
253465
  if (e !== e + 0)
@@ -253397,10 +253467,10 @@ ${e}`);
253397
253467
  _setThrew(1, 0);
253398
253468
  }
253399
253469
  }
253400
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
253470
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
253401
253471
  var sp = stackSave();
253402
253472
  try {
253403
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
253473
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
253404
253474
  } catch (e) {
253405
253475
  stackRestore(sp);
253406
253476
  if (e !== e + 0)
@@ -253408,10 +253478,19 @@ ${e}`);
253408
253478
  _setThrew(1, 0);
253409
253479
  }
253410
253480
  }
253411
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
253481
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
253412
253482
  var sp = stackSave();
253413
253483
  try {
253414
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
253484
+ return Module["dynCall_iiiiiiii"](
253485
+ index,
253486
+ a1,
253487
+ a2,
253488
+ a3,
253489
+ a4,
253490
+ a5,
253491
+ a6,
253492
+ a7
253493
+ );
253415
253494
  } catch (e) {
253416
253495
  stackRestore(sp);
253417
253496
  if (e !== e + 0)
@@ -253419,39 +253498,60 @@ ${e}`);
253419
253498
  _setThrew(1, 0);
253420
253499
  }
253421
253500
  }
253422
- function invoke_jiii(index, a1, a2, a3) {
253501
+ function invoke_iiji(index, a1, a2, a3) {
253423
253502
  var sp = stackSave();
253424
253503
  try {
253425
- return Module["dynCall_jiii"](index, a1, a2, a3);
253504
+ return Module["dynCall_iiji"](index, a1, a2, a3);
253426
253505
  } catch (e) {
253427
253506
  stackRestore(sp);
253428
253507
  if (e !== e + 0)
253429
253508
  throw e;
253430
253509
  _setThrew(1, 0);
253431
- return 0n;
253432
253510
  }
253433
253511
  }
253434
- function invoke_jii(index, a1, a2) {
253512
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
253435
253513
  var sp = stackSave();
253436
253514
  try {
253437
- return Module["dynCall_jii"](index, a1, a2);
253515
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
253438
253516
  } catch (e) {
253439
253517
  stackRestore(sp);
253440
253518
  if (e !== e + 0)
253441
253519
  throw e;
253442
253520
  _setThrew(1, 0);
253443
- return 0n;
253444
253521
  }
253445
253522
  }
253446
- function invoke_iij(index, a1, a2) {
253523
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
253447
253524
  var sp = stackSave();
253448
253525
  try {
253449
- return Module["dynCall_iij"](index, a1, a2);
253526
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
253527
+ } catch (e) {
253528
+ stackRestore(sp);
253529
+ if (e !== e + 0)
253530
+ throw e;
253531
+ _setThrew(1, 0);
253532
+ }
253533
+ }
253534
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
253535
+ var sp = stackSave();
253536
+ try {
253537
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
253538
+ } catch (e) {
253539
+ stackRestore(sp);
253540
+ if (e !== e + 0)
253541
+ throw e;
253542
+ _setThrew(1, 0);
253543
+ }
253544
+ }
253545
+ function invoke_jiii(index, a1, a2, a3) {
253546
+ var sp = stackSave();
253547
+ try {
253548
+ return Module["dynCall_jiii"](index, a1, a2, a3);
253450
253549
  } catch (e) {
253451
253550
  stackRestore(sp);
253452
253551
  if (e !== e + 0)
253453
253552
  throw e;
253454
253553
  _setThrew(1, 0);
253554
+ return 0n;
253455
253555
  }
253456
253556
  }
253457
253557
  function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
@@ -253577,16 +253677,21 @@ ${e}`);
253577
253677
  return originalHashAddNode.apply(FS, arguments);
253578
253678
  };
253579
253679
  }
253680
+ PHPLoader["phpVersion"] = (() => {
253681
+ const [major, minor, patch] = phpVersionString9.split(".").map(Number);
253682
+ return { major, minor, patch };
253683
+ })();
253580
253684
  return PHPLoader;
253581
253685
  }
253582
- var import_module9, import_path9, dependencyFilename9, dependenciesTotalSize9;
253686
+ var import_module9, import_path9, dependencyFilename9, dependenciesTotalSize9, phpVersionString9;
253583
253687
  var init_php_8_42 = __esm({
253584
253688
  "packages/php-wasm/node/asyncify/php_8_4.js"() {
253585
253689
  "use strict";
253586
253690
  import_module9 = require("module");
253587
253691
  import_path9 = __toESM(require("path"), 1);
253588
- dependencyFilename9 = import_path9.default.join(__dirname + "/asyncify", "8_4_0", "php_8_4.wasm");
253589
- dependenciesTotalSize9 = 36763254;
253692
+ dependencyFilename9 = import_path9.default.join(__dirname + "/asyncify", "8_4_10", "php_8_4.wasm");
253693
+ dependenciesTotalSize9 = 36942485;
253694
+ phpVersionString9 = "8.4.10";
253590
253695
  }
253591
253696
  });
253592
253697
 
@@ -254099,7 +254204,7 @@ function init11(RuntimeName, PHPLoader) {
254099
254204
  newDSO("__main__", 0, wasmImports);
254100
254205
  }
254101
254206
  };
254102
- var ___heap_base = 14207808;
254207
+ var ___heap_base = 15213312;
254103
254208
  var alignMemory = (size, alignment) => {
254104
254209
  return Math.ceil(size / alignment) * alignment;
254105
254210
  };
@@ -254241,7 +254346,7 @@ function init11(RuntimeName, PHPLoader) {
254241
254346
  };
254242
254347
  var wasmTableMirror = [];
254243
254348
  var wasmTable = new WebAssembly.Table({
254244
- initial: 16005,
254349
+ initial: 16130,
254245
254350
  element: "anyfunc"
254246
254351
  });
254247
254352
  var getWasmTableEntry = (funcPtr) => {
@@ -254863,11 +254968,11 @@ function init11(RuntimeName, PHPLoader) {
254863
254968
  { value: "i32", mutable: false },
254864
254969
  1024
254865
254970
  );
254866
- var ___stack_high = 14207808;
254867
- var ___stack_low = 14142272;
254971
+ var ___stack_high = 15213312;
254972
+ var ___stack_low = 14164736;
254868
254973
  var ___stack_pointer = new WebAssembly.Global(
254869
254974
  { value: "i32", mutable: true },
254870
- 14207808
254975
+ 15213312
254871
254976
  );
254872
254977
  var PATH = {
254873
254978
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -256763,9 +256868,6 @@ function init11(RuntimeName, PHPLoader) {
256763
256868
  if (FS.isMountpoint(node)) {
256764
256869
  throw new FS.ErrnoError(10);
256765
256870
  }
256766
- if (!FS.isDir(node.mode)) {
256767
- throw new FS.ErrnoError(54);
256768
- }
256769
256871
  }
256770
256872
  var mount = {
256771
256873
  type,
@@ -268169,9 +268271,6 @@ ${e}`);
268169
268271
  const buffer = _malloc(CHUNK_SIZE);
268170
268272
  HEAPU32[iov >> 2] = buffer;
268171
268273
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
268172
- if (typeof js_fd_read === "undefined") {
268173
- globalThis.js_fd_read = __asyncjs__js_fd_read;
268174
- }
268175
268274
  const interval = setInterval(pump2, 20);
268176
268275
  pump2();
268177
268276
  }
@@ -269569,7 +269668,7 @@ ${e}`);
269569
269668
  var addOnPreMain = (cb) => onMains.unshift(cb);
269570
269669
  var onExits = [];
269571
269670
  var addOnExit = (cb) => onExits.unshift(cb);
269572
- var STACK_SIZE = 65536;
269671
+ var STACK_SIZE = 1048576;
269573
269672
  var STACK_ALIGN = 16;
269574
269673
  var ASSERTIONS = 0;
269575
269674
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -279409,13 +279508,13 @@ ${e}`);
279409
279508
  Module["createContext"] = Browser.createContext;
279410
279509
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
279411
279510
  var ASM_CONSTS = {
279412
- 13214214: ($0) => {
279511
+ 13232061: ($0) => {
279413
279512
  if (!$0) {
279414
279513
  AL.alcErr = 40964;
279415
279514
  return 1;
279416
279515
  }
279417
279516
  },
279418
- 13214262: ($0) => {
279517
+ 13232109: ($0) => {
279419
279518
  if (!AL.currentCtx) {
279420
279519
  err("alGetProcAddress() called without a valid context");
279421
279520
  return 1;
@@ -279535,6 +279634,9 @@ ${e}`);
279535
279634
  while (true) {
279536
279635
  var mask = POLLNVAL;
279537
279636
  mask = SYSCALLS.DEFAULT_POLLMASK;
279637
+ if (FS.isClosed(stream)) {
279638
+ return ERRNO_CODES.EBADF;
279639
+ }
279538
279640
  if (stream.stream_ops?.poll) {
279539
279641
  mask = stream.stream_ops.poll(stream, -1);
279540
279642
  }
@@ -282029,6 +282131,8 @@ ${e}`);
282029
282131
  /** @export */
282030
282132
  invoke_iijiji,
282031
282133
  /** @export */
282134
+ invoke_ji,
282135
+ /** @export */
282032
282136
  invoke_jii,
282033
282137
  /** @export */
282034
282138
  invoke_jiii,
@@ -282055,6 +282159,8 @@ ${e}`);
282055
282159
  /** @export */
282056
282160
  invoke_viijii,
282057
282161
  /** @export */
282162
+ invoke_vijj,
282163
+ /** @export */
282058
282164
  invoke_vji,
282059
282165
  /** @export */
282060
282166
  js_fd_read,
@@ -282170,6 +282276,10 @@ ${e}`);
282170
282276
  var _fflush = (a0) => (_fflush = wasmExports["fflush"])(a0);
282171
282277
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
282172
282278
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
282279
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
282280
+ a0,
282281
+ a1
282282
+ );
282173
282283
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
282174
282284
  a0,
282175
282285
  a1,
@@ -282393,6 +282503,74 @@ ${e}`);
282393
282503
  _setThrew(1, 0);
282394
282504
  }
282395
282505
  }
282506
+ function invoke_vji(index, a1, a2) {
282507
+ var sp = stackSave();
282508
+ try {
282509
+ Module["dynCall_vji"](index, a1, a2);
282510
+ } catch (e) {
282511
+ stackRestore(sp);
282512
+ if (e !== e + 0)
282513
+ throw e;
282514
+ _setThrew(1, 0);
282515
+ }
282516
+ }
282517
+ function invoke_jii(index, a1, a2) {
282518
+ var sp = stackSave();
282519
+ try {
282520
+ return Module["dynCall_jii"](index, a1, a2);
282521
+ } catch (e) {
282522
+ stackRestore(sp);
282523
+ if (e !== e + 0)
282524
+ throw e;
282525
+ _setThrew(1, 0);
282526
+ return 0n;
282527
+ }
282528
+ }
282529
+ function invoke_v(index) {
282530
+ var sp = stackSave();
282531
+ try {
282532
+ Module["dynCall_v"](index);
282533
+ } catch (e) {
282534
+ stackRestore(sp);
282535
+ if (e !== e + 0)
282536
+ throw e;
282537
+ _setThrew(1, 0);
282538
+ }
282539
+ }
282540
+ function invoke_ji(index, a1) {
282541
+ var sp = stackSave();
282542
+ try {
282543
+ return Module["dynCall_ji"](index, a1);
282544
+ } catch (e) {
282545
+ stackRestore(sp);
282546
+ if (e !== e + 0)
282547
+ throw e;
282548
+ _setThrew(1, 0);
282549
+ return 0n;
282550
+ }
282551
+ }
282552
+ function invoke_vijj(index, a1, a2, a3) {
282553
+ var sp = stackSave();
282554
+ try {
282555
+ Module["dynCall_vijj"](index, a1, a2, a3);
282556
+ } catch (e) {
282557
+ stackRestore(sp);
282558
+ if (e !== e + 0)
282559
+ throw e;
282560
+ _setThrew(1, 0);
282561
+ }
282562
+ }
282563
+ function invoke_iij(index, a1, a2) {
282564
+ var sp = stackSave();
282565
+ try {
282566
+ return Module["dynCall_iij"](index, a1, a2);
282567
+ } catch (e) {
282568
+ stackRestore(sp);
282569
+ if (e !== e + 0)
282570
+ throw e;
282571
+ _setThrew(1, 0);
282572
+ }
282573
+ }
282396
282574
  function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
282397
282575
  var sp = stackSave();
282398
282576
  try {
@@ -282446,17 +282624,6 @@ ${e}`);
282446
282624
  _setThrew(1, 0);
282447
282625
  }
282448
282626
  }
282449
- function invoke_v(index) {
282450
- var sp = stackSave();
282451
- try {
282452
- Module["dynCall_v"](index);
282453
- } catch (e) {
282454
- stackRestore(sp);
282455
- if (e !== e + 0)
282456
- throw e;
282457
- _setThrew(1, 0);
282458
- }
282459
- }
282460
282627
  function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
282461
282628
  var sp = stackSave();
282462
282629
  try {
@@ -282468,17 +282635,6 @@ ${e}`);
282468
282635
  _setThrew(1, 0);
282469
282636
  }
282470
282637
  }
282471
- function invoke_vji(index, a1, a2) {
282472
- var sp = stackSave();
282473
- try {
282474
- Module["dynCall_vji"](index, a1, a2);
282475
- } catch (e) {
282476
- stackRestore(sp);
282477
- if (e !== e + 0)
282478
- throw e;
282479
- _setThrew(1, 0);
282480
- }
282481
- }
282482
282638
  function invoke_viijii(index, a1, a2, a3, a4, a5) {
282483
282639
  var sp = stackSave();
282484
282640
  try {
@@ -282524,29 +282680,6 @@ ${e}`);
282524
282680
  return 0n;
282525
282681
  }
282526
282682
  }
282527
- function invoke_jii(index, a1, a2) {
282528
- var sp = stackSave();
282529
- try {
282530
- return Module["dynCall_jii"](index, a1, a2);
282531
- } catch (e) {
282532
- stackRestore(sp);
282533
- if (e !== e + 0)
282534
- throw e;
282535
- _setThrew(1, 0);
282536
- return 0n;
282537
- }
282538
- }
282539
- function invoke_iij(index, a1, a2) {
282540
- var sp = stackSave();
282541
- try {
282542
- return Module["dynCall_iij"](index, a1, a2);
282543
- } catch (e) {
282544
- stackRestore(sp);
282545
- if (e !== e + 0)
282546
- throw e;
282547
- _setThrew(1, 0);
282548
- }
282549
- }
282550
282683
  function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
282551
282684
  var sp = stackSave();
282552
282685
  try {
@@ -282670,16 +282803,21 @@ ${e}`);
282670
282803
  return originalHashAddNode.apply(FS, arguments);
282671
282804
  };
282672
282805
  }
282806
+ PHPLoader["phpVersion"] = (() => {
282807
+ const [major, minor, patch] = phpVersionString10.split(".").map(Number);
282808
+ return { major, minor, patch };
282809
+ })();
282673
282810
  return PHPLoader;
282674
282811
  }
282675
- var import_module10, import_path10, dependencyFilename10, dependenciesTotalSize10;
282812
+ var import_module10, import_path10, dependencyFilename10, dependenciesTotalSize10, phpVersionString10;
282676
282813
  var init_php_8_32 = __esm({
282677
282814
  "packages/php-wasm/node/asyncify/php_8_3.js"() {
282678
282815
  "use strict";
282679
282816
  import_module10 = require("module");
282680
282817
  import_path10 = __toESM(require("path"), 1);
282681
- dependencyFilename10 = import_path10.default.join(__dirname + "/asyncify", "8_3_0", "php_8_3.wasm");
282682
- dependenciesTotalSize10 = 32949413;
282818
+ dependencyFilename10 = import_path10.default.join(__dirname + "/asyncify", "8_3_23", "php_8_3.wasm");
282819
+ dependenciesTotalSize10 = 33145262;
282820
+ phpVersionString10 = "8.3.23";
282683
282821
  }
282684
282822
  });
282685
282823
 
@@ -283192,7 +283330,7 @@ function init12(RuntimeName, PHPLoader) {
283192
283330
  newDSO("__main__", 0, wasmImports);
283193
283331
  }
283194
283332
  };
283195
- var ___heap_base = 13257536;
283333
+ var ___heap_base = 14294272;
283196
283334
  var alignMemory = (size, alignment) => {
283197
283335
  return Math.ceil(size / alignment) * alignment;
283198
283336
  };
@@ -283334,7 +283472,7 @@ function init12(RuntimeName, PHPLoader) {
283334
283472
  };
283335
283473
  var wasmTableMirror = [];
283336
283474
  var wasmTable = new WebAssembly.Table({
283337
- initial: 15952,
283475
+ initial: 16087,
283338
283476
  element: "anyfunc"
283339
283477
  });
283340
283478
  var getWasmTableEntry = (funcPtr) => {
@@ -283956,11 +284094,11 @@ function init12(RuntimeName, PHPLoader) {
283956
284094
  { value: "i32", mutable: false },
283957
284095
  1024
283958
284096
  );
283959
- var ___stack_high = 13257536;
283960
- var ___stack_low = 13192e3;
284097
+ var ___stack_high = 14294272;
284098
+ var ___stack_low = 13245696;
283961
284099
  var ___stack_pointer = new WebAssembly.Global(
283962
284100
  { value: "i32", mutable: true },
283963
- 13257536
284101
+ 14294272
283964
284102
  );
283965
284103
  var PATH = {
283966
284104
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -285856,9 +285994,6 @@ function init12(RuntimeName, PHPLoader) {
285856
285994
  if (FS.isMountpoint(node)) {
285857
285995
  throw new FS.ErrnoError(10);
285858
285996
  }
285859
- if (!FS.isDir(node.mode)) {
285860
- throw new FS.ErrnoError(54);
285861
- }
285862
285997
  }
285863
285998
  var mount = {
285864
285999
  type,
@@ -297262,9 +297397,6 @@ ${e}`);
297262
297397
  const buffer = _malloc(CHUNK_SIZE);
297263
297398
  HEAPU32[iov >> 2] = buffer;
297264
297399
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
297265
- if (typeof js_fd_read === "undefined") {
297266
- globalThis.js_fd_read = __asyncjs__js_fd_read;
297267
- }
297268
297400
  const interval = setInterval(pump2, 20);
297269
297401
  pump2();
297270
297402
  }
@@ -298662,7 +298794,7 @@ ${e}`);
298662
298794
  var addOnPreMain = (cb) => onMains.unshift(cb);
298663
298795
  var onExits = [];
298664
298796
  var addOnExit = (cb) => onExits.unshift(cb);
298665
- var STACK_SIZE = 65536;
298797
+ var STACK_SIZE = 1048576;
298666
298798
  var STACK_ALIGN = 16;
298667
298799
  var ASSERTIONS = 0;
298668
298800
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -308502,13 +308634,13 @@ ${e}`);
308502
308634
  Module["createContext"] = Browser.createContext;
308503
308635
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
308504
308636
  var ASM_CONSTS = {
308505
- 12264230: ($0) => {
308637
+ 12280477: ($0) => {
308506
308638
  if (!$0) {
308507
308639
  AL.alcErr = 40964;
308508
308640
  return 1;
308509
308641
  }
308510
308642
  },
308511
- 12264278: ($0) => {
308643
+ 12280525: ($0) => {
308512
308644
  if (!AL.currentCtx) {
308513
308645
  err("alGetProcAddress() called without a valid context");
308514
308646
  return 1;
@@ -308628,6 +308760,9 @@ ${e}`);
308628
308760
  while (true) {
308629
308761
  var mask = POLLNVAL;
308630
308762
  mask = SYSCALLS.DEFAULT_POLLMASK;
308763
+ if (FS.isClosed(stream)) {
308764
+ return ERRNO_CODES.EBADF;
308765
+ }
308631
308766
  if (stream.stream_ops?.poll) {
308632
308767
  mask = stream.stream_ops.poll(stream, -1);
308633
308768
  }
@@ -311122,6 +311257,8 @@ ${e}`);
311122
311257
  /** @export */
311123
311258
  invoke_iijiji,
311124
311259
  /** @export */
311260
+ invoke_ji,
311261
+ /** @export */
311125
311262
  invoke_jii,
311126
311263
  /** @export */
311127
311264
  invoke_jiii,
@@ -311148,6 +311285,8 @@ ${e}`);
311148
311285
  /** @export */
311149
311286
  invoke_viijii,
311150
311287
  /** @export */
311288
+ invoke_vijj,
311289
+ /** @export */
311151
311290
  invoke_vji,
311152
311291
  /** @export */
311153
311292
  js_fd_read,
@@ -311263,6 +311402,10 @@ ${e}`);
311263
311402
  var _fflush = (a0) => (_fflush = wasmExports["fflush"])(a0);
311264
311403
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
311265
311404
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
311405
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
311406
+ a0,
311407
+ a1
311408
+ );
311266
311409
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
311267
311410
  a0,
311268
311411
  a1,
@@ -311486,19 +311629,10 @@ ${e}`);
311486
311629
  _setThrew(1, 0);
311487
311630
  }
311488
311631
  }
311489
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
311632
+ function invoke_vji(index, a1, a2) {
311490
311633
  var sp = stackSave();
311491
311634
  try {
311492
- return Module["dynCall_iiiiiiii"](
311493
- index,
311494
- a1,
311495
- a2,
311496
- a3,
311497
- a4,
311498
- a5,
311499
- a6,
311500
- a7
311501
- );
311635
+ Module["dynCall_vji"](index, a1, a2);
311502
311636
  } catch (e) {
311503
311637
  stackRestore(sp);
311504
311638
  if (e !== e + 0)
@@ -311506,21 +311640,22 @@ ${e}`);
311506
311640
  _setThrew(1, 0);
311507
311641
  }
311508
311642
  }
311509
- function invoke_iiji(index, a1, a2, a3) {
311643
+ function invoke_jii(index, a1, a2) {
311510
311644
  var sp = stackSave();
311511
311645
  try {
311512
- return Module["dynCall_iiji"](index, a1, a2, a3);
311646
+ return Module["dynCall_jii"](index, a1, a2);
311513
311647
  } catch (e) {
311514
311648
  stackRestore(sp);
311515
311649
  if (e !== e + 0)
311516
311650
  throw e;
311517
311651
  _setThrew(1, 0);
311652
+ return 0n;
311518
311653
  }
311519
311654
  }
311520
- function invoke_iijii(index, a1, a2, a3, a4) {
311655
+ function invoke_v(index) {
311521
311656
  var sp = stackSave();
311522
311657
  try {
311523
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
311658
+ Module["dynCall_v"](index);
311524
311659
  } catch (e) {
311525
311660
  stackRestore(sp);
311526
311661
  if (e !== e + 0)
@@ -311528,21 +311663,22 @@ ${e}`);
311528
311663
  _setThrew(1, 0);
311529
311664
  }
311530
311665
  }
311531
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
311666
+ function invoke_ji(index, a1) {
311532
311667
  var sp = stackSave();
311533
311668
  try {
311534
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
311669
+ return Module["dynCall_ji"](index, a1);
311535
311670
  } catch (e) {
311536
311671
  stackRestore(sp);
311537
311672
  if (e !== e + 0)
311538
311673
  throw e;
311539
311674
  _setThrew(1, 0);
311675
+ return 0n;
311540
311676
  }
311541
311677
  }
311542
- function invoke_v(index) {
311678
+ function invoke_vijj(index, a1, a2, a3) {
311543
311679
  var sp = stackSave();
311544
311680
  try {
311545
- Module["dynCall_v"](index);
311681
+ Module["dynCall_vijj"](index, a1, a2, a3);
311546
311682
  } catch (e) {
311547
311683
  stackRestore(sp);
311548
311684
  if (e !== e + 0)
@@ -311550,10 +311686,10 @@ ${e}`);
311550
311686
  _setThrew(1, 0);
311551
311687
  }
311552
311688
  }
311553
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
311689
+ function invoke_iij(index, a1, a2) {
311554
311690
  var sp = stackSave();
311555
311691
  try {
311556
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
311692
+ return Module["dynCall_iij"](index, a1, a2);
311557
311693
  } catch (e) {
311558
311694
  stackRestore(sp);
311559
311695
  if (e !== e + 0)
@@ -311561,10 +311697,19 @@ ${e}`);
311561
311697
  _setThrew(1, 0);
311562
311698
  }
311563
311699
  }
311564
- function invoke_vji(index, a1, a2) {
311700
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
311565
311701
  var sp = stackSave();
311566
311702
  try {
311567
- Module["dynCall_vji"](index, a1, a2);
311703
+ return Module["dynCall_iiiiiiii"](
311704
+ index,
311705
+ a1,
311706
+ a2,
311707
+ a3,
311708
+ a4,
311709
+ a5,
311710
+ a6,
311711
+ a7
311712
+ );
311568
311713
  } catch (e) {
311569
311714
  stackRestore(sp);
311570
311715
  if (e !== e + 0)
@@ -311572,10 +311717,10 @@ ${e}`);
311572
311717
  _setThrew(1, 0);
311573
311718
  }
311574
311719
  }
311575
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
311720
+ function invoke_iiji(index, a1, a2, a3) {
311576
311721
  var sp = stackSave();
311577
311722
  try {
311578
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
311723
+ return Module["dynCall_iiji"](index, a1, a2, a3);
311579
311724
  } catch (e) {
311580
311725
  stackRestore(sp);
311581
311726
  if (e !== e + 0)
@@ -311583,10 +311728,10 @@ ${e}`);
311583
311728
  _setThrew(1, 0);
311584
311729
  }
311585
311730
  }
311586
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
311731
+ function invoke_iijii(index, a1, a2, a3, a4) {
311587
311732
  var sp = stackSave();
311588
311733
  try {
311589
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
311734
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
311590
311735
  } catch (e) {
311591
311736
  stackRestore(sp);
311592
311737
  if (e !== e + 0)
@@ -311594,10 +311739,10 @@ ${e}`);
311594
311739
  _setThrew(1, 0);
311595
311740
  }
311596
311741
  }
311597
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
311742
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
311598
311743
  var sp = stackSave();
311599
311744
  try {
311600
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
311745
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
311601
311746
  } catch (e) {
311602
311747
  stackRestore(sp);
311603
311748
  if (e !== e + 0)
@@ -311605,39 +311750,60 @@ ${e}`);
311605
311750
  _setThrew(1, 0);
311606
311751
  }
311607
311752
  }
311608
- function invoke_jiii(index, a1, a2, a3) {
311753
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
311609
311754
  var sp = stackSave();
311610
311755
  try {
311611
- return Module["dynCall_jiii"](index, a1, a2, a3);
311756
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
311612
311757
  } catch (e) {
311613
311758
  stackRestore(sp);
311614
311759
  if (e !== e + 0)
311615
311760
  throw e;
311616
311761
  _setThrew(1, 0);
311617
- return 0n;
311618
311762
  }
311619
311763
  }
311620
- function invoke_jii(index, a1, a2) {
311764
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
311621
311765
  var sp = stackSave();
311622
311766
  try {
311623
- return Module["dynCall_jii"](index, a1, a2);
311767
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
311624
311768
  } catch (e) {
311625
311769
  stackRestore(sp);
311626
311770
  if (e !== e + 0)
311627
311771
  throw e;
311628
311772
  _setThrew(1, 0);
311629
- return 0n;
311630
311773
  }
311631
311774
  }
311632
- function invoke_iij(index, a1, a2) {
311775
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
311633
311776
  var sp = stackSave();
311634
311777
  try {
311635
- return Module["dynCall_iij"](index, a1, a2);
311778
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
311779
+ } catch (e) {
311780
+ stackRestore(sp);
311781
+ if (e !== e + 0)
311782
+ throw e;
311783
+ _setThrew(1, 0);
311784
+ }
311785
+ }
311786
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
311787
+ var sp = stackSave();
311788
+ try {
311789
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
311790
+ } catch (e) {
311791
+ stackRestore(sp);
311792
+ if (e !== e + 0)
311793
+ throw e;
311794
+ _setThrew(1, 0);
311795
+ }
311796
+ }
311797
+ function invoke_jiii(index, a1, a2, a3) {
311798
+ var sp = stackSave();
311799
+ try {
311800
+ return Module["dynCall_jiii"](index, a1, a2, a3);
311636
311801
  } catch (e) {
311637
311802
  stackRestore(sp);
311638
311803
  if (e !== e + 0)
311639
311804
  throw e;
311640
311805
  _setThrew(1, 0);
311806
+ return 0n;
311641
311807
  }
311642
311808
  }
311643
311809
  function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
@@ -311763,16 +311929,21 @@ ${e}`);
311763
311929
  return originalHashAddNode.apply(FS, arguments);
311764
311930
  };
311765
311931
  }
311932
+ PHPLoader["phpVersion"] = (() => {
311933
+ const [major, minor, patch] = phpVersionString11.split(".").map(Number);
311934
+ return { major, minor, patch };
311935
+ })();
311766
311936
  return PHPLoader;
311767
311937
  }
311768
- var import_module11, import_path11, dependencyFilename11, dependenciesTotalSize11;
311938
+ var import_module11, import_path11, dependencyFilename11, dependenciesTotalSize11, phpVersionString11;
311769
311939
  var init_php_8_22 = __esm({
311770
311940
  "packages/php-wasm/node/asyncify/php_8_2.js"() {
311771
311941
  "use strict";
311772
311942
  import_module11 = require("module");
311773
311943
  import_path11 = __toESM(require("path"), 1);
311774
- dependencyFilename11 = import_path11.default.join(__dirname + "/asyncify", "8_2_10", "php_8_2.wasm");
311775
- dependenciesTotalSize11 = 31860490;
311944
+ dependencyFilename11 = import_path11.default.join(__dirname + "/asyncify", "8_2_29", "php_8_2.wasm");
311945
+ dependenciesTotalSize11 = 32040568;
311946
+ phpVersionString11 = "8.2.29";
311776
311947
  }
311777
311948
  });
311778
311949
 
@@ -312285,7 +312456,7 @@ function init13(RuntimeName, PHPLoader) {
312285
312456
  newDSO("__main__", 0, wasmImports);
312286
312457
  }
312287
312458
  };
312288
- var ___heap_base = 13227456;
312459
+ var ___heap_base = 14257088;
312289
312460
  var alignMemory = (size, alignment) => {
312290
312461
  return Math.ceil(size / alignment) * alignment;
312291
312462
  };
@@ -312427,7 +312598,7 @@ function init13(RuntimeName, PHPLoader) {
312427
312598
  };
312428
312599
  var wasmTableMirror = [];
312429
312600
  var wasmTable = new WebAssembly.Table({
312430
- initial: 15711,
312601
+ initial: 15836,
312431
312602
  element: "anyfunc"
312432
312603
  });
312433
312604
  var getWasmTableEntry = (funcPtr) => {
@@ -313049,11 +313220,11 @@ function init13(RuntimeName, PHPLoader) {
313049
313220
  { value: "i32", mutable: false },
313050
313221
  1024
313051
313222
  );
313052
- var ___stack_high = 13227456;
313053
- var ___stack_low = 13161920;
313223
+ var ___stack_high = 14257088;
313224
+ var ___stack_low = 13208512;
313054
313225
  var ___stack_pointer = new WebAssembly.Global(
313055
313226
  { value: "i32", mutable: true },
313056
- 13227456
313227
+ 14257088
313057
313228
  );
313058
313229
  var PATH = {
313059
313230
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -314949,9 +315120,6 @@ function init13(RuntimeName, PHPLoader) {
314949
315120
  if (FS.isMountpoint(node)) {
314950
315121
  throw new FS.ErrnoError(10);
314951
315122
  }
314952
- if (!FS.isDir(node.mode)) {
314953
- throw new FS.ErrnoError(54);
314954
- }
314955
315123
  }
314956
315124
  var mount = {
314957
315125
  type,
@@ -326354,9 +326522,6 @@ ${e}`);
326354
326522
  const buffer = _malloc(CHUNK_SIZE);
326355
326523
  HEAPU32[iov >> 2] = buffer;
326356
326524
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
326357
- if (typeof js_fd_read === "undefined") {
326358
- globalThis.js_fd_read = __asyncjs__js_fd_read;
326359
- }
326360
326525
  const interval = setInterval(pump2, 20);
326361
326526
  pump2();
326362
326527
  }
@@ -327754,7 +327919,7 @@ ${e}`);
327754
327919
  var addOnPreMain = (cb) => onMains.unshift(cb);
327755
327920
  var onExits = [];
327756
327921
  var addOnExit = (cb) => onExits.unshift(cb);
327757
- var STACK_SIZE = 65536;
327922
+ var STACK_SIZE = 1048576;
327758
327923
  var STACK_ALIGN = 16;
327759
327924
  var ASSERTIONS = 0;
327760
327925
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -337595,13 +337760,13 @@ ${e}`);
337595
337760
  Module["createContext"] = Browser.createContext;
337596
337761
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
337597
337762
  var ASM_CONSTS = {
337598
- 12232630: ($0) => {
337763
+ 12241821: ($0) => {
337599
337764
  if (!$0) {
337600
337765
  AL.alcErr = 40964;
337601
337766
  return 1;
337602
337767
  }
337603
337768
  },
337604
- 12232678: ($0) => {
337769
+ 12241869: ($0) => {
337605
337770
  if (!AL.currentCtx) {
337606
337771
  err("alGetProcAddress() called without a valid context");
337607
337772
  return 1;
@@ -337721,6 +337886,9 @@ ${e}`);
337721
337886
  while (true) {
337722
337887
  var mask = POLLNVAL;
337723
337888
  mask = SYSCALLS.DEFAULT_POLLMASK;
337889
+ if (FS.isClosed(stream)) {
337890
+ return ERRNO_CODES.EBADF;
337891
+ }
337724
337892
  if (stream.stream_ops?.poll) {
337725
337893
  mask = stream.stream_ops.poll(stream, -1);
337726
337894
  }
@@ -340215,6 +340383,10 @@ ${e}`);
340215
340383
  /** @export */
340216
340384
  invoke_iijiji,
340217
340385
  /** @export */
340386
+ invoke_iijj,
340387
+ /** @export */
340388
+ invoke_ji,
340389
+ /** @export */
340218
340390
  invoke_jii,
340219
340391
  /** @export */
340220
340392
  invoke_jiii,
@@ -340361,6 +340533,10 @@ ${e}`);
340361
340533
  var _htonl = (a0) => (_htonl = wasmExports["htonl"])(a0);
340362
340534
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
340363
340535
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
340536
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
340537
+ a0,
340538
+ a1
340539
+ );
340364
340540
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
340365
340541
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
340366
340542
  var _wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = (a0) => (_wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = wasmExports["wasm_set_sapi_name"])(a0);
@@ -340579,19 +340755,10 @@ ${e}`);
340579
340755
  _setThrew(1, 0);
340580
340756
  }
340581
340757
  }
340582
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
340758
+ function invoke_vji(index, a1, a2) {
340583
340759
  var sp = stackSave();
340584
340760
  try {
340585
- return Module["dynCall_iiiiiiii"](
340586
- index,
340587
- a1,
340588
- a2,
340589
- a3,
340590
- a4,
340591
- a5,
340592
- a6,
340593
- a7
340594
- );
340761
+ Module["dynCall_vji"](index, a1, a2);
340595
340762
  } catch (e) {
340596
340763
  stackRestore(sp);
340597
340764
  if (e !== e + 0)
@@ -340599,21 +340766,22 @@ ${e}`);
340599
340766
  _setThrew(1, 0);
340600
340767
  }
340601
340768
  }
340602
- function invoke_iiji(index, a1, a2, a3) {
340769
+ function invoke_jii(index, a1, a2) {
340603
340770
  var sp = stackSave();
340604
340771
  try {
340605
- return Module["dynCall_iiji"](index, a1, a2, a3);
340772
+ return Module["dynCall_jii"](index, a1, a2);
340606
340773
  } catch (e) {
340607
340774
  stackRestore(sp);
340608
340775
  if (e !== e + 0)
340609
340776
  throw e;
340610
340777
  _setThrew(1, 0);
340778
+ return 0n;
340611
340779
  }
340612
340780
  }
340613
- function invoke_iijii(index, a1, a2, a3, a4) {
340781
+ function invoke_v(index) {
340614
340782
  var sp = stackSave();
340615
340783
  try {
340616
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
340784
+ Module["dynCall_v"](index);
340617
340785
  } catch (e) {
340618
340786
  stackRestore(sp);
340619
340787
  if (e !== e + 0)
@@ -340621,21 +340789,22 @@ ${e}`);
340621
340789
  _setThrew(1, 0);
340622
340790
  }
340623
340791
  }
340624
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
340792
+ function invoke_ji(index, a1) {
340625
340793
  var sp = stackSave();
340626
340794
  try {
340627
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
340795
+ return Module["dynCall_ji"](index, a1);
340628
340796
  } catch (e) {
340629
340797
  stackRestore(sp);
340630
340798
  if (e !== e + 0)
340631
340799
  throw e;
340632
340800
  _setThrew(1, 0);
340801
+ return 0n;
340633
340802
  }
340634
340803
  }
340635
- function invoke_v(index) {
340804
+ function invoke_iijj(index, a1, a2, a3) {
340636
340805
  var sp = stackSave();
340637
340806
  try {
340638
- Module["dynCall_v"](index);
340807
+ return Module["dynCall_iijj"](index, a1, a2, a3);
340639
340808
  } catch (e) {
340640
340809
  stackRestore(sp);
340641
340810
  if (e !== e + 0)
@@ -340643,10 +340812,10 @@ ${e}`);
340643
340812
  _setThrew(1, 0);
340644
340813
  }
340645
340814
  }
340646
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
340815
+ function invoke_iij(index, a1, a2) {
340647
340816
  var sp = stackSave();
340648
340817
  try {
340649
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
340818
+ return Module["dynCall_iij"](index, a1, a2);
340650
340819
  } catch (e) {
340651
340820
  stackRestore(sp);
340652
340821
  if (e !== e + 0)
@@ -340654,10 +340823,19 @@ ${e}`);
340654
340823
  _setThrew(1, 0);
340655
340824
  }
340656
340825
  }
340657
- function invoke_vji(index, a1, a2) {
340826
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
340658
340827
  var sp = stackSave();
340659
340828
  try {
340660
- Module["dynCall_vji"](index, a1, a2);
340829
+ return Module["dynCall_iiiiiiii"](
340830
+ index,
340831
+ a1,
340832
+ a2,
340833
+ a3,
340834
+ a4,
340835
+ a5,
340836
+ a6,
340837
+ a7
340838
+ );
340661
340839
  } catch (e) {
340662
340840
  stackRestore(sp);
340663
340841
  if (e !== e + 0)
@@ -340665,10 +340843,10 @@ ${e}`);
340665
340843
  _setThrew(1, 0);
340666
340844
  }
340667
340845
  }
340668
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
340846
+ function invoke_iiji(index, a1, a2, a3) {
340669
340847
  var sp = stackSave();
340670
340848
  try {
340671
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
340849
+ return Module["dynCall_iiji"](index, a1, a2, a3);
340672
340850
  } catch (e) {
340673
340851
  stackRestore(sp);
340674
340852
  if (e !== e + 0)
@@ -340676,10 +340854,10 @@ ${e}`);
340676
340854
  _setThrew(1, 0);
340677
340855
  }
340678
340856
  }
340679
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
340857
+ function invoke_iijii(index, a1, a2, a3, a4) {
340680
340858
  var sp = stackSave();
340681
340859
  try {
340682
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
340860
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
340683
340861
  } catch (e) {
340684
340862
  stackRestore(sp);
340685
340863
  if (e !== e + 0)
@@ -340687,10 +340865,10 @@ ${e}`);
340687
340865
  _setThrew(1, 0);
340688
340866
  }
340689
340867
  }
340690
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
340868
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
340691
340869
  var sp = stackSave();
340692
340870
  try {
340693
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
340871
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
340694
340872
  } catch (e) {
340695
340873
  stackRestore(sp);
340696
340874
  if (e !== e + 0)
@@ -340698,34 +340876,32 @@ ${e}`);
340698
340876
  _setThrew(1, 0);
340699
340877
  }
340700
340878
  }
340701
- function invoke_jiii(index, a1, a2, a3) {
340879
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
340702
340880
  var sp = stackSave();
340703
340881
  try {
340704
- return Module["dynCall_jiii"](index, a1, a2, a3);
340882
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
340705
340883
  } catch (e) {
340706
340884
  stackRestore(sp);
340707
340885
  if (e !== e + 0)
340708
340886
  throw e;
340709
340887
  _setThrew(1, 0);
340710
- return 0n;
340711
340888
  }
340712
340889
  }
340713
- function invoke_jii(index, a1, a2) {
340890
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
340714
340891
  var sp = stackSave();
340715
340892
  try {
340716
- return Module["dynCall_jii"](index, a1, a2);
340893
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
340717
340894
  } catch (e) {
340718
340895
  stackRestore(sp);
340719
340896
  if (e !== e + 0)
340720
340897
  throw e;
340721
340898
  _setThrew(1, 0);
340722
- return 0n;
340723
340899
  }
340724
340900
  }
340725
- function invoke_iij(index, a1, a2) {
340901
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
340726
340902
  var sp = stackSave();
340727
340903
  try {
340728
- return Module["dynCall_iij"](index, a1, a2);
340904
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
340729
340905
  } catch (e) {
340730
340906
  stackRestore(sp);
340731
340907
  if (e !== e + 0)
@@ -340733,6 +340909,29 @@ ${e}`);
340733
340909
  _setThrew(1, 0);
340734
340910
  }
340735
340911
  }
340912
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
340913
+ var sp = stackSave();
340914
+ try {
340915
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
340916
+ } catch (e) {
340917
+ stackRestore(sp);
340918
+ if (e !== e + 0)
340919
+ throw e;
340920
+ _setThrew(1, 0);
340921
+ }
340922
+ }
340923
+ function invoke_jiii(index, a1, a2, a3) {
340924
+ var sp = stackSave();
340925
+ try {
340926
+ return Module["dynCall_jiii"](index, a1, a2, a3);
340927
+ } catch (e) {
340928
+ stackRestore(sp);
340929
+ if (e !== e + 0)
340930
+ throw e;
340931
+ _setThrew(1, 0);
340932
+ return 0n;
340933
+ }
340934
+ }
340736
340935
  function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
340737
340936
  var sp = stackSave();
340738
340937
  try {
@@ -340856,16 +341055,21 @@ ${e}`);
340856
341055
  return originalHashAddNode.apply(FS, arguments);
340857
341056
  };
340858
341057
  }
341058
+ PHPLoader["phpVersion"] = (() => {
341059
+ const [major, minor, patch] = phpVersionString12.split(".").map(Number);
341060
+ return { major, minor, patch };
341061
+ })();
340859
341062
  return PHPLoader;
340860
341063
  }
340861
- var import_module12, import_path12, dependencyFilename12, dependenciesTotalSize12;
341064
+ var import_module12, import_path12, dependencyFilename12, dependenciesTotalSize12, phpVersionString12;
340862
341065
  var init_php_8_12 = __esm({
340863
341066
  "packages/php-wasm/node/asyncify/php_8_1.js"() {
340864
341067
  "use strict";
340865
341068
  import_module12 = require("module");
340866
341069
  import_path12 = __toESM(require("path"), 1);
340867
- dependencyFilename12 = import_path12.default.join(__dirname + "/asyncify", "8_1_23", "php_8_1.wasm");
340868
- dependenciesTotalSize12 = 31498814;
341070
+ dependencyFilename12 = import_path12.default.join(__dirname + "/asyncify", "8_1_33", "php_8_1.wasm");
341071
+ dependenciesTotalSize12 = 31648487;
341072
+ phpVersionString12 = "8.1.33";
340869
341073
  }
340870
341074
  });
340871
341075
 
@@ -341378,7 +341582,7 @@ function init14(RuntimeName, PHPLoader) {
341378
341582
  newDSO("__main__", 0, wasmImports);
341379
341583
  }
341380
341584
  };
341381
- var ___heap_base = 13133056;
341585
+ var ___heap_base = 14176384;
341382
341586
  var alignMemory = (size, alignment) => {
341383
341587
  return Math.ceil(size / alignment) * alignment;
341384
341588
  };
@@ -341520,7 +341724,7 @@ function init14(RuntimeName, PHPLoader) {
341520
341724
  };
341521
341725
  var wasmTableMirror = [];
341522
341726
  var wasmTable = new WebAssembly.Table({
341523
- initial: 15613,
341727
+ initial: 15745,
341524
341728
  element: "anyfunc"
341525
341729
  });
341526
341730
  var getWasmTableEntry = (funcPtr) => {
@@ -342142,11 +342346,11 @@ function init14(RuntimeName, PHPLoader) {
342142
342346
  { value: "i32", mutable: false },
342143
342347
  1024
342144
342348
  );
342145
- var ___stack_high = 13133056;
342146
- var ___stack_low = 13067520;
342349
+ var ___stack_high = 14176384;
342350
+ var ___stack_low = 13127808;
342147
342351
  var ___stack_pointer = new WebAssembly.Global(
342148
342352
  { value: "i32", mutable: true },
342149
- 13133056
342353
+ 14176384
342150
342354
  );
342151
342355
  var PATH = {
342152
342356
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -344042,9 +344246,6 @@ function init14(RuntimeName, PHPLoader) {
344042
344246
  if (FS.isMountpoint(node)) {
344043
344247
  throw new FS.ErrnoError(10);
344044
344248
  }
344045
- if (!FS.isDir(node.mode)) {
344046
- throw new FS.ErrnoError(54);
344047
- }
344048
344249
  }
344049
344250
  var mount = {
344050
344251
  type,
@@ -355446,9 +355647,6 @@ ${e}`);
355446
355647
  const buffer = _malloc(CHUNK_SIZE);
355447
355648
  HEAPU32[iov >> 2] = buffer;
355448
355649
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
355449
- if (typeof js_fd_read === "undefined") {
355450
- globalThis.js_fd_read = __asyncjs__js_fd_read;
355451
- }
355452
355650
  const interval = setInterval(pump2, 20);
355453
355651
  pump2();
355454
355652
  }
@@ -356844,7 +357042,7 @@ ${e}`);
356844
357042
  var addOnPreMain = (cb) => onMains.unshift(cb);
356845
357043
  var onExits = [];
356846
357044
  var addOnExit = (cb) => onExits.unshift(cb);
356847
- var STACK_SIZE = 65536;
357045
+ var STACK_SIZE = 1048576;
356848
357046
  var STACK_ALIGN = 16;
356849
357047
  var ASSERTIONS = 0;
356850
357048
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -366688,13 +366886,13 @@ ${e}`);
366688
366886
  Module["createContext"] = Browser.createContext;
366689
366887
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
366690
366888
  var ASM_CONSTS = {
366691
- 12137942: ($0) => {
366889
+ 12160717: ($0) => {
366692
366890
  if (!$0) {
366693
366891
  AL.alcErr = 40964;
366694
366892
  return 1;
366695
366893
  }
366696
366894
  },
366697
- 12137990: ($0) => {
366895
+ 12160765: ($0) => {
366698
366896
  if (!AL.currentCtx) {
366699
366897
  err("alGetProcAddress() called without a valid context");
366700
366898
  return 1;
@@ -366814,6 +367012,9 @@ ${e}`);
366814
367012
  while (true) {
366815
367013
  var mask = POLLNVAL;
366816
367014
  mask = SYSCALLS.DEFAULT_POLLMASK;
367015
+ if (FS.isClosed(stream)) {
367016
+ return ERRNO_CODES.EBADF;
367017
+ }
366817
367018
  if (stream.stream_ops?.poll) {
366818
367019
  mask = stream.stream_ops.poll(stream, -1);
366819
367020
  }
@@ -369306,6 +369507,8 @@ ${e}`);
369306
369507
  /** @export */
369307
369508
  invoke_iijiji,
369308
369509
  /** @export */
369510
+ invoke_iijj,
369511
+ /** @export */
369309
369512
  invoke_ji,
369310
369513
  /** @export */
369311
369514
  invoke_jii,
@@ -369454,6 +369657,10 @@ ${e}`);
369454
369657
  var _htonl = (a0) => (_htonl = wasmExports["htonl"])(a0);
369455
369658
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
369456
369659
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
369660
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
369661
+ a0,
369662
+ a1
369663
+ );
369457
369664
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
369458
369665
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
369459
369666
  var _wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = (a0) => (_wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = wasmExports["wasm_set_sapi_name"])(a0);
@@ -369672,19 +369879,10 @@ ${e}`);
369672
369879
  _setThrew(1, 0);
369673
369880
  }
369674
369881
  }
369675
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
369882
+ function invoke_vji(index, a1, a2) {
369676
369883
  var sp = stackSave();
369677
369884
  try {
369678
- return Module["dynCall_iiiiiiii"](
369679
- index,
369680
- a1,
369681
- a2,
369682
- a3,
369683
- a4,
369684
- a5,
369685
- a6,
369686
- a7
369687
- );
369885
+ Module["dynCall_vji"](index, a1, a2);
369688
369886
  } catch (e) {
369689
369887
  stackRestore(sp);
369690
369888
  if (e !== e + 0)
@@ -369692,32 +369890,34 @@ ${e}`);
369692
369890
  _setThrew(1, 0);
369693
369891
  }
369694
369892
  }
369695
- function invoke_iiji(index, a1, a2, a3) {
369893
+ function invoke_jii(index, a1, a2) {
369696
369894
  var sp = stackSave();
369697
369895
  try {
369698
- return Module["dynCall_iiji"](index, a1, a2, a3);
369896
+ return Module["dynCall_jii"](index, a1, a2);
369699
369897
  } catch (e) {
369700
369898
  stackRestore(sp);
369701
369899
  if (e !== e + 0)
369702
369900
  throw e;
369703
369901
  _setThrew(1, 0);
369902
+ return 0n;
369704
369903
  }
369705
369904
  }
369706
- function invoke_iijii(index, a1, a2, a3, a4) {
369905
+ function invoke_ji(index, a1) {
369707
369906
  var sp = stackSave();
369708
369907
  try {
369709
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
369908
+ return Module["dynCall_ji"](index, a1);
369710
369909
  } catch (e) {
369711
369910
  stackRestore(sp);
369712
369911
  if (e !== e + 0)
369713
369912
  throw e;
369714
369913
  _setThrew(1, 0);
369914
+ return 0n;
369715
369915
  }
369716
369916
  }
369717
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
369917
+ function invoke_v(index) {
369718
369918
  var sp = stackSave();
369719
369919
  try {
369720
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
369920
+ Module["dynCall_v"](index);
369721
369921
  } catch (e) {
369722
369922
  stackRestore(sp);
369723
369923
  if (e !== e + 0)
@@ -369725,10 +369925,10 @@ ${e}`);
369725
369925
  _setThrew(1, 0);
369726
369926
  }
369727
369927
  }
369728
- function invoke_v(index) {
369928
+ function invoke_iijj(index, a1, a2, a3) {
369729
369929
  var sp = stackSave();
369730
369930
  try {
369731
- Module["dynCall_v"](index);
369931
+ return Module["dynCall_iijj"](index, a1, a2, a3);
369732
369932
  } catch (e) {
369733
369933
  stackRestore(sp);
369734
369934
  if (e !== e + 0)
@@ -369736,10 +369936,19 @@ ${e}`);
369736
369936
  _setThrew(1, 0);
369737
369937
  }
369738
369938
  }
369739
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
369939
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
369740
369940
  var sp = stackSave();
369741
369941
  try {
369742
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
369942
+ return Module["dynCall_iiiiiiii"](
369943
+ index,
369944
+ a1,
369945
+ a2,
369946
+ a3,
369947
+ a4,
369948
+ a5,
369949
+ a6,
369950
+ a7
369951
+ );
369743
369952
  } catch (e) {
369744
369953
  stackRestore(sp);
369745
369954
  if (e !== e + 0)
@@ -369747,10 +369956,10 @@ ${e}`);
369747
369956
  _setThrew(1, 0);
369748
369957
  }
369749
369958
  }
369750
- function invoke_vji(index, a1, a2) {
369959
+ function invoke_iiji(index, a1, a2, a3) {
369751
369960
  var sp = stackSave();
369752
369961
  try {
369753
- Module["dynCall_vji"](index, a1, a2);
369962
+ return Module["dynCall_iiji"](index, a1, a2, a3);
369754
369963
  } catch (e) {
369755
369964
  stackRestore(sp);
369756
369965
  if (e !== e + 0)
@@ -369758,10 +369967,10 @@ ${e}`);
369758
369967
  _setThrew(1, 0);
369759
369968
  }
369760
369969
  }
369761
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
369970
+ function invoke_iijii(index, a1, a2, a3, a4) {
369762
369971
  var sp = stackSave();
369763
369972
  try {
369764
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
369973
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
369765
369974
  } catch (e) {
369766
369975
  stackRestore(sp);
369767
369976
  if (e !== e + 0)
@@ -369769,10 +369978,10 @@ ${e}`);
369769
369978
  _setThrew(1, 0);
369770
369979
  }
369771
369980
  }
369772
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
369981
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
369773
369982
  var sp = stackSave();
369774
369983
  try {
369775
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
369984
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
369776
369985
  } catch (e) {
369777
369986
  stackRestore(sp);
369778
369987
  if (e !== e + 0)
@@ -369780,10 +369989,10 @@ ${e}`);
369780
369989
  _setThrew(1, 0);
369781
369990
  }
369782
369991
  }
369783
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
369992
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
369784
369993
  var sp = stackSave();
369785
369994
  try {
369786
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
369995
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
369787
369996
  } catch (e) {
369788
369997
  stackRestore(sp);
369789
369998
  if (e !== e + 0)
@@ -369791,34 +370000,32 @@ ${e}`);
369791
370000
  _setThrew(1, 0);
369792
370001
  }
369793
370002
  }
369794
- function invoke_jiii(index, a1, a2, a3) {
370003
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
369795
370004
  var sp = stackSave();
369796
370005
  try {
369797
- return Module["dynCall_jiii"](index, a1, a2, a3);
370006
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
369798
370007
  } catch (e) {
369799
370008
  stackRestore(sp);
369800
370009
  if (e !== e + 0)
369801
370010
  throw e;
369802
370011
  _setThrew(1, 0);
369803
- return 0n;
369804
370012
  }
369805
370013
  }
369806
- function invoke_ji(index, a1) {
370014
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
369807
370015
  var sp = stackSave();
369808
370016
  try {
369809
- return Module["dynCall_ji"](index, a1);
370017
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
369810
370018
  } catch (e) {
369811
370019
  stackRestore(sp);
369812
370020
  if (e !== e + 0)
369813
370021
  throw e;
369814
370022
  _setThrew(1, 0);
369815
- return 0n;
369816
370023
  }
369817
370024
  }
369818
- function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
370025
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
369819
370026
  var sp = stackSave();
369820
370027
  try {
369821
- Module["dynCall_viiiiiii"](index, a1, a2, a3, a4, a5, a6, a7);
370028
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
369822
370029
  } catch (e) {
369823
370030
  stackRestore(sp);
369824
370031
  if (e !== e + 0)
@@ -369826,10 +370033,10 @@ ${e}`);
369826
370033
  _setThrew(1, 0);
369827
370034
  }
369828
370035
  }
369829
- function invoke_jii(index, a1, a2) {
370036
+ function invoke_jiii(index, a1, a2, a3) {
369830
370037
  var sp = stackSave();
369831
370038
  try {
369832
- return Module["dynCall_jii"](index, a1, a2);
370039
+ return Module["dynCall_jiii"](index, a1, a2, a3);
369833
370040
  } catch (e) {
369834
370041
  stackRestore(sp);
369835
370042
  if (e !== e + 0)
@@ -369838,6 +370045,17 @@ ${e}`);
369838
370045
  return 0n;
369839
370046
  }
369840
370047
  }
370048
+ function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
370049
+ var sp = stackSave();
370050
+ try {
370051
+ Module["dynCall_viiiiiii"](index, a1, a2, a3, a4, a5, a6, a7);
370052
+ } catch (e) {
370053
+ stackRestore(sp);
370054
+ if (e !== e + 0)
370055
+ throw e;
370056
+ _setThrew(1, 0);
370057
+ }
370058
+ }
369841
370059
  Module["addRunDependency"] = addRunDependency;
369842
370060
  Module["removeRunDependency"] = removeRunDependency;
369843
370061
  Module["wasmExports"] = wasmExports;
@@ -369950,16 +370168,21 @@ ${e}`);
369950
370168
  return originalHashAddNode.apply(FS, arguments);
369951
370169
  };
369952
370170
  }
370171
+ PHPLoader["phpVersion"] = (() => {
370172
+ const [major, minor, patch] = phpVersionString13.split(".").map(Number);
370173
+ return { major, minor, patch };
370174
+ })();
369953
370175
  return PHPLoader;
369954
370176
  }
369955
- var import_module13, import_path13, dependencyFilename13, dependenciesTotalSize13;
370177
+ var import_module13, import_path13, dependencyFilename13, dependenciesTotalSize13, phpVersionString13;
369956
370178
  var init_php_8_02 = __esm({
369957
370179
  "packages/php-wasm/node/asyncify/php_8_0.js"() {
369958
370180
  "use strict";
369959
370181
  import_module13 = require("module");
369960
370182
  import_path13 = __toESM(require("path"), 1);
369961
370183
  dependencyFilename13 = import_path13.default.join(__dirname + "/asyncify", "8_0_30", "php_8_0.wasm");
369962
- dependenciesTotalSize13 = 30898967;
370184
+ dependenciesTotalSize13 = 31315360;
370185
+ phpVersionString13 = "8.0.30";
369963
370186
  }
369964
370187
  });
369965
370188
 
@@ -370472,7 +370695,7 @@ function init15(RuntimeName, PHPLoader) {
370472
370695
  newDSO("__main__", 0, wasmImports);
370473
370696
  }
370474
370697
  };
370475
- var ___heap_base = 12029184;
370698
+ var ___heap_base = 13083904;
370476
370699
  var alignMemory = (size, alignment) => {
370477
370700
  return Math.ceil(size / alignment) * alignment;
370478
370701
  };
@@ -370614,7 +370837,7 @@ function init15(RuntimeName, PHPLoader) {
370614
370837
  };
370615
370838
  var wasmTableMirror = [];
370616
370839
  var wasmTable = new WebAssembly.Table({
370617
- initial: 15481,
370840
+ initial: 15610,
370618
370841
  element: "anyfunc"
370619
370842
  });
370620
370843
  var getWasmTableEntry = (funcPtr) => {
@@ -371236,11 +371459,11 @@ function init15(RuntimeName, PHPLoader) {
371236
371459
  { value: "i32", mutable: false },
371237
371460
  1024
371238
371461
  );
371239
- var ___stack_high = 12029184;
371240
- var ___stack_low = 11963648;
371462
+ var ___stack_high = 13083904;
371463
+ var ___stack_low = 12035328;
371241
371464
  var ___stack_pointer = new WebAssembly.Global(
371242
371465
  { value: "i32", mutable: true },
371243
- 12029184
371466
+ 13083904
371244
371467
  );
371245
371468
  var PATH = {
371246
371469
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -373136,9 +373359,6 @@ function init15(RuntimeName, PHPLoader) {
373136
373359
  if (FS.isMountpoint(node)) {
373137
373360
  throw new FS.ErrnoError(10);
373138
373361
  }
373139
- if (!FS.isDir(node.mode)) {
373140
- throw new FS.ErrnoError(54);
373141
- }
373142
373362
  }
373143
373363
  var mount = {
373144
373364
  type,
@@ -384540,9 +384760,6 @@ ${e}`);
384540
384760
  const buffer = _malloc(CHUNK_SIZE);
384541
384761
  HEAPU32[iov >> 2] = buffer;
384542
384762
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
384543
- if (typeof js_fd_read === "undefined") {
384544
- globalThis.js_fd_read = __asyncjs__js_fd_read;
384545
- }
384546
384763
  const interval = setInterval(pump2, 20);
384547
384764
  pump2();
384548
384765
  }
@@ -385938,7 +386155,7 @@ ${e}`);
385938
386155
  var addOnPreMain = (cb) => onMains.unshift(cb);
385939
386156
  var onExits = [];
385940
386157
  var addOnExit = (cb) => onExits.unshift(cb);
385941
- var STACK_SIZE = 65536;
386158
+ var STACK_SIZE = 1048576;
385942
386159
  var STACK_ALIGN = 16;
385943
386160
  var ASSERTIONS = 0;
385944
386161
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -395782,13 +395999,13 @@ ${e}`);
395782
395999
  Module["createContext"] = Browser.createContext;
395783
396000
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
395784
396001
  var ASM_CONSTS = {
395785
- 11104566: ($0) => {
396002
+ 11138685: ($0) => {
395786
396003
  if (!$0) {
395787
396004
  AL.alcErr = 40964;
395788
396005
  return 1;
395789
396006
  }
395790
396007
  },
395791
- 11104614: ($0) => {
396008
+ 11138733: ($0) => {
395792
396009
  if (!AL.currentCtx) {
395793
396010
  err("alGetProcAddress() called without a valid context");
395794
396011
  return 1;
@@ -395908,6 +396125,9 @@ ${e}`);
395908
396125
  while (true) {
395909
396126
  var mask = POLLNVAL;
395910
396127
  mask = SYSCALLS.DEFAULT_POLLMASK;
396128
+ if (FS.isClosed(stream)) {
396129
+ return ERRNO_CODES.EBADF;
396130
+ }
395911
396131
  if (stream.stream_ops?.poll) {
395912
396132
  mask = stream.stream_ops.poll(stream, -1);
395913
396133
  }
@@ -398400,6 +398620,10 @@ ${e}`);
398400
398620
  /** @export */
398401
398621
  invoke_iijiji,
398402
398622
  /** @export */
398623
+ invoke_iijj,
398624
+ /** @export */
398625
+ invoke_ji,
398626
+ /** @export */
398403
398627
  invoke_jii,
398404
398628
  /** @export */
398405
398629
  invoke_jiii,
@@ -398544,6 +398768,10 @@ ${e}`);
398544
398768
  var _ntohs = (a0) => (_ntohs = wasmExports["ntohs"])(a0);
398545
398769
  var _htonl = (a0) => (_htonl = wasmExports["htonl"])(a0);
398546
398770
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
398771
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
398772
+ a0,
398773
+ a1
398774
+ );
398547
398775
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
398548
398776
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
398549
398777
  var _wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = (a0) => (_wasm_set_sapi_name = Module["_wasm_set_sapi_name"] = wasmExports["wasm_set_sapi_name"])(a0);
@@ -398762,19 +398990,10 @@ ${e}`);
398762
398990
  _setThrew(1, 0);
398763
398991
  }
398764
398992
  }
398765
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
398993
+ function invoke_vji(index, a1, a2) {
398766
398994
  var sp = stackSave();
398767
398995
  try {
398768
- return Module["dynCall_iiiiiiii"](
398769
- index,
398770
- a1,
398771
- a2,
398772
- a3,
398773
- a4,
398774
- a5,
398775
- a6,
398776
- a7
398777
- );
398996
+ Module["dynCall_vji"](index, a1, a2);
398778
398997
  } catch (e) {
398779
398998
  stackRestore(sp);
398780
398999
  if (e !== e + 0)
@@ -398782,32 +399001,34 @@ ${e}`);
398782
399001
  _setThrew(1, 0);
398783
399002
  }
398784
399003
  }
398785
- function invoke_iiji(index, a1, a2, a3) {
399004
+ function invoke_jii(index, a1, a2) {
398786
399005
  var sp = stackSave();
398787
399006
  try {
398788
- return Module["dynCall_iiji"](index, a1, a2, a3);
399007
+ return Module["dynCall_jii"](index, a1, a2);
398789
399008
  } catch (e) {
398790
399009
  stackRestore(sp);
398791
399010
  if (e !== e + 0)
398792
399011
  throw e;
398793
399012
  _setThrew(1, 0);
399013
+ return 0n;
398794
399014
  }
398795
399015
  }
398796
- function invoke_iijii(index, a1, a2, a3, a4) {
399016
+ function invoke_ji(index, a1) {
398797
399017
  var sp = stackSave();
398798
399018
  try {
398799
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
399019
+ return Module["dynCall_ji"](index, a1);
398800
399020
  } catch (e) {
398801
399021
  stackRestore(sp);
398802
399022
  if (e !== e + 0)
398803
399023
  throw e;
398804
399024
  _setThrew(1, 0);
399025
+ return 0n;
398805
399026
  }
398806
399027
  }
398807
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
399028
+ function invoke_v(index) {
398808
399029
  var sp = stackSave();
398809
399030
  try {
398810
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
399031
+ Module["dynCall_v"](index);
398811
399032
  } catch (e) {
398812
399033
  stackRestore(sp);
398813
399034
  if (e !== e + 0)
@@ -398815,10 +399036,10 @@ ${e}`);
398815
399036
  _setThrew(1, 0);
398816
399037
  }
398817
399038
  }
398818
- function invoke_v(index) {
399039
+ function invoke_iijj(index, a1, a2, a3) {
398819
399040
  var sp = stackSave();
398820
399041
  try {
398821
- Module["dynCall_v"](index);
399042
+ return Module["dynCall_iijj"](index, a1, a2, a3);
398822
399043
  } catch (e) {
398823
399044
  stackRestore(sp);
398824
399045
  if (e !== e + 0)
@@ -398826,10 +399047,19 @@ ${e}`);
398826
399047
  _setThrew(1, 0);
398827
399048
  }
398828
399049
  }
398829
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
399050
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
398830
399051
  var sp = stackSave();
398831
399052
  try {
398832
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
399053
+ return Module["dynCall_iiiiiiii"](
399054
+ index,
399055
+ a1,
399056
+ a2,
399057
+ a3,
399058
+ a4,
399059
+ a5,
399060
+ a6,
399061
+ a7
399062
+ );
398833
399063
  } catch (e) {
398834
399064
  stackRestore(sp);
398835
399065
  if (e !== e + 0)
@@ -398837,10 +399067,10 @@ ${e}`);
398837
399067
  _setThrew(1, 0);
398838
399068
  }
398839
399069
  }
398840
- function invoke_vji(index, a1, a2) {
399070
+ function invoke_iiji(index, a1, a2, a3) {
398841
399071
  var sp = stackSave();
398842
399072
  try {
398843
- Module["dynCall_vji"](index, a1, a2);
399073
+ return Module["dynCall_iiji"](index, a1, a2, a3);
398844
399074
  } catch (e) {
398845
399075
  stackRestore(sp);
398846
399076
  if (e !== e + 0)
@@ -398848,10 +399078,10 @@ ${e}`);
398848
399078
  _setThrew(1, 0);
398849
399079
  }
398850
399080
  }
398851
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
399081
+ function invoke_iijii(index, a1, a2, a3, a4) {
398852
399082
  var sp = stackSave();
398853
399083
  try {
398854
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
399084
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
398855
399085
  } catch (e) {
398856
399086
  stackRestore(sp);
398857
399087
  if (e !== e + 0)
@@ -398859,10 +399089,10 @@ ${e}`);
398859
399089
  _setThrew(1, 0);
398860
399090
  }
398861
399091
  }
398862
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
399092
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
398863
399093
  var sp = stackSave();
398864
399094
  try {
398865
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
399095
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
398866
399096
  } catch (e) {
398867
399097
  stackRestore(sp);
398868
399098
  if (e !== e + 0)
@@ -398870,10 +399100,10 @@ ${e}`);
398870
399100
  _setThrew(1, 0);
398871
399101
  }
398872
399102
  }
398873
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
399103
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
398874
399104
  var sp = stackSave();
398875
399105
  try {
398876
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
399106
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
398877
399107
  } catch (e) {
398878
399108
  stackRestore(sp);
398879
399109
  if (e !== e + 0)
@@ -398881,22 +399111,43 @@ ${e}`);
398881
399111
  _setThrew(1, 0);
398882
399112
  }
398883
399113
  }
398884
- function invoke_jiii(index, a1, a2, a3) {
399114
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
398885
399115
  var sp = stackSave();
398886
399116
  try {
398887
- return Module["dynCall_jiii"](index, a1, a2, a3);
399117
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
398888
399118
  } catch (e) {
398889
399119
  stackRestore(sp);
398890
399120
  if (e !== e + 0)
398891
399121
  throw e;
398892
399122
  _setThrew(1, 0);
398893
- return 0n;
398894
399123
  }
398895
399124
  }
398896
- function invoke_jii(index, a1, a2) {
399125
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
398897
399126
  var sp = stackSave();
398898
399127
  try {
398899
- return Module["dynCall_jii"](index, a1, a2);
399128
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
399129
+ } catch (e) {
399130
+ stackRestore(sp);
399131
+ if (e !== e + 0)
399132
+ throw e;
399133
+ _setThrew(1, 0);
399134
+ }
399135
+ }
399136
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
399137
+ var sp = stackSave();
399138
+ try {
399139
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
399140
+ } catch (e) {
399141
+ stackRestore(sp);
399142
+ if (e !== e + 0)
399143
+ throw e;
399144
+ _setThrew(1, 0);
399145
+ }
399146
+ }
399147
+ function invoke_jiii(index, a1, a2, a3) {
399148
+ var sp = stackSave();
399149
+ try {
399150
+ return Module["dynCall_jiii"](index, a1, a2, a3);
398900
399151
  } catch (e) {
398901
399152
  stackRestore(sp);
398902
399153
  if (e !== e + 0)
@@ -399017,16 +399268,21 @@ ${e}`);
399017
399268
  return originalHashAddNode.apply(FS, arguments);
399018
399269
  };
399019
399270
  }
399271
+ PHPLoader["phpVersion"] = (() => {
399272
+ const [major, minor, patch] = phpVersionString14.split(".").map(Number);
399273
+ return { major, minor, patch };
399274
+ })();
399020
399275
  return PHPLoader;
399021
399276
  }
399022
- var import_module14, import_path14, dependencyFilename14, dependenciesTotalSize14;
399277
+ var import_module14, import_path14, dependencyFilename14, dependenciesTotalSize14, phpVersionString14;
399023
399278
  var init_php_7_42 = __esm({
399024
399279
  "packages/php-wasm/node/asyncify/php_7_4.js"() {
399025
399280
  "use strict";
399026
399281
  import_module14 = require("module");
399027
399282
  import_path14 = __toESM(require("path"), 1);
399028
399283
  dependencyFilename14 = import_path14.default.join(__dirname + "/asyncify", "7_4_33", "php_7_4.wasm");
399029
- dependenciesTotalSize14 = 29675281;
399284
+ dependenciesTotalSize14 = 30107729;
399285
+ phpVersionString14 = "7.4.33";
399030
399286
  }
399031
399287
  });
399032
399288
 
@@ -399539,7 +399795,7 @@ function init16(RuntimeName, PHPLoader) {
399539
399795
  newDSO("__main__", 0, wasmImports);
399540
399796
  }
399541
399797
  };
399542
- var ___heap_base = 11704e3;
399798
+ var ___heap_base = 12759296;
399543
399799
  var alignMemory = (size, alignment) => {
399544
399800
  return Math.ceil(size / alignment) * alignment;
399545
399801
  };
@@ -399681,7 +399937,7 @@ function init16(RuntimeName, PHPLoader) {
399681
399937
  };
399682
399938
  var wasmTableMirror = [];
399683
399939
  var wasmTable = new WebAssembly.Table({
399684
- initial: 15715,
399940
+ initial: 15819,
399685
399941
  element: "anyfunc"
399686
399942
  });
399687
399943
  var getWasmTableEntry = (funcPtr) => {
@@ -400303,11 +400559,11 @@ function init16(RuntimeName, PHPLoader) {
400303
400559
  { value: "i32", mutable: false },
400304
400560
  1024
400305
400561
  );
400306
- var ___stack_high = 11704e3;
400307
- var ___stack_low = 11638464;
400562
+ var ___stack_high = 12759296;
400563
+ var ___stack_low = 11710720;
400308
400564
  var ___stack_pointer = new WebAssembly.Global(
400309
400565
  { value: "i32", mutable: true },
400310
- 11704e3
400566
+ 12759296
400311
400567
  );
400312
400568
  var PATH = {
400313
400569
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -402203,9 +402459,6 @@ function init16(RuntimeName, PHPLoader) {
402203
402459
  if (FS.isMountpoint(node)) {
402204
402460
  throw new FS.ErrnoError(10);
402205
402461
  }
402206
- if (!FS.isDir(node.mode)) {
402207
- throw new FS.ErrnoError(54);
402208
- }
402209
402462
  }
402210
402463
  var mount = {
402211
402464
  type,
@@ -413607,9 +413860,6 @@ ${e}`);
413607
413860
  const buffer = _malloc(CHUNK_SIZE);
413608
413861
  HEAPU32[iov >> 2] = buffer;
413609
413862
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
413610
- if (typeof js_fd_read === "undefined") {
413611
- globalThis.js_fd_read = __asyncjs__js_fd_read;
413612
- }
413613
413863
  const interval = setInterval(pump2, 20);
413614
413864
  pump2();
413615
413865
  }
@@ -415002,7 +415252,7 @@ ${e}`);
415002
415252
  var addOnPreMain = (cb) => onMains.unshift(cb);
415003
415253
  var onExits = [];
415004
415254
  var addOnExit = (cb) => onExits.unshift(cb);
415005
- var STACK_SIZE = 65536;
415255
+ var STACK_SIZE = 1048576;
415006
415256
  var STACK_ALIGN = 16;
415007
415257
  var ASSERTIONS = 0;
415008
415258
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -424849,13 +425099,13 @@ ${e}`);
424849
425099
  Module["createContext"] = Browser.createContext;
424850
425100
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
424851
425101
  var ASM_CONSTS = {
424852
- 10780086: ($0) => {
425102
+ 10814813: ($0) => {
424853
425103
  if (!$0) {
424854
425104
  AL.alcErr = 40964;
424855
425105
  return 1;
424856
425106
  }
424857
425107
  },
424858
- 10780134: ($0) => {
425108
+ 10814861: ($0) => {
424859
425109
  if (!AL.currentCtx) {
424860
425110
  err("alGetProcAddress() called without a valid context");
424861
425111
  return 1;
@@ -424975,6 +425225,9 @@ ${e}`);
424975
425225
  while (true) {
424976
425226
  var mask = POLLNVAL;
424977
425227
  mask = SYSCALLS.DEFAULT_POLLMASK;
425228
+ if (FS.isClosed(stream)) {
425229
+ return ERRNO_CODES.EBADF;
425230
+ }
424978
425231
  if (stream.stream_ops?.poll) {
424979
425232
  mask = stream.stream_ops.poll(stream, -1);
424980
425233
  }
@@ -427467,6 +427720,8 @@ ${e}`);
427467
427720
  /** @export */
427468
427721
  invoke_iijiji,
427469
427722
  /** @export */
427723
+ invoke_ji,
427724
+ /** @export */
427470
427725
  invoke_jii,
427471
427726
  /** @export */
427472
427727
  invoke_jiii,
@@ -427640,6 +427895,10 @@ ${e}`);
427640
427895
  a0,
427641
427896
  a1
427642
427897
  );
427898
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
427899
+ a0,
427900
+ a1
427901
+ );
427643
427902
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports["memcpy"])(a0, a1, a2);
427644
427903
  var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports["__funcs_on_exit"])();
427645
427904
  var ___dl_seterr = (a0, a1) => (___dl_seterr = wasmExports["__dl_seterr"])(a0, a1);
@@ -427829,19 +428088,10 @@ ${e}`);
427829
428088
  _setThrew(1, 0);
427830
428089
  }
427831
428090
  }
427832
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
428091
+ function invoke_vji(index, a1, a2) {
427833
428092
  var sp = stackSave();
427834
428093
  try {
427835
- return Module["dynCall_iiiiiiii"](
427836
- index,
427837
- a1,
427838
- a2,
427839
- a3,
427840
- a4,
427841
- a5,
427842
- a6,
427843
- a7
427844
- );
428094
+ Module["dynCall_vji"](index, a1, a2);
427845
428095
  } catch (e) {
427846
428096
  stackRestore(sp);
427847
428097
  if (e !== e + 0)
@@ -427849,32 +428099,34 @@ ${e}`);
427849
428099
  _setThrew(1, 0);
427850
428100
  }
427851
428101
  }
427852
- function invoke_iiji(index, a1, a2, a3) {
428102
+ function invoke_jii(index, a1, a2) {
427853
428103
  var sp = stackSave();
427854
428104
  try {
427855
- return Module["dynCall_iiji"](index, a1, a2, a3);
428105
+ return Module["dynCall_jii"](index, a1, a2);
427856
428106
  } catch (e) {
427857
428107
  stackRestore(sp);
427858
428108
  if (e !== e + 0)
427859
428109
  throw e;
427860
428110
  _setThrew(1, 0);
428111
+ return 0n;
427861
428112
  }
427862
428113
  }
427863
- function invoke_iijii(index, a1, a2, a3, a4) {
428114
+ function invoke_ji(index, a1) {
427864
428115
  var sp = stackSave();
427865
428116
  try {
427866
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
428117
+ return Module["dynCall_ji"](index, a1);
427867
428118
  } catch (e) {
427868
428119
  stackRestore(sp);
427869
428120
  if (e !== e + 0)
427870
428121
  throw e;
427871
428122
  _setThrew(1, 0);
428123
+ return 0n;
427872
428124
  }
427873
428125
  }
427874
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
428126
+ function invoke_v(index) {
427875
428127
  var sp = stackSave();
427876
428128
  try {
427877
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
428129
+ Module["dynCall_v"](index);
427878
428130
  } catch (e) {
427879
428131
  stackRestore(sp);
427880
428132
  if (e !== e + 0)
@@ -427882,10 +428134,19 @@ ${e}`);
427882
428134
  _setThrew(1, 0);
427883
428135
  }
427884
428136
  }
427885
- function invoke_v(index) {
428137
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
427886
428138
  var sp = stackSave();
427887
428139
  try {
427888
- Module["dynCall_v"](index);
428140
+ return Module["dynCall_iiiiiiii"](
428141
+ index,
428142
+ a1,
428143
+ a2,
428144
+ a3,
428145
+ a4,
428146
+ a5,
428147
+ a6,
428148
+ a7
428149
+ );
427889
428150
  } catch (e) {
427890
428151
  stackRestore(sp);
427891
428152
  if (e !== e + 0)
@@ -427893,10 +428154,10 @@ ${e}`);
427893
428154
  _setThrew(1, 0);
427894
428155
  }
427895
428156
  }
427896
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
428157
+ function invoke_iiji(index, a1, a2, a3) {
427897
428158
  var sp = stackSave();
427898
428159
  try {
427899
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
428160
+ return Module["dynCall_iiji"](index, a1, a2, a3);
427900
428161
  } catch (e) {
427901
428162
  stackRestore(sp);
427902
428163
  if (e !== e + 0)
@@ -427904,10 +428165,10 @@ ${e}`);
427904
428165
  _setThrew(1, 0);
427905
428166
  }
427906
428167
  }
427907
- function invoke_vji(index, a1, a2) {
428168
+ function invoke_iijii(index, a1, a2, a3, a4) {
427908
428169
  var sp = stackSave();
427909
428170
  try {
427910
- Module["dynCall_vji"](index, a1, a2);
428171
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
427911
428172
  } catch (e) {
427912
428173
  stackRestore(sp);
427913
428174
  if (e !== e + 0)
@@ -427915,10 +428176,10 @@ ${e}`);
427915
428176
  _setThrew(1, 0);
427916
428177
  }
427917
428178
  }
427918
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
428179
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
427919
428180
  var sp = stackSave();
427920
428181
  try {
427921
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
428182
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
427922
428183
  } catch (e) {
427923
428184
  stackRestore(sp);
427924
428185
  if (e !== e + 0)
@@ -427926,10 +428187,10 @@ ${e}`);
427926
428187
  _setThrew(1, 0);
427927
428188
  }
427928
428189
  }
427929
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
428190
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
427930
428191
  var sp = stackSave();
427931
428192
  try {
427932
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
428193
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
427933
428194
  } catch (e) {
427934
428195
  stackRestore(sp);
427935
428196
  if (e !== e + 0)
@@ -427937,10 +428198,10 @@ ${e}`);
427937
428198
  _setThrew(1, 0);
427938
428199
  }
427939
428200
  }
427940
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
428201
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
427941
428202
  var sp = stackSave();
427942
428203
  try {
427943
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
428204
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
427944
428205
  } catch (e) {
427945
428206
  stackRestore(sp);
427946
428207
  if (e !== e + 0)
@@ -427948,22 +428209,32 @@ ${e}`);
427948
428209
  _setThrew(1, 0);
427949
428210
  }
427950
428211
  }
427951
- function invoke_jiii(index, a1, a2, a3) {
428212
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
427952
428213
  var sp = stackSave();
427953
428214
  try {
427954
- return Module["dynCall_jiii"](index, a1, a2, a3);
428215
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
427955
428216
  } catch (e) {
427956
428217
  stackRestore(sp);
427957
428218
  if (e !== e + 0)
427958
428219
  throw e;
427959
428220
  _setThrew(1, 0);
427960
- return 0n;
427961
428221
  }
427962
428222
  }
427963
- function invoke_jii(index, a1, a2) {
428223
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
427964
428224
  var sp = stackSave();
427965
428225
  try {
427966
- return Module["dynCall_jii"](index, a1, a2);
428226
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
428227
+ } catch (e) {
428228
+ stackRestore(sp);
428229
+ if (e !== e + 0)
428230
+ throw e;
428231
+ _setThrew(1, 0);
428232
+ }
428233
+ }
428234
+ function invoke_jiii(index, a1, a2, a3) {
428235
+ var sp = stackSave();
428236
+ try {
428237
+ return Module["dynCall_jiii"](index, a1, a2, a3);
427967
428238
  } catch (e) {
427968
428239
  stackRestore(sp);
427969
428240
  if (e !== e + 0)
@@ -428084,16 +428355,21 @@ ${e}`);
428084
428355
  return originalHashAddNode.apply(FS, arguments);
428085
428356
  };
428086
428357
  }
428358
+ PHPLoader["phpVersion"] = (() => {
428359
+ const [major, minor, patch] = phpVersionString15.split(".").map(Number);
428360
+ return { major, minor, patch };
428361
+ })();
428087
428362
  return PHPLoader;
428088
428363
  }
428089
- var import_module15, import_path15, dependencyFilename15, dependenciesTotalSize15;
428364
+ var import_module15, import_path15, dependencyFilename15, dependenciesTotalSize15, phpVersionString15;
428090
428365
  var init_php_7_32 = __esm({
428091
428366
  "packages/php-wasm/node/asyncify/php_7_3.js"() {
428092
428367
  "use strict";
428093
428368
  import_module15 = require("module");
428094
428369
  import_path15 = __toESM(require("path"), 1);
428095
428370
  dependencyFilename15 = import_path15.default.join(__dirname + "/asyncify", "7_3_33", "php_7_3.wasm");
428096
- dependenciesTotalSize15 = 29282202;
428371
+ dependenciesTotalSize15 = 29695998;
428372
+ phpVersionString15 = "7.3.33";
428097
428373
  }
428098
428374
  });
428099
428375
 
@@ -428606,7 +428882,7 @@ function init17(RuntimeName, PHPLoader) {
428606
428882
  newDSO("__main__", 0, wasmImports);
428607
428883
  }
428608
428884
  };
428609
- var ___heap_base = 11378752;
428885
+ var ___heap_base = 12423744;
428610
428886
  var alignMemory = (size, alignment) => {
428611
428887
  return Math.ceil(size / alignment) * alignment;
428612
428888
  };
@@ -428748,7 +429024,7 @@ function init17(RuntimeName, PHPLoader) {
428748
429024
  };
428749
429025
  var wasmTableMirror = [];
428750
429026
  var wasmTable = new WebAssembly.Table({
428751
- initial: 15750,
429027
+ initial: 15851,
428752
429028
  element: "anyfunc"
428753
429029
  });
428754
429030
  var getWasmTableEntry = (funcPtr) => {
@@ -429370,11 +429646,11 @@ function init17(RuntimeName, PHPLoader) {
429370
429646
  { value: "i32", mutable: false },
429371
429647
  1024
429372
429648
  );
429373
- var ___stack_high = 11378752;
429374
- var ___stack_low = 11313216;
429649
+ var ___stack_high = 12423744;
429650
+ var ___stack_low = 11375168;
429375
429651
  var ___stack_pointer = new WebAssembly.Global(
429376
429652
  { value: "i32", mutable: true },
429377
- 11378752
429653
+ 12423744
429378
429654
  );
429379
429655
  var PATH = {
429380
429656
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -431270,9 +431546,6 @@ function init17(RuntimeName, PHPLoader) {
431270
431546
  if (FS.isMountpoint(node)) {
431271
431547
  throw new FS.ErrnoError(10);
431272
431548
  }
431273
- if (!FS.isDir(node.mode)) {
431274
- throw new FS.ErrnoError(54);
431275
- }
431276
431549
  }
431277
431550
  var mount = {
431278
431551
  type,
@@ -442674,9 +442947,6 @@ ${e}`);
442674
442947
  const buffer = _malloc(CHUNK_SIZE);
442675
442948
  HEAPU32[iov >> 2] = buffer;
442676
442949
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
442677
- if (typeof js_fd_read === "undefined") {
442678
- globalThis.js_fd_read = __asyncjs__js_fd_read;
442679
- }
442680
442950
  const interval = setInterval(pump2, 20);
442681
442951
  pump2();
442682
442952
  }
@@ -444069,7 +444339,7 @@ ${e}`);
444069
444339
  var addOnPreMain = (cb) => onMains.unshift(cb);
444070
444340
  var onExits = [];
444071
444341
  var addOnExit = (cb) => onExits.unshift(cb);
444072
- var STACK_SIZE = 65536;
444342
+ var STACK_SIZE = 1048576;
444073
444343
  var STACK_ALIGN = 16;
444074
444344
  var ASSERTIONS = 0;
444075
444345
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -453916,13 +454186,13 @@ ${e}`);
453916
454186
  Module["createContext"] = Browser.createContext;
453917
454187
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
453918
454188
  var ASM_CONSTS = {
453919
- 10384966: ($0) => {
454189
+ 10409421: ($0) => {
453920
454190
  if (!$0) {
453921
454191
  AL.alcErr = 40964;
453922
454192
  return 1;
453923
454193
  }
453924
454194
  },
453925
- 10385014: ($0) => {
454195
+ 10409469: ($0) => {
453926
454196
  if (!AL.currentCtx) {
453927
454197
  err("alGetProcAddress() called without a valid context");
453928
454198
  return 1;
@@ -454042,6 +454312,9 @@ ${e}`);
454042
454312
  while (true) {
454043
454313
  var mask = POLLNVAL;
454044
454314
  mask = SYSCALLS.DEFAULT_POLLMASK;
454315
+ if (FS.isClosed(stream)) {
454316
+ return ERRNO_CODES.EBADF;
454317
+ }
454045
454318
  if (stream.stream_ops?.poll) {
454046
454319
  mask = stream.stream_ops.poll(stream, -1);
454047
454320
  }
@@ -456707,6 +456980,10 @@ ${e}`);
456707
456980
  a0,
456708
456981
  a1
456709
456982
  );
456983
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
456984
+ a0,
456985
+ a1
456986
+ );
456710
456987
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports["memcpy"])(a0, a1, a2);
456711
456988
  var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports["__funcs_on_exit"])();
456712
456989
  var ___dl_seterr = (a0, a1) => (___dl_seterr = wasmExports["__dl_seterr"])(a0, a1);
@@ -456896,19 +457173,10 @@ ${e}`);
456896
457173
  _setThrew(1, 0);
456897
457174
  }
456898
457175
  }
456899
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
457176
+ function invoke_vji(index, a1, a2) {
456900
457177
  var sp = stackSave();
456901
457178
  try {
456902
- return Module["dynCall_iiiiiiii"](
456903
- index,
456904
- a1,
456905
- a2,
456906
- a3,
456907
- a4,
456908
- a5,
456909
- a6,
456910
- a7
456911
- );
457179
+ Module["dynCall_vji"](index, a1, a2);
456912
457180
  } catch (e) {
456913
457181
  stackRestore(sp);
456914
457182
  if (e !== e + 0)
@@ -456916,21 +457184,22 @@ ${e}`);
456916
457184
  _setThrew(1, 0);
456917
457185
  }
456918
457186
  }
456919
- function invoke_iiji(index, a1, a2, a3) {
457187
+ function invoke_jii(index, a1, a2) {
456920
457188
  var sp = stackSave();
456921
457189
  try {
456922
- return Module["dynCall_iiji"](index, a1, a2, a3);
457190
+ return Module["dynCall_jii"](index, a1, a2);
456923
457191
  } catch (e) {
456924
457192
  stackRestore(sp);
456925
457193
  if (e !== e + 0)
456926
457194
  throw e;
456927
457195
  _setThrew(1, 0);
457196
+ return 0n;
456928
457197
  }
456929
457198
  }
456930
- function invoke_iijii(index, a1, a2, a3, a4) {
457199
+ function invoke_v(index) {
456931
457200
  var sp = stackSave();
456932
457201
  try {
456933
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
457202
+ Module["dynCall_v"](index);
456934
457203
  } catch (e) {
456935
457204
  stackRestore(sp);
456936
457205
  if (e !== e + 0)
@@ -456938,10 +457207,19 @@ ${e}`);
456938
457207
  _setThrew(1, 0);
456939
457208
  }
456940
457209
  }
456941
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
457210
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
456942
457211
  var sp = stackSave();
456943
457212
  try {
456944
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
457213
+ return Module["dynCall_iiiiiiii"](
457214
+ index,
457215
+ a1,
457216
+ a2,
457217
+ a3,
457218
+ a4,
457219
+ a5,
457220
+ a6,
457221
+ a7
457222
+ );
456945
457223
  } catch (e) {
456946
457224
  stackRestore(sp);
456947
457225
  if (e !== e + 0)
@@ -456949,10 +457227,10 @@ ${e}`);
456949
457227
  _setThrew(1, 0);
456950
457228
  }
456951
457229
  }
456952
- function invoke_v(index) {
457230
+ function invoke_iiji(index, a1, a2, a3) {
456953
457231
  var sp = stackSave();
456954
457232
  try {
456955
- Module["dynCall_v"](index);
457233
+ return Module["dynCall_iiji"](index, a1, a2, a3);
456956
457234
  } catch (e) {
456957
457235
  stackRestore(sp);
456958
457236
  if (e !== e + 0)
@@ -456960,10 +457238,10 @@ ${e}`);
456960
457238
  _setThrew(1, 0);
456961
457239
  }
456962
457240
  }
456963
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
457241
+ function invoke_iijii(index, a1, a2, a3, a4) {
456964
457242
  var sp = stackSave();
456965
457243
  try {
456966
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
457244
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
456967
457245
  } catch (e) {
456968
457246
  stackRestore(sp);
456969
457247
  if (e !== e + 0)
@@ -456971,10 +457249,10 @@ ${e}`);
456971
457249
  _setThrew(1, 0);
456972
457250
  }
456973
457251
  }
456974
- function invoke_vji(index, a1, a2) {
457252
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
456975
457253
  var sp = stackSave();
456976
457254
  try {
456977
- Module["dynCall_vji"](index, a1, a2);
457255
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
456978
457256
  } catch (e) {
456979
457257
  stackRestore(sp);
456980
457258
  if (e !== e + 0)
@@ -456982,10 +457260,10 @@ ${e}`);
456982
457260
  _setThrew(1, 0);
456983
457261
  }
456984
457262
  }
456985
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
457263
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
456986
457264
  var sp = stackSave();
456987
457265
  try {
456988
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
457266
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
456989
457267
  } catch (e) {
456990
457268
  stackRestore(sp);
456991
457269
  if (e !== e + 0)
@@ -456993,10 +457271,10 @@ ${e}`);
456993
457271
  _setThrew(1, 0);
456994
457272
  }
456995
457273
  }
456996
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
457274
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
456997
457275
  var sp = stackSave();
456998
457276
  try {
456999
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
457277
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
457000
457278
  } catch (e) {
457001
457279
  stackRestore(sp);
457002
457280
  if (e !== e + 0)
@@ -457004,10 +457282,10 @@ ${e}`);
457004
457282
  _setThrew(1, 0);
457005
457283
  }
457006
457284
  }
457007
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
457285
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
457008
457286
  var sp = stackSave();
457009
457287
  try {
457010
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
457288
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
457011
457289
  } catch (e) {
457012
457290
  stackRestore(sp);
457013
457291
  if (e !== e + 0)
@@ -457015,22 +457293,21 @@ ${e}`);
457015
457293
  _setThrew(1, 0);
457016
457294
  }
457017
457295
  }
457018
- function invoke_jiii(index, a1, a2, a3) {
457296
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
457019
457297
  var sp = stackSave();
457020
457298
  try {
457021
- return Module["dynCall_jiii"](index, a1, a2, a3);
457299
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
457022
457300
  } catch (e) {
457023
457301
  stackRestore(sp);
457024
457302
  if (e !== e + 0)
457025
457303
  throw e;
457026
457304
  _setThrew(1, 0);
457027
- return 0n;
457028
457305
  }
457029
457306
  }
457030
- function invoke_jii(index, a1, a2) {
457307
+ function invoke_jiii(index, a1, a2, a3) {
457031
457308
  var sp = stackSave();
457032
457309
  try {
457033
- return Module["dynCall_jii"](index, a1, a2);
457310
+ return Module["dynCall_jiii"](index, a1, a2, a3);
457034
457311
  } catch (e) {
457035
457312
  stackRestore(sp);
457036
457313
  if (e !== e + 0)
@@ -457151,16 +457428,21 @@ ${e}`);
457151
457428
  return originalHashAddNode.apply(FS, arguments);
457152
457429
  };
457153
457430
  }
457431
+ PHPLoader["phpVersion"] = (() => {
457432
+ const [major, minor, patch] = phpVersionString16.split(".").map(Number);
457433
+ return { major, minor, patch };
457434
+ })();
457154
457435
  return PHPLoader;
457155
457436
  }
457156
- var import_module16, import_path16, dependencyFilename16, dependenciesTotalSize16;
457437
+ var import_module16, import_path16, dependencyFilename16, dependenciesTotalSize16, phpVersionString16;
457157
457438
  var init_php_7_22 = __esm({
457158
457439
  "packages/php-wasm/node/asyncify/php_7_2.js"() {
457159
457440
  "use strict";
457160
457441
  import_module16 = require("module");
457161
457442
  import_path16 = __toESM(require("path"), 1);
457162
457443
  dependencyFilename16 = import_path16.default.join(__dirname + "/asyncify", "7_2_34", "php_7_2.wasm");
457163
- dependenciesTotalSize16 = 29015588;
457444
+ dependenciesTotalSize16 = 29379158;
457445
+ phpVersionString16 = "7.2.34";
457164
457446
  }
457165
457447
  });
457166
457448
 
@@ -457454,9 +457736,9 @@ async function getPHPLoaderModule(version = import_universal.LatestSupportedPHPV
457454
457736
 
457455
457737
  // packages/php-wasm/node/src/lib/networking/outbound-ws-to-tcp-proxy.ts
457456
457738
  var dns = __toESM(require("dns"), 1);
457457
- var util = __toESM(require("node:util"), 1);
457458
- var net2 = __toESM(require("net"), 1);
457459
457739
  var http = __toESM(require("http"), 1);
457740
+ var net2 = __toESM(require("net"), 1);
457741
+ var util = __toESM(require("node:util"), 1);
457460
457742
  var import_ws = require("ws");
457461
457743
 
457462
457744
  // packages/php-wasm/node/src/lib/networking/utils.ts
@@ -457569,6 +457851,12 @@ async function onWsConnect(client, request) {
457569
457851
  client.close(3e3);
457570
457852
  return;
457571
457853
  }
457854
+ if (reqTargetPort < 0 || reqTargetPort > 65535) {
457855
+ clientLog("Invalid port number: " + reqTargetPort);
457856
+ client.send([]);
457857
+ client.close(3e3);
457858
+ return;
457859
+ }
457572
457860
  let target;
457573
457861
  const recvQueue = [];
457574
457862
  function flushMessagesQueue() {
@@ -457622,7 +457910,9 @@ async function onWsConnect(client, request) {
457622
457910
  } catch (e) {
457623
457911
  clientLog("can't resolve " + reqTargetHost + " due to:", e);
457624
457912
  client.send([]);
457625
- client.close(3e3);
457913
+ setTimeout(() => {
457914
+ client.close(3e3);
457915
+ });
457626
457916
  return;
457627
457917
  }
457628
457918
  } else {
@@ -457649,8 +457939,14 @@ async function onWsConnect(client, request) {
457649
457939
  });
457650
457940
  target.on("error", function(e) {
457651
457941
  clientLog("target connection error", e);
457652
- target.end();
457653
- client.close(3e3);
457942
+ client.send([]);
457943
+ setTimeout(() => {
457944
+ client.close(3e3);
457945
+ try {
457946
+ target.end();
457947
+ } catch {
457948
+ }
457949
+ });
457654
457950
  });
457655
457951
  }
457656
457952
 
@@ -457899,6 +458195,7 @@ async function withXdebug(version = import_universal4.LatestSupportedPHPVersion,
457899
458195
 
457900
458196
  // packages/php-wasm/node/src/lib/load-runtime.ts
457901
458197
  var import_util = require("@php-wasm/util");
458198
+ var import_path33 = require("path");
457902
458199
  async function loadNodeRuntime(phpVersion, options = {}) {
457903
458200
  let emscriptenOptions = {
457904
458201
  /**
@@ -457923,7 +458220,17 @@ async function loadNodeRuntime(phpVersion, options = {}) {
457923
458220
  absoluteSourcePath
457924
458221
  );
457925
458222
  if (!import_universal5.FSHelpers.fileExists(phpRuntime.FS, symlinkPath) && import_fs3.default.existsSync(absoluteSourcePath)) {
457926
- phpRuntime.FS.mkdirTree(symlinkPath);
458223
+ const sourceStat = import_fs3.default.statSync(absoluteSourcePath);
458224
+ if (sourceStat.isDirectory()) {
458225
+ phpRuntime.FS.mkdirTree(symlinkPath);
458226
+ } else if (sourceStat.isFile()) {
458227
+ phpRuntime.FS.mkdirTree((0, import_path33.dirname)(symlinkPath));
458228
+ phpRuntime.FS.writeFile(symlinkPath, "");
458229
+ } else {
458230
+ throw new Error(
458231
+ "Unsupported file type. PHP-wasm supports only symlinks that link to files, directories, or symlinks."
458232
+ );
458233
+ }
457927
458234
  phpRuntime.FS.mount(
457928
458235
  phpRuntime.FS.filesystems.NODEFS,
457929
458236
  { root: absoluteSourcePath },
@@ -457955,11 +458262,48 @@ async function loadNodeRuntime(phpVersion, options = {}) {
457955
458262
  var import_node_fs = require("node:fs");
457956
458263
 
457957
458264
  // packages/php-wasm/node/src/lib/node-fs-mount.ts
458265
+ var import_universal6 = require("@php-wasm/universal");
458266
+ var import_fs4 = require("fs");
458267
+ var import_path34 = require("path");
457958
458268
  function createNodeFsMountHandler(localPath) {
457959
- return async function(php, FS2, vfsMountPoint) {
458269
+ return function(php, FS2, vfsMountPoint) {
458270
+ let removeVfsNode = false;
458271
+ if (!import_universal6.FSHelpers.fileExists(FS2, vfsMountPoint)) {
458272
+ const lstat = (0, import_fs4.lstatSync)(localPath);
458273
+ if (lstat.isFile() || lstat.isSymbolicLink()) {
458274
+ FS2.mkdirTree((0, import_path34.dirname)(vfsMountPoint));
458275
+ FS2.writeFile(vfsMountPoint, "");
458276
+ } else if (lstat.isDirectory()) {
458277
+ FS2.mkdirTree(vfsMountPoint);
458278
+ } else {
458279
+ throw new Error(
458280
+ "Unsupported file type. PHP-wasm supports only symlinks that link to files, directories, or symlinks."
458281
+ );
458282
+ }
458283
+ removeVfsNode = true;
458284
+ }
458285
+ let lookup3;
458286
+ try {
458287
+ lookup3 = FS2.lookupPath(vfsMountPoint);
458288
+ } catch (e) {
458289
+ const error = e;
458290
+ if (error.errno === 44) {
458291
+ throw new Error(
458292
+ `Unable to access the mount point ${vfsMountPoint} in VFS after attempting to create it.`
458293
+ );
458294
+ }
458295
+ throw e;
458296
+ }
457960
458297
  FS2.mount(FS2.filesystems["NODEFS"], { root: localPath }, vfsMountPoint);
457961
458298
  return () => {
457962
458299
  FS2.unmount(vfsMountPoint);
458300
+ if (removeVfsNode) {
458301
+ if (FS2.isDir(lookup3.node.mode)) {
458302
+ FS2.rmdir(vfsMountPoint);
458303
+ } else {
458304
+ FS2.unlink(vfsMountPoint);
458305
+ }
458306
+ }
457963
458307
  };
457964
458308
  };
457965
458309
  }
@@ -458006,7 +458350,7 @@ function statPathFollowSymlinks(path33) {
458006
458350
 
458007
458351
  // packages/php-wasm/node/src/lib/file-lock-manager-for-node.ts
458008
458352
  var import_logger2 = require("@php-wasm/logger");
458009
- var import_fs4 = require("fs");
458353
+ var import_fs5 = require("fs");
458010
458354
  var MAX_64BIT_OFFSET = BigInt(2n ** 64n - 1n);
458011
458355
  var FileLockManagerForNode = class {
458012
458356
  /**
@@ -458141,7 +458485,7 @@ var FileLock = class _FileLock {
458141
458485
  static maybeCreate(path33, mode, nativeFlockSync) {
458142
458486
  let fd;
458143
458487
  try {
458144
- fd = (0, import_fs4.openSync)(path33, "a+");
458488
+ fd = (0, import_fs5.openSync)(path33, "a+");
458145
458489
  const flockFlags = mode === "exclusive" ? "exnb" : "shnb";
458146
458490
  nativeFlockSync(fd, flockFlags);
458147
458491
  const nativeLock = { fd, mode, nativeFlockSync };
@@ -458149,7 +458493,7 @@ var FileLock = class _FileLock {
458149
458493
  } catch {
458150
458494
  if (fd !== void 0) {
458151
458495
  try {
458152
- (0, import_fs4.closeSync)(fd);
458496
+ (0, import_fs5.closeSync)(fd);
458153
458497
  } catch (error) {
458154
458498
  import_logger2.logger.error(
458155
458499
  "Error closing locking file descriptor",
@@ -458172,7 +458516,7 @@ var FileLock = class _FileLock {
458172
458516
  */
458173
458517
  dispose() {
458174
458518
  try {
458175
- (0, import_fs4.closeSync)(this.nativeLock.fd);
458519
+ (0, import_fs5.closeSync)(this.nativeLock.fd);
458176
458520
  } catch (error) {
458177
458521
  import_logger2.logger.error("Error closing locking file descriptor", error);
458178
458522
  }