@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.js CHANGED
@@ -535,7 +535,7 @@ function init2(RuntimeName, PHPLoader) {
535
535
  newDSO("__main__", 0, wasmImports);
536
536
  }
537
537
  };
538
- var ___heap_base = 17317728;
538
+ var ___heap_base = 18314400;
539
539
  var alignMemory = (size, alignment) => {
540
540
  return Math.ceil(size / alignment) * alignment;
541
541
  };
@@ -677,7 +677,7 @@ function init2(RuntimeName, PHPLoader) {
677
677
  };
678
678
  var wasmTableMirror = [];
679
679
  var wasmTable = new WebAssembly.Table({
680
- initial: 16487,
680
+ initial: 16555,
681
681
  element: "anyfunc"
682
682
  });
683
683
  var getWasmTableEntry = (funcPtr) => {
@@ -1199,11 +1199,11 @@ function init2(RuntimeName, PHPLoader) {
1199
1199
  { value: "i32", mutable: false },
1200
1200
  1024
1201
1201
  );
1202
- var ___stack_high = 17317728;
1203
- var ___stack_low = 17252192;
1202
+ var ___stack_high = 18314400;
1203
+ var ___stack_low = 17265824;
1204
1204
  var ___stack_pointer = new WebAssembly.Global(
1205
1205
  { value: "i32", mutable: true },
1206
- 17317728
1206
+ 18314400
1207
1207
  );
1208
1208
  var PATH = {
1209
1209
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -3099,9 +3099,6 @@ function init2(RuntimeName, PHPLoader) {
3099
3099
  if (FS.isMountpoint(node)) {
3100
3100
  throw new FS.ErrnoError(10);
3101
3101
  }
3102
- if (!FS.isDir(node.mode)) {
3103
- throw new FS.ErrnoError(54);
3104
- }
3105
3102
  }
3106
3103
  var mount = {
3107
3104
  type,
@@ -5652,7 +5649,7 @@ function init2(RuntimeName, PHPLoader) {
5652
5649
  PHPLoader.trace(_js_getpid(), format, ...args2);
5653
5650
  }
5654
5651
  }
5655
- function _fd_close(fd) {
5652
+ var _fd_close = function fd_close(fd) {
5656
5653
  return Asyncify.handleAsync(async () => {
5657
5654
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
5658
5655
  if (pathResolutionErrno !== 0) {
@@ -5683,7 +5680,7 @@ function init2(RuntimeName, PHPLoader) {
5683
5680
  }
5684
5681
  return result;
5685
5682
  });
5686
- }
5683
+ };
5687
5684
  _fd_close.sig = "ii";
5688
5685
  function _builtin_fd_close(fd) {
5689
5686
  try {
@@ -15776,7 +15773,7 @@ ${e}`);
15776
15773
  var addOnPreMain = (cb) => onMains.unshift(cb);
15777
15774
  var onExits = [];
15778
15775
  var addOnExit = (cb) => onExits.unshift(cb);
15779
- var STACK_SIZE = 65536;
15776
+ var STACK_SIZE = 1048576;
15780
15777
  var STACK_ALIGN = 16;
15781
15778
  var ASSERTIONS = 0;
15782
15779
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -25211,13 +25208,13 @@ ${e}`);
25211
25208
  Module["createContext"] = Browser.createContext;
25212
25209
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
25213
25210
  var ASM_CONSTS = {
25214
- 16319223: ($0) => {
25211
+ 16328094: ($0) => {
25215
25212
  if (!$0) {
25216
25213
  AL.alcErr = 40964;
25217
25214
  return 1;
25218
25215
  }
25219
25216
  },
25220
- 16319271: ($0) => {
25217
+ 16328142: ($0) => {
25221
25218
  if (!AL.currentCtx) {
25222
25219
  err("alGetProcAddress() called without a valid context");
25223
25220
  return 1;
@@ -25343,6 +25340,9 @@ ${e}`);
25343
25340
  while (true) {
25344
25341
  var mask = POLLNVAL;
25345
25342
  mask = SYSCALLS.DEFAULT_POLLMASK;
25343
+ if (FS.isClosed(stream)) {
25344
+ return ERRNO_CODES.EBADF;
25345
+ }
25346
25346
  if (stream.stream_ops?.poll) {
25347
25347
  mask = stream.stream_ops.poll(stream, -1);
25348
25348
  }
@@ -27898,6 +27898,10 @@ ${e}`);
27898
27898
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
27899
27899
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
27900
27900
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
27901
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
27902
+ a0,
27903
+ a1
27904
+ );
27901
27905
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
27902
27906
  a0,
27903
27907
  a1,
@@ -28069,14 +28073,19 @@ ${e}`);
28069
28073
  return originalHashAddNode.apply(FS, arguments);
28070
28074
  };
28071
28075
  }
28076
+ PHPLoader["phpVersion"] = (() => {
28077
+ const [major, minor, patch] = phpVersionString.split(".").map(Number);
28078
+ return { major, minor, patch };
28079
+ })();
28072
28080
  return PHPLoader;
28073
28081
  }
28074
- var dependencyFilename, dependenciesTotalSize;
28082
+ var dependencyFilename, dependenciesTotalSize, phpVersionString;
28075
28083
  var init_php_8_4 = __esm({
28076
28084
  "packages/php-wasm/node/jspi/php_8_4.js"() {
28077
28085
  "use strict";
28078
- dependencyFilename = path.join(__dirname + "/jspi", "8_4_0", "php_8_4.wasm");
28079
- dependenciesTotalSize = 36202422;
28086
+ dependencyFilename = path.join(__dirname + "/jspi", "8_4_10", "php_8_4.wasm");
28087
+ dependenciesTotalSize = 36372438;
28088
+ phpVersionString = "8.4.10";
28080
28089
  }
28081
28090
  });
28082
28091
 
@@ -28595,7 +28604,7 @@ function init3(RuntimeName, PHPLoader) {
28595
28604
  newDSO("__main__", 0, wasmImports);
28596
28605
  }
28597
28606
  };
28598
- var ___heap_base = 14208864;
28607
+ var ___heap_base = 15214368;
28599
28608
  var alignMemory = (size, alignment) => {
28600
28609
  return Math.ceil(size / alignment) * alignment;
28601
28610
  };
@@ -28737,7 +28746,7 @@ function init3(RuntimeName, PHPLoader) {
28737
28746
  };
28738
28747
  var wasmTableMirror = [];
28739
28748
  var wasmTable = new WebAssembly.Table({
28740
- initial: 15668,
28749
+ initial: 15738,
28741
28750
  element: "anyfunc"
28742
28751
  });
28743
28752
  var getWasmTableEntry = (funcPtr) => {
@@ -29259,11 +29268,11 @@ function init3(RuntimeName, PHPLoader) {
29259
29268
  { value: "i32", mutable: false },
29260
29269
  1024
29261
29270
  );
29262
- var ___stack_high = 14208864;
29263
- var ___stack_low = 14143328;
29271
+ var ___stack_high = 15214368;
29272
+ var ___stack_low = 14165792;
29264
29273
  var ___stack_pointer = new WebAssembly.Global(
29265
29274
  { value: "i32", mutable: true },
29266
- 14208864
29275
+ 15214368
29267
29276
  );
29268
29277
  var PATH = {
29269
29278
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -31159,9 +31168,6 @@ function init3(RuntimeName, PHPLoader) {
31159
31168
  if (FS.isMountpoint(node)) {
31160
31169
  throw new FS.ErrnoError(10);
31161
31170
  }
31162
- if (!FS.isDir(node.mode)) {
31163
- throw new FS.ErrnoError(54);
31164
- }
31165
31171
  }
31166
31172
  var mount = {
31167
31173
  type,
@@ -33712,7 +33718,7 @@ function init3(RuntimeName, PHPLoader) {
33712
33718
  PHPLoader.trace(_js_getpid(), format, ...args2);
33713
33719
  }
33714
33720
  }
33715
- function _fd_close(fd) {
33721
+ var _fd_close = function fd_close(fd) {
33716
33722
  return Asyncify.handleAsync(async () => {
33717
33723
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
33718
33724
  if (pathResolutionErrno !== 0) {
@@ -33743,7 +33749,7 @@ function init3(RuntimeName, PHPLoader) {
33743
33749
  }
33744
33750
  return result;
33745
33751
  });
33746
- }
33752
+ };
33747
33753
  _fd_close.sig = "ii";
33748
33754
  function _builtin_fd_close(fd) {
33749
33755
  try {
@@ -43836,7 +43842,7 @@ ${e}`);
43836
43842
  var addOnPreMain = (cb) => onMains.unshift(cb);
43837
43843
  var onExits = [];
43838
43844
  var addOnExit = (cb) => onExits.unshift(cb);
43839
- var STACK_SIZE = 65536;
43845
+ var STACK_SIZE = 1048576;
43840
43846
  var STACK_ALIGN = 16;
43841
43847
  var ASSERTIONS = 0;
43842
43848
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -53271,13 +53277,13 @@ ${e}`);
53271
53277
  Module["createContext"] = Browser.createContext;
53272
53278
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
53273
53279
  var ASM_CONSTS = {
53274
- 13214775: ($0) => {
53280
+ 13232622: ($0) => {
53275
53281
  if (!$0) {
53276
53282
  AL.alcErr = 40964;
53277
53283
  return 1;
53278
53284
  }
53279
53285
  },
53280
- 13214823: ($0) => {
53286
+ 13232670: ($0) => {
53281
53287
  if (!AL.currentCtx) {
53282
53288
  err("alGetProcAddress() called without a valid context");
53283
53289
  return 1;
@@ -53403,6 +53409,9 @@ ${e}`);
53403
53409
  while (true) {
53404
53410
  var mask = POLLNVAL;
53405
53411
  mask = SYSCALLS.DEFAULT_POLLMASK;
53412
+ if (FS.isClosed(stream)) {
53413
+ return ERRNO_CODES.EBADF;
53414
+ }
53406
53415
  if (stream.stream_ops?.poll) {
53407
53416
  mask = stream.stream_ops.poll(stream, -1);
53408
53417
  }
@@ -55958,6 +55967,10 @@ ${e}`);
55958
55967
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
55959
55968
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
55960
55969
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
55970
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
55971
+ a0,
55972
+ a1
55973
+ );
55961
55974
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
55962
55975
  a0,
55963
55976
  a1,
@@ -56129,14 +56142,19 @@ ${e}`);
56129
56142
  return originalHashAddNode.apply(FS, arguments);
56130
56143
  };
56131
56144
  }
56145
+ PHPLoader["phpVersion"] = (() => {
56146
+ const [major, minor, patch] = phpVersionString2.split(".").map(Number);
56147
+ return { major, minor, patch };
56148
+ })();
56132
56149
  return PHPLoader;
56133
56150
  }
56134
- var dependencyFilename2, dependenciesTotalSize2;
56151
+ var dependencyFilename2, dependenciesTotalSize2, phpVersionString2;
56135
56152
  var init_php_8_3 = __esm({
56136
56153
  "packages/php-wasm/node/jspi/php_8_3.js"() {
56137
56154
  "use strict";
56138
- dependencyFilename2 = path2.join(__dirname + "/jspi", "8_3_0", "php_8_3.wasm");
56139
- dependenciesTotalSize2 = 32388923;
56155
+ dependencyFilename2 = path2.join(__dirname + "/jspi", "8_3_23", "php_8_3.wasm");
56156
+ dependenciesTotalSize2 = 32571921;
56157
+ phpVersionString2 = "8.3.23";
56140
56158
  }
56141
56159
  });
56142
56160
 
@@ -56655,7 +56673,7 @@ function init4(RuntimeName, PHPLoader) {
56655
56673
  newDSO("__main__", 0, wasmImports);
56656
56674
  }
56657
56675
  };
56658
- var ___heap_base = 13258656;
56676
+ var ___heap_base = 14295392;
56659
56677
  var alignMemory = (size, alignment) => {
56660
56678
  return Math.ceil(size / alignment) * alignment;
56661
56679
  };
@@ -56797,7 +56815,7 @@ function init4(RuntimeName, PHPLoader) {
56797
56815
  };
56798
56816
  var wasmTableMirror = [];
56799
56817
  var wasmTable = new WebAssembly.Table({
56800
- initial: 15615,
56818
+ initial: 15696,
56801
56819
  element: "anyfunc"
56802
56820
  });
56803
56821
  var getWasmTableEntry = (funcPtr) => {
@@ -57319,11 +57337,11 @@ function init4(RuntimeName, PHPLoader) {
57319
57337
  { value: "i32", mutable: false },
57320
57338
  1024
57321
57339
  );
57322
- var ___stack_high = 13258656;
57323
- var ___stack_low = 13193120;
57340
+ var ___stack_high = 14295392;
57341
+ var ___stack_low = 13246816;
57324
57342
  var ___stack_pointer = new WebAssembly.Global(
57325
57343
  { value: "i32", mutable: true },
57326
- 13258656
57344
+ 14295392
57327
57345
  );
57328
57346
  var PATH = {
57329
57347
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -59219,9 +59237,6 @@ function init4(RuntimeName, PHPLoader) {
59219
59237
  if (FS.isMountpoint(node)) {
59220
59238
  throw new FS.ErrnoError(10);
59221
59239
  }
59222
- if (!FS.isDir(node.mode)) {
59223
- throw new FS.ErrnoError(54);
59224
- }
59225
59240
  }
59226
59241
  var mount = {
59227
59242
  type,
@@ -61772,7 +61787,7 @@ function init4(RuntimeName, PHPLoader) {
61772
61787
  PHPLoader.trace(_js_getpid(), format, ...args2);
61773
61788
  }
61774
61789
  }
61775
- function _fd_close(fd) {
61790
+ var _fd_close = function fd_close(fd) {
61776
61791
  return Asyncify.handleAsync(async () => {
61777
61792
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
61778
61793
  if (pathResolutionErrno !== 0) {
@@ -61803,7 +61818,7 @@ function init4(RuntimeName, PHPLoader) {
61803
61818
  }
61804
61819
  return result;
61805
61820
  });
61806
- }
61821
+ };
61807
61822
  _fd_close.sig = "ii";
61808
61823
  function _builtin_fd_close(fd) {
61809
61824
  try {
@@ -71896,7 +71911,7 @@ ${e}`);
71896
71911
  var addOnPreMain = (cb) => onMains.unshift(cb);
71897
71912
  var onExits = [];
71898
71913
  var addOnExit = (cb) => onExits.unshift(cb);
71899
- var STACK_SIZE = 65536;
71914
+ var STACK_SIZE = 1048576;
71900
71915
  var STACK_ALIGN = 16;
71901
71916
  var ASSERTIONS = 0;
71902
71917
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -81331,13 +81346,13 @@ ${e}`);
81331
81346
  Module["createContext"] = Browser.createContext;
81332
81347
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
81333
81348
  var ASM_CONSTS = {
81334
- 12264791: ($0) => {
81349
+ 12281038: ($0) => {
81335
81350
  if (!$0) {
81336
81351
  AL.alcErr = 40964;
81337
81352
  return 1;
81338
81353
  }
81339
81354
  },
81340
- 12264839: ($0) => {
81355
+ 12281086: ($0) => {
81341
81356
  if (!AL.currentCtx) {
81342
81357
  err("alGetProcAddress() called without a valid context");
81343
81358
  return 1;
@@ -81463,6 +81478,9 @@ ${e}`);
81463
81478
  while (true) {
81464
81479
  var mask = POLLNVAL;
81465
81480
  mask = SYSCALLS.DEFAULT_POLLMASK;
81481
+ if (FS.isClosed(stream)) {
81482
+ return ERRNO_CODES.EBADF;
81483
+ }
81466
81484
  if (stream.stream_ops?.poll) {
81467
81485
  mask = stream.stream_ops.poll(stream, -1);
81468
81486
  }
@@ -84018,6 +84036,10 @@ ${e}`);
84018
84036
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
84019
84037
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
84020
84038
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
84039
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
84040
+ a0,
84041
+ a1
84042
+ );
84021
84043
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
84022
84044
  a0,
84023
84045
  a1,
@@ -84189,14 +84211,19 @@ ${e}`);
84189
84211
  return originalHashAddNode.apply(FS, arguments);
84190
84212
  };
84191
84213
  }
84214
+ PHPLoader["phpVersion"] = (() => {
84215
+ const [major, minor, patch] = phpVersionString3.split(".").map(Number);
84216
+ return { major, minor, patch };
84217
+ })();
84192
84218
  return PHPLoader;
84193
84219
  }
84194
- var dependencyFilename3, dependenciesTotalSize3;
84220
+ var dependencyFilename3, dependenciesTotalSize3, phpVersionString3;
84195
84221
  var init_php_8_2 = __esm({
84196
84222
  "packages/php-wasm/node/jspi/php_8_2.js"() {
84197
84223
  "use strict";
84198
- dependencyFilename3 = path3.join(__dirname + "/jspi", "8_2_10", "php_8_2.wasm");
84199
- dependenciesTotalSize3 = 31311784;
84224
+ dependencyFilename3 = path3.join(__dirname + "/jspi", "8_2_29", "php_8_2.wasm");
84225
+ dependenciesTotalSize3 = 31474550;
84226
+ phpVersionString3 = "8.2.29";
84200
84227
  }
84201
84228
  });
84202
84229
 
@@ -84715,7 +84742,7 @@ function init5(RuntimeName, PHPLoader) {
84715
84742
  newDSO("__main__", 0, wasmImports);
84716
84743
  }
84717
84744
  };
84718
- var ___heap_base = 13228576;
84745
+ var ___heap_base = 14258208;
84719
84746
  var alignMemory = (size, alignment) => {
84720
84747
  return Math.ceil(size / alignment) * alignment;
84721
84748
  };
@@ -84857,7 +84884,7 @@ function init5(RuntimeName, PHPLoader) {
84857
84884
  };
84858
84885
  var wasmTableMirror = [];
84859
84886
  var wasmTable = new WebAssembly.Table({
84860
- initial: 15384,
84887
+ initial: 15458,
84861
84888
  element: "anyfunc"
84862
84889
  });
84863
84890
  var getWasmTableEntry = (funcPtr) => {
@@ -85379,11 +85406,11 @@ function init5(RuntimeName, PHPLoader) {
85379
85406
  { value: "i32", mutable: false },
85380
85407
  1024
85381
85408
  );
85382
- var ___stack_high = 13228576;
85383
- var ___stack_low = 13163040;
85409
+ var ___stack_high = 14258208;
85410
+ var ___stack_low = 13209632;
85384
85411
  var ___stack_pointer = new WebAssembly.Global(
85385
85412
  { value: "i32", mutable: true },
85386
- 13228576
85413
+ 14258208
85387
85414
  );
85388
85415
  var PATH = {
85389
85416
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -87279,9 +87306,6 @@ function init5(RuntimeName, PHPLoader) {
87279
87306
  if (FS.isMountpoint(node)) {
87280
87307
  throw new FS.ErrnoError(10);
87281
87308
  }
87282
- if (!FS.isDir(node.mode)) {
87283
- throw new FS.ErrnoError(54);
87284
- }
87285
87309
  }
87286
87310
  var mount = {
87287
87311
  type,
@@ -89832,7 +89856,7 @@ function init5(RuntimeName, PHPLoader) {
89832
89856
  PHPLoader.trace(_js_getpid(), format, ...args2);
89833
89857
  }
89834
89858
  }
89835
- function _fd_close(fd) {
89859
+ var _fd_close = function fd_close(fd) {
89836
89860
  return Asyncify.handleAsync(async () => {
89837
89861
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
89838
89862
  if (pathResolutionErrno !== 0) {
@@ -89863,7 +89887,7 @@ function init5(RuntimeName, PHPLoader) {
89863
89887
  }
89864
89888
  return result;
89865
89889
  });
89866
- }
89890
+ };
89867
89891
  _fd_close.sig = "ii";
89868
89892
  function _builtin_fd_close(fd) {
89869
89893
  try {
@@ -99955,7 +99979,7 @@ ${e}`);
99955
99979
  var addOnPreMain = (cb) => onMains.unshift(cb);
99956
99980
  var onExits = [];
99957
99981
  var addOnExit = (cb) => onExits.unshift(cb);
99958
- var STACK_SIZE = 65536;
99982
+ var STACK_SIZE = 1048576;
99959
99983
  var STACK_ALIGN = 16;
99960
99984
  var ASSERTIONS = 0;
99961
99985
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -109391,13 +109415,13 @@ ${e}`);
109391
109415
  Module["createContext"] = Browser.createContext;
109392
109416
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
109393
109417
  var ASM_CONSTS = {
109394
- 12233191: ($0) => {
109418
+ 12242382: ($0) => {
109395
109419
  if (!$0) {
109396
109420
  AL.alcErr = 40964;
109397
109421
  return 1;
109398
109422
  }
109399
109423
  },
109400
- 12233239: ($0) => {
109424
+ 12242430: ($0) => {
109401
109425
  if (!AL.currentCtx) {
109402
109426
  err("alGetProcAddress() called without a valid context");
109403
109427
  return 1;
@@ -109523,6 +109547,9 @@ ${e}`);
109523
109547
  while (true) {
109524
109548
  var mask = POLLNVAL;
109525
109549
  mask = SYSCALLS.DEFAULT_POLLMASK;
109550
+ if (FS.isClosed(stream)) {
109551
+ return ERRNO_CODES.EBADF;
109552
+ }
109526
109553
  if (stream.stream_ops?.poll) {
109527
109554
  mask = stream.stream_ops.poll(stream, -1);
109528
109555
  }
@@ -112083,6 +112110,10 @@ ${e}`);
112083
112110
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
112084
112111
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
112085
112112
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
112113
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
112114
+ a0,
112115
+ a1
112116
+ );
112086
112117
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
112087
112118
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
112088
112119
  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);
@@ -112249,14 +112280,19 @@ ${e}`);
112249
112280
  return originalHashAddNode.apply(FS, arguments);
112250
112281
  };
112251
112282
  }
112283
+ PHPLoader["phpVersion"] = (() => {
112284
+ const [major, minor, patch] = phpVersionString4.split(".").map(Number);
112285
+ return { major, minor, patch };
112286
+ })();
112252
112287
  return PHPLoader;
112253
112288
  }
112254
- var dependencyFilename4, dependenciesTotalSize4;
112289
+ var dependencyFilename4, dependenciesTotalSize4, phpVersionString4;
112255
112290
  var init_php_8_1 = __esm({
112256
112291
  "packages/php-wasm/node/jspi/php_8_1.js"() {
112257
112292
  "use strict";
112258
- dependencyFilename4 = path4.join(__dirname + "/jspi", "8_1_23", "php_8_1.wasm");
112259
- dependenciesTotalSize4 = 30963537;
112293
+ dependencyFilename4 = path4.join(__dirname + "/jspi", "8_1_33", "php_8_1.wasm");
112294
+ dependenciesTotalSize4 = 31100909;
112295
+ phpVersionString4 = "8.1.33";
112260
112296
  }
112261
112297
  });
112262
112298
 
@@ -112775,7 +112811,7 @@ function init6(RuntimeName, PHPLoader) {
112775
112811
  newDSO("__main__", 0, wasmImports);
112776
112812
  }
112777
112813
  };
112778
- var ___heap_base = 13134176;
112814
+ var ___heap_base = 14177504;
112779
112815
  var alignMemory = (size, alignment) => {
112780
112816
  return Math.ceil(size / alignment) * alignment;
112781
112817
  };
@@ -112917,7 +112953,7 @@ function init6(RuntimeName, PHPLoader) {
112917
112953
  };
112918
112954
  var wasmTableMirror = [];
112919
112955
  var wasmTable = new WebAssembly.Table({
112920
- initial: 15336,
112956
+ initial: 15404,
112921
112957
  element: "anyfunc"
112922
112958
  });
112923
112959
  var getWasmTableEntry = (funcPtr) => {
@@ -113439,11 +113475,11 @@ function init6(RuntimeName, PHPLoader) {
113439
113475
  { value: "i32", mutable: false },
113440
113476
  1024
113441
113477
  );
113442
- var ___stack_high = 13134176;
113443
- var ___stack_low = 13068640;
113478
+ var ___stack_high = 14177504;
113479
+ var ___stack_low = 13128928;
113444
113480
  var ___stack_pointer = new WebAssembly.Global(
113445
113481
  { value: "i32", mutable: true },
113446
- 13134176
113482
+ 14177504
113447
113483
  );
113448
113484
  var PATH = {
113449
113485
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -115339,9 +115375,6 @@ function init6(RuntimeName, PHPLoader) {
115339
115375
  if (FS.isMountpoint(node)) {
115340
115376
  throw new FS.ErrnoError(10);
115341
115377
  }
115342
- if (!FS.isDir(node.mode)) {
115343
- throw new FS.ErrnoError(54);
115344
- }
115345
115378
  }
115346
115379
  var mount = {
115347
115380
  type,
@@ -117892,7 +117925,7 @@ function init6(RuntimeName, PHPLoader) {
117892
117925
  PHPLoader.trace(_js_getpid(), format, ...args2);
117893
117926
  }
117894
117927
  }
117895
- function _fd_close(fd) {
117928
+ var _fd_close = function fd_close(fd) {
117896
117929
  return Asyncify.handleAsync(async () => {
117897
117930
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
117898
117931
  if (pathResolutionErrno !== 0) {
@@ -117923,7 +117956,7 @@ function init6(RuntimeName, PHPLoader) {
117923
117956
  }
117924
117957
  return result;
117925
117958
  });
117926
- }
117959
+ };
117927
117960
  _fd_close.sig = "ii";
117928
117961
  function _builtin_fd_close(fd) {
117929
117962
  try {
@@ -128012,7 +128045,7 @@ ${e}`);
128012
128045
  var addOnPreMain = (cb) => onMains.unshift(cb);
128013
128046
  var onExits = [];
128014
128047
  var addOnExit = (cb) => onExits.unshift(cb);
128015
- var STACK_SIZE = 65536;
128048
+ var STACK_SIZE = 1048576;
128016
128049
  var STACK_ALIGN = 16;
128017
128050
  var ASSERTIONS = 0;
128018
128051
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -137451,13 +137484,13 @@ ${e}`);
137451
137484
  Module["createContext"] = Browser.createContext;
137452
137485
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
137453
137486
  var ASM_CONSTS = {
137454
- 12138519: ($0) => {
137487
+ 12161278: ($0) => {
137455
137488
  if (!$0) {
137456
137489
  AL.alcErr = 40964;
137457
137490
  return 1;
137458
137491
  }
137459
137492
  },
137460
- 12138567: ($0) => {
137493
+ 12161326: ($0) => {
137461
137494
  if (!AL.currentCtx) {
137462
137495
  err("alGetProcAddress() called without a valid context");
137463
137496
  return 1;
@@ -137583,6 +137616,9 @@ ${e}`);
137583
137616
  while (true) {
137584
137617
  var mask = POLLNVAL;
137585
137618
  mask = SYSCALLS.DEFAULT_POLLMASK;
137619
+ if (FS.isClosed(stream)) {
137620
+ return ERRNO_CODES.EBADF;
137621
+ }
137586
137622
  if (stream.stream_ops?.poll) {
137587
137623
  mask = stream.stream_ops.poll(stream, -1);
137588
137624
  }
@@ -140143,6 +140179,10 @@ ${e}`);
140143
140179
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
140144
140180
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
140145
140181
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
140182
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
140183
+ a0,
140184
+ a1
140185
+ );
140146
140186
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
140147
140187
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
140148
140188
  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);
@@ -140309,14 +140349,19 @@ ${e}`);
140309
140349
  return originalHashAddNode.apply(FS, arguments);
140310
140350
  };
140311
140351
  }
140352
+ PHPLoader["phpVersion"] = (() => {
140353
+ const [major, minor, patch] = phpVersionString5.split(".").map(Number);
140354
+ return { major, minor, patch };
140355
+ })();
140312
140356
  return PHPLoader;
140313
140357
  }
140314
- var dependencyFilename5, dependenciesTotalSize5;
140358
+ var dependencyFilename5, dependenciesTotalSize5, phpVersionString5;
140315
140359
  var init_php_8_0 = __esm({
140316
140360
  "packages/php-wasm/node/jspi/php_8_0.js"() {
140317
140361
  "use strict";
140318
140362
  dependencyFilename5 = path5.join(__dirname + "/jspi", "8_0_30", "php_8_0.wasm");
140319
- dependenciesTotalSize5 = 30349929;
140363
+ dependenciesTotalSize5 = 30759315;
140364
+ phpVersionString5 = "8.0.30";
140320
140365
  }
140321
140366
  });
140322
140367
 
@@ -140835,7 +140880,7 @@ function init7(RuntimeName, PHPLoader) {
140835
140880
  newDSO("__main__", 0, wasmImports);
140836
140881
  }
140837
140882
  };
140838
- var ___heap_base = 12030304;
140883
+ var ___heap_base = 13084960;
140839
140884
  var alignMemory = (size, alignment) => {
140840
140885
  return Math.ceil(size / alignment) * alignment;
140841
140886
  };
@@ -140977,7 +141022,7 @@ function init7(RuntimeName, PHPLoader) {
140977
141022
  };
140978
141023
  var wasmTableMirror = [];
140979
141024
  var wasmTable = new WebAssembly.Table({
140980
- initial: 15223,
141025
+ initial: 15290,
140981
141026
  element: "anyfunc"
140982
141027
  });
140983
141028
  var getWasmTableEntry = (funcPtr) => {
@@ -141499,11 +141544,11 @@ function init7(RuntimeName, PHPLoader) {
141499
141544
  { value: "i32", mutable: false },
141500
141545
  1024
141501
141546
  );
141502
- var ___stack_high = 12030304;
141503
- var ___stack_low = 11964768;
141547
+ var ___stack_high = 13084960;
141548
+ var ___stack_low = 12036384;
141504
141549
  var ___stack_pointer = new WebAssembly.Global(
141505
141550
  { value: "i32", mutable: true },
141506
- 12030304
141551
+ 13084960
141507
141552
  );
141508
141553
  var PATH = {
141509
141554
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -143399,9 +143444,6 @@ function init7(RuntimeName, PHPLoader) {
143399
143444
  if (FS.isMountpoint(node)) {
143400
143445
  throw new FS.ErrnoError(10);
143401
143446
  }
143402
- if (!FS.isDir(node.mode)) {
143403
- throw new FS.ErrnoError(54);
143404
- }
143405
143447
  }
143406
143448
  var mount = {
143407
143449
  type,
@@ -145952,7 +145994,7 @@ function init7(RuntimeName, PHPLoader) {
145952
145994
  PHPLoader.trace(_js_getpid(), format, ...args2);
145953
145995
  }
145954
145996
  }
145955
- function _fd_close(fd) {
145997
+ var _fd_close = function fd_close(fd) {
145956
145998
  return Asyncify.handleAsync(async () => {
145957
145999
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
145958
146000
  if (pathResolutionErrno !== 0) {
@@ -145983,7 +146025,7 @@ function init7(RuntimeName, PHPLoader) {
145983
146025
  }
145984
146026
  return result;
145985
146027
  });
145986
- }
146028
+ };
145987
146029
  _fd_close.sig = "ii";
145988
146030
  function _builtin_fd_close(fd) {
145989
146031
  try {
@@ -156072,7 +156114,7 @@ ${e}`);
156072
156114
  var addOnPreMain = (cb) => onMains.unshift(cb);
156073
156115
  var onExits = [];
156074
156116
  var addOnExit = (cb) => onExits.unshift(cb);
156075
- var STACK_SIZE = 65536;
156117
+ var STACK_SIZE = 1048576;
156076
156118
  var STACK_ALIGN = 16;
156077
156119
  var ASSERTIONS = 0;
156078
156120
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -165511,13 +165553,13 @@ ${e}`);
165511
165553
  Module["createContext"] = Browser.createContext;
165512
165554
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
165513
165555
  var ASM_CONSTS = {
165514
- 11105127: ($0) => {
165556
+ 11139230: ($0) => {
165515
165557
  if (!$0) {
165516
165558
  AL.alcErr = 40964;
165517
165559
  return 1;
165518
165560
  }
165519
165561
  },
165520
- 11105175: ($0) => {
165562
+ 11139278: ($0) => {
165521
165563
  if (!AL.currentCtx) {
165522
165564
  err("alGetProcAddress() called without a valid context");
165523
165565
  return 1;
@@ -165643,6 +165685,9 @@ ${e}`);
165643
165685
  while (true) {
165644
165686
  var mask = POLLNVAL;
165645
165687
  mask = SYSCALLS.DEFAULT_POLLMASK;
165688
+ if (FS.isClosed(stream)) {
165689
+ return ERRNO_CODES.EBADF;
165690
+ }
165646
165691
  if (stream.stream_ops?.poll) {
165647
165692
  mask = stream.stream_ops.poll(stream, -1);
165648
165693
  }
@@ -168203,6 +168248,10 @@ ${e}`);
168203
168248
  var _htonl = (a0) => (_htonl = wasmExports["htonl"])(a0);
168204
168249
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
168205
168250
  var ___cxa_throw = (a0, a1, a2) => (___cxa_throw = wasmExports["__cxa_throw"])(a0, a1, a2);
168251
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
168252
+ a0,
168253
+ a1
168254
+ );
168206
168255
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
168207
168256
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
168208
168257
  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);
@@ -168369,14 +168418,19 @@ ${e}`);
168369
168418
  return originalHashAddNode.apply(FS, arguments);
168370
168419
  };
168371
168420
  }
168421
+ PHPLoader["phpVersion"] = (() => {
168422
+ const [major, minor, patch] = phpVersionString6.split(".").map(Number);
168423
+ return { major, minor, patch };
168424
+ })();
168372
168425
  return PHPLoader;
168373
168426
  }
168374
- var dependencyFilename6, dependenciesTotalSize6;
168427
+ var dependencyFilename6, dependenciesTotalSize6, phpVersionString6;
168375
168428
  var init_php_7_4 = __esm({
168376
168429
  "packages/php-wasm/node/jspi/php_7_4.js"() {
168377
168430
  "use strict";
168378
168431
  dependencyFilename6 = path6.join(__dirname + "/jspi", "7_4_33", "php_7_4.wasm");
168379
- dependenciesTotalSize6 = 29141120;
168432
+ dependenciesTotalSize6 = 29566253;
168433
+ phpVersionString6 = "7.4.33";
168380
168434
  }
168381
168435
  });
168382
168436
 
@@ -168895,7 +168949,7 @@ function init8(RuntimeName, PHPLoader) {
168895
168949
  newDSO("__main__", 0, wasmImports);
168896
168950
  }
168897
168951
  };
168898
- var ___heap_base = 11705120;
168952
+ var ___heap_base = 12760416;
168899
168953
  var alignMemory = (size, alignment) => {
168900
168954
  return Math.ceil(size / alignment) * alignment;
168901
168955
  };
@@ -169037,7 +169091,7 @@ function init8(RuntimeName, PHPLoader) {
169037
169091
  };
169038
169092
  var wasmTableMirror = [];
169039
169093
  var wasmTable = new WebAssembly.Table({
169040
- initial: 15465,
169094
+ initial: 15542,
169041
169095
  element: "anyfunc"
169042
169096
  });
169043
169097
  var getWasmTableEntry = (funcPtr) => {
@@ -169559,11 +169613,11 @@ function init8(RuntimeName, PHPLoader) {
169559
169613
  { value: "i32", mutable: false },
169560
169614
  1024
169561
169615
  );
169562
- var ___stack_high = 11705120;
169563
- var ___stack_low = 11639584;
169616
+ var ___stack_high = 12760416;
169617
+ var ___stack_low = 11711840;
169564
169618
  var ___stack_pointer = new WebAssembly.Global(
169565
169619
  { value: "i32", mutable: true },
169566
- 11705120
169620
+ 12760416
169567
169621
  );
169568
169622
  var PATH = {
169569
169623
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -171459,9 +171513,6 @@ function init8(RuntimeName, PHPLoader) {
171459
171513
  if (FS.isMountpoint(node)) {
171460
171514
  throw new FS.ErrnoError(10);
171461
171515
  }
171462
- if (!FS.isDir(node.mode)) {
171463
- throw new FS.ErrnoError(54);
171464
- }
171465
171516
  }
171466
171517
  var mount = {
171467
171518
  type,
@@ -174012,7 +174063,7 @@ function init8(RuntimeName, PHPLoader) {
174012
174063
  PHPLoader.trace(_js_getpid(), format, ...args2);
174013
174064
  }
174014
174065
  }
174015
- function _fd_close(fd) {
174066
+ var _fd_close = function fd_close(fd) {
174016
174067
  return Asyncify.handleAsync(async () => {
174017
174068
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
174018
174069
  if (pathResolutionErrno !== 0) {
@@ -174043,7 +174094,7 @@ function init8(RuntimeName, PHPLoader) {
174043
174094
  }
174044
174095
  return result;
174045
174096
  });
174046
- }
174097
+ };
174047
174098
  _fd_close.sig = "ii";
174048
174099
  function _builtin_fd_close(fd) {
174049
174100
  try {
@@ -184129,7 +184180,7 @@ ${e}`);
184129
184180
  var addOnPreMain = (cb) => onMains.unshift(cb);
184130
184181
  var onExits = [];
184131
184182
  var addOnExit = (cb) => onExits.unshift(cb);
184132
- var STACK_SIZE = 65536;
184183
+ var STACK_SIZE = 1048576;
184133
184184
  var STACK_ALIGN = 16;
184134
184185
  var ASSERTIONS = 0;
184135
184186
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -193571,13 +193622,13 @@ ${e}`);
193571
193622
  Module["createContext"] = Browser.createContext;
193572
193623
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
193573
193624
  var ASM_CONSTS = {
193574
- 10780647: ($0) => {
193625
+ 10815374: ($0) => {
193575
193626
  if (!$0) {
193576
193627
  AL.alcErr = 40964;
193577
193628
  return 1;
193578
193629
  }
193579
193630
  },
193580
- 10780695: ($0) => {
193631
+ 10815422: ($0) => {
193581
193632
  if (!AL.currentCtx) {
193582
193633
  err("alGetProcAddress() called without a valid context");
193583
193634
  return 1;
@@ -193703,6 +193754,9 @@ ${e}`);
193703
193754
  while (true) {
193704
193755
  var mask = POLLNVAL;
193705
193756
  mask = SYSCALLS.DEFAULT_POLLMASK;
193757
+ if (FS.isClosed(stream)) {
193758
+ return ERRNO_CODES.EBADF;
193759
+ }
193706
193760
  if (stream.stream_ops?.poll) {
193707
193761
  mask = stream.stream_ops.poll(stream, -1);
193708
193762
  }
@@ -196292,6 +196346,10 @@ ${e}`);
196292
196346
  a0,
196293
196347
  a1
196294
196348
  );
196349
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
196350
+ a0,
196351
+ a1
196352
+ );
196295
196353
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports["memcpy"])(a0, a1, a2);
196296
196354
  var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports["__funcs_on_exit"])();
196297
196355
  var ___dl_seterr = (a0, a1) => (___dl_seterr = wasmExports["__dl_seterr"])(a0, a1);
@@ -196429,14 +196487,19 @@ ${e}`);
196429
196487
  return originalHashAddNode.apply(FS, arguments);
196430
196488
  };
196431
196489
  }
196490
+ PHPLoader["phpVersion"] = (() => {
196491
+ const [major, minor, patch] = phpVersionString7.split(".").map(Number);
196492
+ return { major, minor, patch };
196493
+ })();
196432
196494
  return PHPLoader;
196433
196495
  }
196434
- var dependencyFilename7, dependenciesTotalSize7;
196496
+ var dependencyFilename7, dependenciesTotalSize7, phpVersionString7;
196435
196497
  var init_php_7_3 = __esm({
196436
196498
  "packages/php-wasm/node/jspi/php_7_3.js"() {
196437
196499
  "use strict";
196438
196500
  dependencyFilename7 = path7.join(__dirname + "/jspi", "7_3_33", "php_7_3.wasm");
196439
- dependenciesTotalSize7 = 28784595;
196501
+ dependenciesTotalSize7 = 29193979;
196502
+ phpVersionString7 = "7.3.33";
196440
196503
  }
196441
196504
  });
196442
196505
 
@@ -196955,7 +197018,7 @@ function init9(RuntimeName, PHPLoader) {
196955
197018
  newDSO("__main__", 0, wasmImports);
196956
197019
  }
196957
197020
  };
196958
- var ___heap_base = 11379872;
197021
+ var ___heap_base = 12424800;
196959
197022
  var alignMemory = (size, alignment) => {
196960
197023
  return Math.ceil(size / alignment) * alignment;
196961
197024
  };
@@ -197097,7 +197160,7 @@ function init9(RuntimeName, PHPLoader) {
197097
197160
  };
197098
197161
  var wasmTableMirror = [];
197099
197162
  var wasmTable = new WebAssembly.Table({
197100
- initial: 15501,
197163
+ initial: 15576,
197101
197164
  element: "anyfunc"
197102
197165
  });
197103
197166
  var getWasmTableEntry = (funcPtr) => {
@@ -197619,11 +197682,11 @@ function init9(RuntimeName, PHPLoader) {
197619
197682
  { value: "i32", mutable: false },
197620
197683
  1024
197621
197684
  );
197622
- var ___stack_high = 11379872;
197623
- var ___stack_low = 11314336;
197685
+ var ___stack_high = 12424800;
197686
+ var ___stack_low = 11376224;
197624
197687
  var ___stack_pointer = new WebAssembly.Global(
197625
197688
  { value: "i32", mutable: true },
197626
- 11379872
197689
+ 12424800
197627
197690
  );
197628
197691
  var PATH = {
197629
197692
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -199519,9 +199582,6 @@ function init9(RuntimeName, PHPLoader) {
199519
199582
  if (FS.isMountpoint(node)) {
199520
199583
  throw new FS.ErrnoError(10);
199521
199584
  }
199522
- if (!FS.isDir(node.mode)) {
199523
- throw new FS.ErrnoError(54);
199524
- }
199525
199585
  }
199526
199586
  var mount = {
199527
199587
  type,
@@ -202072,7 +202132,7 @@ function init9(RuntimeName, PHPLoader) {
202072
202132
  PHPLoader.trace(_js_getpid(), format, ...args2);
202073
202133
  }
202074
202134
  }
202075
- function _fd_close(fd) {
202135
+ var _fd_close = function fd_close(fd) {
202076
202136
  return Asyncify.handleAsync(async () => {
202077
202137
  const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
202078
202138
  if (pathResolutionErrno !== 0) {
@@ -202103,7 +202163,7 @@ function init9(RuntimeName, PHPLoader) {
202103
202163
  }
202104
202164
  return result;
202105
202165
  });
202106
- }
202166
+ };
202107
202167
  _fd_close.sig = "ii";
202108
202168
  function _builtin_fd_close(fd) {
202109
202169
  try {
@@ -212189,7 +212249,7 @@ ${e}`);
212189
212249
  var addOnPreMain = (cb) => onMains.unshift(cb);
212190
212250
  var onExits = [];
212191
212251
  var addOnExit = (cb) => onExits.unshift(cb);
212192
- var STACK_SIZE = 65536;
212252
+ var STACK_SIZE = 1048576;
212193
212253
  var STACK_ALIGN = 16;
212194
212254
  var ASSERTIONS = 0;
212195
212255
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -221631,13 +221691,13 @@ ${e}`);
221631
221691
  Module["createContext"] = Browser.createContext;
221632
221692
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
221633
221693
  var ASM_CONSTS = {
221634
- 10385543: ($0) => {
221694
+ 10409966: ($0) => {
221635
221695
  if (!$0) {
221636
221696
  AL.alcErr = 40964;
221637
221697
  return 1;
221638
221698
  }
221639
221699
  },
221640
- 10385591: ($0) => {
221700
+ 10410014: ($0) => {
221641
221701
  if (!AL.currentCtx) {
221642
221702
  err("alGetProcAddress() called without a valid context");
221643
221703
  return 1;
@@ -221763,6 +221823,9 @@ ${e}`);
221763
221823
  while (true) {
221764
221824
  var mask = POLLNVAL;
221765
221825
  mask = SYSCALLS.DEFAULT_POLLMASK;
221826
+ if (FS.isClosed(stream)) {
221827
+ return ERRNO_CODES.EBADF;
221828
+ }
221766
221829
  if (stream.stream_ops?.poll) {
221767
221830
  mask = stream.stream_ops.poll(stream, -1);
221768
221831
  }
@@ -224352,6 +224415,10 @@ ${e}`);
224352
224415
  a0,
224353
224416
  a1
224354
224417
  );
224418
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
224419
+ a0,
224420
+ a1
224421
+ );
224355
224422
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports["memcpy"])(a0, a1, a2);
224356
224423
  var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports["__funcs_on_exit"])();
224357
224424
  var ___dl_seterr = (a0, a1) => (___dl_seterr = wasmExports["__dl_seterr"])(a0, a1);
@@ -224489,14 +224556,19 @@ ${e}`);
224489
224556
  return originalHashAddNode.apply(FS, arguments);
224490
224557
  };
224491
224558
  }
224559
+ PHPLoader["phpVersion"] = (() => {
224560
+ const [major, minor, patch] = phpVersionString8.split(".").map(Number);
224561
+ return { major, minor, patch };
224562
+ })();
224492
224563
  return PHPLoader;
224493
224564
  }
224494
- var dependencyFilename8, dependenciesTotalSize8;
224565
+ var dependencyFilename8, dependenciesTotalSize8, phpVersionString8;
224495
224566
  var init_php_7_2 = __esm({
224496
224567
  "packages/php-wasm/node/jspi/php_7_2.js"() {
224497
224568
  "use strict";
224498
224569
  dependencyFilename8 = path8.join(__dirname + "/jspi", "7_2_34", "php_7_2.wasm");
224499
- dependenciesTotalSize8 = 28506103;
224570
+ dependenciesTotalSize8 = 28865031;
224571
+ phpVersionString8 = "7.2.34";
224500
224572
  }
224501
224573
  });
224502
224574
 
@@ -225011,7 +225083,7 @@ function init10(RuntimeName, PHPLoader) {
225011
225083
  newDSO("__main__", 0, wasmImports);
225012
225084
  }
225013
225085
  };
225014
- var ___heap_base = 17316672;
225086
+ var ___heap_base = 18313280;
225015
225087
  var alignMemory = (size, alignment) => {
225016
225088
  return Math.ceil(size / alignment) * alignment;
225017
225089
  };
@@ -225153,7 +225225,7 @@ function init10(RuntimeName, PHPLoader) {
225153
225225
  };
225154
225226
  var wasmTableMirror = [];
225155
225227
  var wasmTable = new WebAssembly.Table({
225156
- initial: 16834,
225228
+ initial: 16954,
225157
225229
  element: "anyfunc"
225158
225230
  });
225159
225231
  var getWasmTableEntry = (funcPtr) => {
@@ -225775,11 +225847,11 @@ function init10(RuntimeName, PHPLoader) {
225775
225847
  { value: "i32", mutable: false },
225776
225848
  1024
225777
225849
  );
225778
- var ___stack_high = 17316672;
225779
- var ___stack_low = 17251136;
225850
+ var ___stack_high = 18313280;
225851
+ var ___stack_low = 17264704;
225780
225852
  var ___stack_pointer = new WebAssembly.Global(
225781
225853
  { value: "i32", mutable: true },
225782
- 17316672
225854
+ 18313280
225783
225855
  );
225784
225856
  var PATH = {
225785
225857
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -227675,9 +227747,6 @@ function init10(RuntimeName, PHPLoader) {
227675
227747
  if (FS.isMountpoint(node)) {
227676
227748
  throw new FS.ErrnoError(10);
227677
227749
  }
227678
- if (!FS.isDir(node.mode)) {
227679
- throw new FS.ErrnoError(54);
227680
- }
227681
227750
  }
227682
227751
  var mount = {
227683
227752
  type,
@@ -239081,9 +239150,6 @@ ${e}`);
239081
239150
  const buffer = _malloc(CHUNK_SIZE);
239082
239151
  HEAPU32[iov >> 2] = buffer;
239083
239152
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
239084
- if (typeof js_fd_read === "undefined") {
239085
- globalThis.js_fd_read = __asyncjs__js_fd_read;
239086
- }
239087
239153
  const interval = setInterval(pump2, 20);
239088
239154
  pump2();
239089
239155
  }
@@ -240481,7 +240547,7 @@ ${e}`);
240481
240547
  var addOnPreMain = (cb) => onMains.unshift(cb);
240482
240548
  var onExits = [];
240483
240549
  var addOnExit = (cb) => onExits.unshift(cb);
240484
- var STACK_SIZE = 65536;
240550
+ var STACK_SIZE = 1048576;
240485
240551
  var STACK_ALIGN = 16;
240486
240552
  var ASSERTIONS = 0;
240487
240553
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -250321,13 +250387,13 @@ ${e}`);
250321
250387
  Module["createContext"] = Browser.createContext;
250322
250388
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
250323
250389
  var ASM_CONSTS = {
250324
- 16318662: ($0) => {
250390
+ 16327533: ($0) => {
250325
250391
  if (!$0) {
250326
250392
  AL.alcErr = 40964;
250327
250393
  return 1;
250328
250394
  }
250329
250395
  },
250330
- 16318710: ($0) => {
250396
+ 16327581: ($0) => {
250331
250397
  if (!AL.currentCtx) {
250332
250398
  err("alGetProcAddress() called without a valid context");
250333
250399
  return 1;
@@ -250447,6 +250513,9 @@ ${e}`);
250447
250513
  while (true) {
250448
250514
  var mask = POLLNVAL;
250449
250515
  mask = SYSCALLS.DEFAULT_POLLMASK;
250516
+ if (FS.isClosed(stream)) {
250517
+ return ERRNO_CODES.EBADF;
250518
+ }
250450
250519
  if (stream.stream_ops?.poll) {
250451
250520
  mask = stream.stream_ops.poll(stream, -1);
250452
250521
  }
@@ -252941,6 +253010,8 @@ ${e}`);
252941
253010
  /** @export */
252942
253011
  invoke_iijiji,
252943
253012
  /** @export */
253013
+ invoke_ji,
253014
+ /** @export */
252944
253015
  invoke_jii,
252945
253016
  /** @export */
252946
253017
  invoke_jiii,
@@ -252965,6 +253036,8 @@ ${e}`);
252965
253036
  /** @export */
252966
253037
  invoke_viijii,
252967
253038
  /** @export */
253039
+ invoke_vijj,
253040
+ /** @export */
252968
253041
  invoke_vji,
252969
253042
  /** @export */
252970
253043
  js_fd_read,
@@ -253080,6 +253153,10 @@ ${e}`);
253080
253153
  var _fflush = (a0) => (_fflush = wasmExports["fflush"])(a0);
253081
253154
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
253082
253155
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
253156
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
253157
+ a0,
253158
+ a1
253159
+ );
253083
253160
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
253084
253161
  a0,
253085
253162
  a1,
@@ -253303,21 +253380,22 @@ ${e}`);
253303
253380
  _setThrew(1, 0);
253304
253381
  }
253305
253382
  }
253306
- function invoke_iijii(index, a1, a2, a3, a4) {
253383
+ function invoke_jii(index, a1, a2) {
253307
253384
  var sp = stackSave();
253308
253385
  try {
253309
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
253386
+ return Module["dynCall_jii"](index, a1, a2);
253310
253387
  } catch (e) {
253311
253388
  stackRestore(sp);
253312
253389
  if (e !== e + 0)
253313
253390
  throw e;
253314
253391
  _setThrew(1, 0);
253392
+ return 0n;
253315
253393
  }
253316
253394
  }
253317
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
253395
+ function invoke_v(index) {
253318
253396
  var sp = stackSave();
253319
253397
  try {
253320
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
253398
+ Module["dynCall_v"](index);
253321
253399
  } catch (e) {
253322
253400
  stackRestore(sp);
253323
253401
  if (e !== e + 0)
@@ -253325,19 +253403,10 @@ ${e}`);
253325
253403
  _setThrew(1, 0);
253326
253404
  }
253327
253405
  }
253328
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
253406
+ function invoke_vji(index, a1, a2) {
253329
253407
  var sp = stackSave();
253330
253408
  try {
253331
- return Module["dynCall_iiiiiiii"](
253332
- index,
253333
- a1,
253334
- a2,
253335
- a3,
253336
- a4,
253337
- a5,
253338
- a6,
253339
- a7
253340
- );
253409
+ Module["dynCall_vji"](index, a1, a2);
253341
253410
  } catch (e) {
253342
253411
  stackRestore(sp);
253343
253412
  if (e !== e + 0)
@@ -253345,21 +253414,22 @@ ${e}`);
253345
253414
  _setThrew(1, 0);
253346
253415
  }
253347
253416
  }
253348
- function invoke_iiji(index, a1, a2, a3) {
253417
+ function invoke_ji(index, a1) {
253349
253418
  var sp = stackSave();
253350
253419
  try {
253351
- return Module["dynCall_iiji"](index, a1, a2, a3);
253420
+ return Module["dynCall_ji"](index, a1);
253352
253421
  } catch (e) {
253353
253422
  stackRestore(sp);
253354
253423
  if (e !== e + 0)
253355
253424
  throw e;
253356
253425
  _setThrew(1, 0);
253426
+ return 0n;
253357
253427
  }
253358
253428
  }
253359
- function invoke_v(index) {
253429
+ function invoke_vijj(index, a1, a2, a3) {
253360
253430
  var sp = stackSave();
253361
253431
  try {
253362
- Module["dynCall_v"](index);
253432
+ Module["dynCall_vijj"](index, a1, a2, a3);
253363
253433
  } catch (e) {
253364
253434
  stackRestore(sp);
253365
253435
  if (e !== e + 0)
@@ -253367,10 +253437,10 @@ ${e}`);
253367
253437
  _setThrew(1, 0);
253368
253438
  }
253369
253439
  }
253370
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
253440
+ function invoke_iij(index, a1, a2) {
253371
253441
  var sp = stackSave();
253372
253442
  try {
253373
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
253443
+ return Module["dynCall_iij"](index, a1, a2);
253374
253444
  } catch (e) {
253375
253445
  stackRestore(sp);
253376
253446
  if (e !== e + 0)
@@ -253378,10 +253448,10 @@ ${e}`);
253378
253448
  _setThrew(1, 0);
253379
253449
  }
253380
253450
  }
253381
- function invoke_vji(index, a1, a2) {
253451
+ function invoke_iijii(index, a1, a2, a3, a4) {
253382
253452
  var sp = stackSave();
253383
253453
  try {
253384
- Module["dynCall_vji"](index, a1, a2);
253454
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
253385
253455
  } catch (e) {
253386
253456
  stackRestore(sp);
253387
253457
  if (e !== e + 0)
@@ -253389,10 +253459,10 @@ ${e}`);
253389
253459
  _setThrew(1, 0);
253390
253460
  }
253391
253461
  }
253392
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
253462
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
253393
253463
  var sp = stackSave();
253394
253464
  try {
253395
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
253465
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
253396
253466
  } catch (e) {
253397
253467
  stackRestore(sp);
253398
253468
  if (e !== e + 0)
@@ -253400,10 +253470,19 @@ ${e}`);
253400
253470
  _setThrew(1, 0);
253401
253471
  }
253402
253472
  }
253403
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
253473
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
253404
253474
  var sp = stackSave();
253405
253475
  try {
253406
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
253476
+ return Module["dynCall_iiiiiiii"](
253477
+ index,
253478
+ a1,
253479
+ a2,
253480
+ a3,
253481
+ a4,
253482
+ a5,
253483
+ a6,
253484
+ a7
253485
+ );
253407
253486
  } catch (e) {
253408
253487
  stackRestore(sp);
253409
253488
  if (e !== e + 0)
@@ -253411,39 +253490,60 @@ ${e}`);
253411
253490
  _setThrew(1, 0);
253412
253491
  }
253413
253492
  }
253414
- function invoke_jiii(index, a1, a2, a3) {
253493
+ function invoke_iiji(index, a1, a2, a3) {
253415
253494
  var sp = stackSave();
253416
253495
  try {
253417
- return Module["dynCall_jiii"](index, a1, a2, a3);
253496
+ return Module["dynCall_iiji"](index, a1, a2, a3);
253418
253497
  } catch (e) {
253419
253498
  stackRestore(sp);
253420
253499
  if (e !== e + 0)
253421
253500
  throw e;
253422
253501
  _setThrew(1, 0);
253423
- return 0n;
253424
253502
  }
253425
253503
  }
253426
- function invoke_jii(index, a1, a2) {
253504
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
253427
253505
  var sp = stackSave();
253428
253506
  try {
253429
- return Module["dynCall_jii"](index, a1, a2);
253507
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
253430
253508
  } catch (e) {
253431
253509
  stackRestore(sp);
253432
253510
  if (e !== e + 0)
253433
253511
  throw e;
253434
253512
  _setThrew(1, 0);
253435
- return 0n;
253436
253513
  }
253437
253514
  }
253438
- function invoke_iij(index, a1, a2) {
253515
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
253439
253516
  var sp = stackSave();
253440
253517
  try {
253441
- return Module["dynCall_iij"](index, a1, a2);
253518
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
253519
+ } catch (e) {
253520
+ stackRestore(sp);
253521
+ if (e !== e + 0)
253522
+ throw e;
253523
+ _setThrew(1, 0);
253524
+ }
253525
+ }
253526
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
253527
+ var sp = stackSave();
253528
+ try {
253529
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
253530
+ } catch (e) {
253531
+ stackRestore(sp);
253532
+ if (e !== e + 0)
253533
+ throw e;
253534
+ _setThrew(1, 0);
253535
+ }
253536
+ }
253537
+ function invoke_jiii(index, a1, a2, a3) {
253538
+ var sp = stackSave();
253539
+ try {
253540
+ return Module["dynCall_jiii"](index, a1, a2, a3);
253442
253541
  } catch (e) {
253443
253542
  stackRestore(sp);
253444
253543
  if (e !== e + 0)
253445
253544
  throw e;
253446
253545
  _setThrew(1, 0);
253546
+ return 0n;
253447
253547
  }
253448
253548
  }
253449
253549
  function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
@@ -253569,14 +253669,19 @@ ${e}`);
253569
253669
  return originalHashAddNode.apply(FS, arguments);
253570
253670
  };
253571
253671
  }
253672
+ PHPLoader["phpVersion"] = (() => {
253673
+ const [major, minor, patch] = phpVersionString9.split(".").map(Number);
253674
+ return { major, minor, patch };
253675
+ })();
253572
253676
  return PHPLoader;
253573
253677
  }
253574
- var dependencyFilename9, dependenciesTotalSize9;
253678
+ var dependencyFilename9, dependenciesTotalSize9, phpVersionString9;
253575
253679
  var init_php_8_42 = __esm({
253576
253680
  "packages/php-wasm/node/asyncify/php_8_4.js"() {
253577
253681
  "use strict";
253578
- dependencyFilename9 = path9.join(__dirname + "/asyncify", "8_4_0", "php_8_4.wasm");
253579
- dependenciesTotalSize9 = 36763254;
253682
+ dependencyFilename9 = path9.join(__dirname + "/asyncify", "8_4_10", "php_8_4.wasm");
253683
+ dependenciesTotalSize9 = 36942485;
253684
+ phpVersionString9 = "8.4.10";
253580
253685
  }
253581
253686
  });
253582
253687
 
@@ -254091,7 +254196,7 @@ function init11(RuntimeName, PHPLoader) {
254091
254196
  newDSO("__main__", 0, wasmImports);
254092
254197
  }
254093
254198
  };
254094
- var ___heap_base = 14207808;
254199
+ var ___heap_base = 15213312;
254095
254200
  var alignMemory = (size, alignment) => {
254096
254201
  return Math.ceil(size / alignment) * alignment;
254097
254202
  };
@@ -254233,7 +254338,7 @@ function init11(RuntimeName, PHPLoader) {
254233
254338
  };
254234
254339
  var wasmTableMirror = [];
254235
254340
  var wasmTable = new WebAssembly.Table({
254236
- initial: 16005,
254341
+ initial: 16130,
254237
254342
  element: "anyfunc"
254238
254343
  });
254239
254344
  var getWasmTableEntry = (funcPtr) => {
@@ -254855,11 +254960,11 @@ function init11(RuntimeName, PHPLoader) {
254855
254960
  { value: "i32", mutable: false },
254856
254961
  1024
254857
254962
  );
254858
- var ___stack_high = 14207808;
254859
- var ___stack_low = 14142272;
254963
+ var ___stack_high = 15213312;
254964
+ var ___stack_low = 14164736;
254860
254965
  var ___stack_pointer = new WebAssembly.Global(
254861
254966
  { value: "i32", mutable: true },
254862
- 14207808
254967
+ 15213312
254863
254968
  );
254864
254969
  var PATH = {
254865
254970
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -256755,9 +256860,6 @@ function init11(RuntimeName, PHPLoader) {
256755
256860
  if (FS.isMountpoint(node)) {
256756
256861
  throw new FS.ErrnoError(10);
256757
256862
  }
256758
- if (!FS.isDir(node.mode)) {
256759
- throw new FS.ErrnoError(54);
256760
- }
256761
256863
  }
256762
256864
  var mount = {
256763
256865
  type,
@@ -268161,9 +268263,6 @@ ${e}`);
268161
268263
  const buffer = _malloc(CHUNK_SIZE);
268162
268264
  HEAPU32[iov >> 2] = buffer;
268163
268265
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
268164
- if (typeof js_fd_read === "undefined") {
268165
- globalThis.js_fd_read = __asyncjs__js_fd_read;
268166
- }
268167
268266
  const interval = setInterval(pump2, 20);
268168
268267
  pump2();
268169
268268
  }
@@ -269561,7 +269660,7 @@ ${e}`);
269561
269660
  var addOnPreMain = (cb) => onMains.unshift(cb);
269562
269661
  var onExits = [];
269563
269662
  var addOnExit = (cb) => onExits.unshift(cb);
269564
- var STACK_SIZE = 65536;
269663
+ var STACK_SIZE = 1048576;
269565
269664
  var STACK_ALIGN = 16;
269566
269665
  var ASSERTIONS = 0;
269567
269666
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -279401,13 +279500,13 @@ ${e}`);
279401
279500
  Module["createContext"] = Browser.createContext;
279402
279501
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
279403
279502
  var ASM_CONSTS = {
279404
- 13214214: ($0) => {
279503
+ 13232061: ($0) => {
279405
279504
  if (!$0) {
279406
279505
  AL.alcErr = 40964;
279407
279506
  return 1;
279408
279507
  }
279409
279508
  },
279410
- 13214262: ($0) => {
279509
+ 13232109: ($0) => {
279411
279510
  if (!AL.currentCtx) {
279412
279511
  err("alGetProcAddress() called without a valid context");
279413
279512
  return 1;
@@ -279527,6 +279626,9 @@ ${e}`);
279527
279626
  while (true) {
279528
279627
  var mask = POLLNVAL;
279529
279628
  mask = SYSCALLS.DEFAULT_POLLMASK;
279629
+ if (FS.isClosed(stream)) {
279630
+ return ERRNO_CODES.EBADF;
279631
+ }
279530
279632
  if (stream.stream_ops?.poll) {
279531
279633
  mask = stream.stream_ops.poll(stream, -1);
279532
279634
  }
@@ -282021,6 +282123,8 @@ ${e}`);
282021
282123
  /** @export */
282022
282124
  invoke_iijiji,
282023
282125
  /** @export */
282126
+ invoke_ji,
282127
+ /** @export */
282024
282128
  invoke_jii,
282025
282129
  /** @export */
282026
282130
  invoke_jiii,
@@ -282047,6 +282151,8 @@ ${e}`);
282047
282151
  /** @export */
282048
282152
  invoke_viijii,
282049
282153
  /** @export */
282154
+ invoke_vijj,
282155
+ /** @export */
282050
282156
  invoke_vji,
282051
282157
  /** @export */
282052
282158
  js_fd_read,
@@ -282162,6 +282268,10 @@ ${e}`);
282162
282268
  var _fflush = (a0) => (_fflush = wasmExports["fflush"])(a0);
282163
282269
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
282164
282270
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
282271
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
282272
+ a0,
282273
+ a1
282274
+ );
282165
282275
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
282166
282276
  a0,
282167
282277
  a1,
@@ -282385,6 +282495,74 @@ ${e}`);
282385
282495
  _setThrew(1, 0);
282386
282496
  }
282387
282497
  }
282498
+ function invoke_vji(index, a1, a2) {
282499
+ var sp = stackSave();
282500
+ try {
282501
+ Module["dynCall_vji"](index, a1, a2);
282502
+ } catch (e) {
282503
+ stackRestore(sp);
282504
+ if (e !== e + 0)
282505
+ throw e;
282506
+ _setThrew(1, 0);
282507
+ }
282508
+ }
282509
+ function invoke_jii(index, a1, a2) {
282510
+ var sp = stackSave();
282511
+ try {
282512
+ return Module["dynCall_jii"](index, a1, a2);
282513
+ } catch (e) {
282514
+ stackRestore(sp);
282515
+ if (e !== e + 0)
282516
+ throw e;
282517
+ _setThrew(1, 0);
282518
+ return 0n;
282519
+ }
282520
+ }
282521
+ function invoke_v(index) {
282522
+ var sp = stackSave();
282523
+ try {
282524
+ Module["dynCall_v"](index);
282525
+ } catch (e) {
282526
+ stackRestore(sp);
282527
+ if (e !== e + 0)
282528
+ throw e;
282529
+ _setThrew(1, 0);
282530
+ }
282531
+ }
282532
+ function invoke_ji(index, a1) {
282533
+ var sp = stackSave();
282534
+ try {
282535
+ return Module["dynCall_ji"](index, a1);
282536
+ } catch (e) {
282537
+ stackRestore(sp);
282538
+ if (e !== e + 0)
282539
+ throw e;
282540
+ _setThrew(1, 0);
282541
+ return 0n;
282542
+ }
282543
+ }
282544
+ function invoke_vijj(index, a1, a2, a3) {
282545
+ var sp = stackSave();
282546
+ try {
282547
+ Module["dynCall_vijj"](index, a1, a2, a3);
282548
+ } catch (e) {
282549
+ stackRestore(sp);
282550
+ if (e !== e + 0)
282551
+ throw e;
282552
+ _setThrew(1, 0);
282553
+ }
282554
+ }
282555
+ function invoke_iij(index, a1, a2) {
282556
+ var sp = stackSave();
282557
+ try {
282558
+ return Module["dynCall_iij"](index, a1, a2);
282559
+ } catch (e) {
282560
+ stackRestore(sp);
282561
+ if (e !== e + 0)
282562
+ throw e;
282563
+ _setThrew(1, 0);
282564
+ }
282565
+ }
282388
282566
  function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
282389
282567
  var sp = stackSave();
282390
282568
  try {
@@ -282438,17 +282616,6 @@ ${e}`);
282438
282616
  _setThrew(1, 0);
282439
282617
  }
282440
282618
  }
282441
- function invoke_v(index) {
282442
- var sp = stackSave();
282443
- try {
282444
- Module["dynCall_v"](index);
282445
- } catch (e) {
282446
- stackRestore(sp);
282447
- if (e !== e + 0)
282448
- throw e;
282449
- _setThrew(1, 0);
282450
- }
282451
- }
282452
282619
  function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
282453
282620
  var sp = stackSave();
282454
282621
  try {
@@ -282460,17 +282627,6 @@ ${e}`);
282460
282627
  _setThrew(1, 0);
282461
282628
  }
282462
282629
  }
282463
- function invoke_vji(index, a1, a2) {
282464
- var sp = stackSave();
282465
- try {
282466
- Module["dynCall_vji"](index, a1, a2);
282467
- } catch (e) {
282468
- stackRestore(sp);
282469
- if (e !== e + 0)
282470
- throw e;
282471
- _setThrew(1, 0);
282472
- }
282473
- }
282474
282630
  function invoke_viijii(index, a1, a2, a3, a4, a5) {
282475
282631
  var sp = stackSave();
282476
282632
  try {
@@ -282516,29 +282672,6 @@ ${e}`);
282516
282672
  return 0n;
282517
282673
  }
282518
282674
  }
282519
- function invoke_jii(index, a1, a2) {
282520
- var sp = stackSave();
282521
- try {
282522
- return Module["dynCall_jii"](index, a1, a2);
282523
- } catch (e) {
282524
- stackRestore(sp);
282525
- if (e !== e + 0)
282526
- throw e;
282527
- _setThrew(1, 0);
282528
- return 0n;
282529
- }
282530
- }
282531
- function invoke_iij(index, a1, a2) {
282532
- var sp = stackSave();
282533
- try {
282534
- return Module["dynCall_iij"](index, a1, a2);
282535
- } catch (e) {
282536
- stackRestore(sp);
282537
- if (e !== e + 0)
282538
- throw e;
282539
- _setThrew(1, 0);
282540
- }
282541
- }
282542
282675
  function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
282543
282676
  var sp = stackSave();
282544
282677
  try {
@@ -282662,14 +282795,19 @@ ${e}`);
282662
282795
  return originalHashAddNode.apply(FS, arguments);
282663
282796
  };
282664
282797
  }
282798
+ PHPLoader["phpVersion"] = (() => {
282799
+ const [major, minor, patch] = phpVersionString10.split(".").map(Number);
282800
+ return { major, minor, patch };
282801
+ })();
282665
282802
  return PHPLoader;
282666
282803
  }
282667
- var dependencyFilename10, dependenciesTotalSize10;
282804
+ var dependencyFilename10, dependenciesTotalSize10, phpVersionString10;
282668
282805
  var init_php_8_32 = __esm({
282669
282806
  "packages/php-wasm/node/asyncify/php_8_3.js"() {
282670
282807
  "use strict";
282671
- dependencyFilename10 = path10.join(__dirname + "/asyncify", "8_3_0", "php_8_3.wasm");
282672
- dependenciesTotalSize10 = 32949413;
282808
+ dependencyFilename10 = path10.join(__dirname + "/asyncify", "8_3_23", "php_8_3.wasm");
282809
+ dependenciesTotalSize10 = 33145262;
282810
+ phpVersionString10 = "8.3.23";
282673
282811
  }
282674
282812
  });
282675
282813
 
@@ -283184,7 +283322,7 @@ function init12(RuntimeName, PHPLoader) {
283184
283322
  newDSO("__main__", 0, wasmImports);
283185
283323
  }
283186
283324
  };
283187
- var ___heap_base = 13257536;
283325
+ var ___heap_base = 14294272;
283188
283326
  var alignMemory = (size, alignment) => {
283189
283327
  return Math.ceil(size / alignment) * alignment;
283190
283328
  };
@@ -283326,7 +283464,7 @@ function init12(RuntimeName, PHPLoader) {
283326
283464
  };
283327
283465
  var wasmTableMirror = [];
283328
283466
  var wasmTable = new WebAssembly.Table({
283329
- initial: 15952,
283467
+ initial: 16087,
283330
283468
  element: "anyfunc"
283331
283469
  });
283332
283470
  var getWasmTableEntry = (funcPtr) => {
@@ -283948,11 +284086,11 @@ function init12(RuntimeName, PHPLoader) {
283948
284086
  { value: "i32", mutable: false },
283949
284087
  1024
283950
284088
  );
283951
- var ___stack_high = 13257536;
283952
- var ___stack_low = 13192e3;
284089
+ var ___stack_high = 14294272;
284090
+ var ___stack_low = 13245696;
283953
284091
  var ___stack_pointer = new WebAssembly.Global(
283954
284092
  { value: "i32", mutable: true },
283955
- 13257536
284093
+ 14294272
283956
284094
  );
283957
284095
  var PATH = {
283958
284096
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -285848,9 +285986,6 @@ function init12(RuntimeName, PHPLoader) {
285848
285986
  if (FS.isMountpoint(node)) {
285849
285987
  throw new FS.ErrnoError(10);
285850
285988
  }
285851
- if (!FS.isDir(node.mode)) {
285852
- throw new FS.ErrnoError(54);
285853
- }
285854
285989
  }
285855
285990
  var mount = {
285856
285991
  type,
@@ -297254,9 +297389,6 @@ ${e}`);
297254
297389
  const buffer = _malloc(CHUNK_SIZE);
297255
297390
  HEAPU32[iov >> 2] = buffer;
297256
297391
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
297257
- if (typeof js_fd_read === "undefined") {
297258
- globalThis.js_fd_read = __asyncjs__js_fd_read;
297259
- }
297260
297392
  const interval = setInterval(pump2, 20);
297261
297393
  pump2();
297262
297394
  }
@@ -298654,7 +298786,7 @@ ${e}`);
298654
298786
  var addOnPreMain = (cb) => onMains.unshift(cb);
298655
298787
  var onExits = [];
298656
298788
  var addOnExit = (cb) => onExits.unshift(cb);
298657
- var STACK_SIZE = 65536;
298789
+ var STACK_SIZE = 1048576;
298658
298790
  var STACK_ALIGN = 16;
298659
298791
  var ASSERTIONS = 0;
298660
298792
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -308494,13 +308626,13 @@ ${e}`);
308494
308626
  Module["createContext"] = Browser.createContext;
308495
308627
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
308496
308628
  var ASM_CONSTS = {
308497
- 12264230: ($0) => {
308629
+ 12280477: ($0) => {
308498
308630
  if (!$0) {
308499
308631
  AL.alcErr = 40964;
308500
308632
  return 1;
308501
308633
  }
308502
308634
  },
308503
- 12264278: ($0) => {
308635
+ 12280525: ($0) => {
308504
308636
  if (!AL.currentCtx) {
308505
308637
  err("alGetProcAddress() called without a valid context");
308506
308638
  return 1;
@@ -308620,6 +308752,9 @@ ${e}`);
308620
308752
  while (true) {
308621
308753
  var mask = POLLNVAL;
308622
308754
  mask = SYSCALLS.DEFAULT_POLLMASK;
308755
+ if (FS.isClosed(stream)) {
308756
+ return ERRNO_CODES.EBADF;
308757
+ }
308623
308758
  if (stream.stream_ops?.poll) {
308624
308759
  mask = stream.stream_ops.poll(stream, -1);
308625
308760
  }
@@ -311114,6 +311249,8 @@ ${e}`);
311114
311249
  /** @export */
311115
311250
  invoke_iijiji,
311116
311251
  /** @export */
311252
+ invoke_ji,
311253
+ /** @export */
311117
311254
  invoke_jii,
311118
311255
  /** @export */
311119
311256
  invoke_jiii,
@@ -311140,6 +311277,8 @@ ${e}`);
311140
311277
  /** @export */
311141
311278
  invoke_viijii,
311142
311279
  /** @export */
311280
+ invoke_vijj,
311281
+ /** @export */
311143
311282
  invoke_vji,
311144
311283
  /** @export */
311145
311284
  js_fd_read,
@@ -311255,6 +311394,10 @@ ${e}`);
311255
311394
  var _fflush = (a0) => (_fflush = wasmExports["fflush"])(a0);
311256
311395
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
311257
311396
  var _flock = Module["_flock"] = (a0, a1) => (_flock = Module["_flock"] = wasmExports["flock"])(a0, a1);
311397
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
311398
+ a0,
311399
+ a1
311400
+ );
311258
311401
  var _wasm_read = Module["_wasm_read"] = (a0, a1, a2) => (_wasm_read = Module["_wasm_read"] = wasmExports["wasm_read"])(
311259
311402
  a0,
311260
311403
  a1,
@@ -311478,19 +311621,10 @@ ${e}`);
311478
311621
  _setThrew(1, 0);
311479
311622
  }
311480
311623
  }
311481
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
311624
+ function invoke_vji(index, a1, a2) {
311482
311625
  var sp = stackSave();
311483
311626
  try {
311484
- return Module["dynCall_iiiiiiii"](
311485
- index,
311486
- a1,
311487
- a2,
311488
- a3,
311489
- a4,
311490
- a5,
311491
- a6,
311492
- a7
311493
- );
311627
+ Module["dynCall_vji"](index, a1, a2);
311494
311628
  } catch (e) {
311495
311629
  stackRestore(sp);
311496
311630
  if (e !== e + 0)
@@ -311498,21 +311632,22 @@ ${e}`);
311498
311632
  _setThrew(1, 0);
311499
311633
  }
311500
311634
  }
311501
- function invoke_iiji(index, a1, a2, a3) {
311635
+ function invoke_jii(index, a1, a2) {
311502
311636
  var sp = stackSave();
311503
311637
  try {
311504
- return Module["dynCall_iiji"](index, a1, a2, a3);
311638
+ return Module["dynCall_jii"](index, a1, a2);
311505
311639
  } catch (e) {
311506
311640
  stackRestore(sp);
311507
311641
  if (e !== e + 0)
311508
311642
  throw e;
311509
311643
  _setThrew(1, 0);
311644
+ return 0n;
311510
311645
  }
311511
311646
  }
311512
- function invoke_iijii(index, a1, a2, a3, a4) {
311647
+ function invoke_v(index) {
311513
311648
  var sp = stackSave();
311514
311649
  try {
311515
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
311650
+ Module["dynCall_v"](index);
311516
311651
  } catch (e) {
311517
311652
  stackRestore(sp);
311518
311653
  if (e !== e + 0)
@@ -311520,21 +311655,22 @@ ${e}`);
311520
311655
  _setThrew(1, 0);
311521
311656
  }
311522
311657
  }
311523
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
311658
+ function invoke_ji(index, a1) {
311524
311659
  var sp = stackSave();
311525
311660
  try {
311526
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
311661
+ return Module["dynCall_ji"](index, a1);
311527
311662
  } catch (e) {
311528
311663
  stackRestore(sp);
311529
311664
  if (e !== e + 0)
311530
311665
  throw e;
311531
311666
  _setThrew(1, 0);
311667
+ return 0n;
311532
311668
  }
311533
311669
  }
311534
- function invoke_v(index) {
311670
+ function invoke_vijj(index, a1, a2, a3) {
311535
311671
  var sp = stackSave();
311536
311672
  try {
311537
- Module["dynCall_v"](index);
311673
+ Module["dynCall_vijj"](index, a1, a2, a3);
311538
311674
  } catch (e) {
311539
311675
  stackRestore(sp);
311540
311676
  if (e !== e + 0)
@@ -311542,10 +311678,10 @@ ${e}`);
311542
311678
  _setThrew(1, 0);
311543
311679
  }
311544
311680
  }
311545
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
311681
+ function invoke_iij(index, a1, a2) {
311546
311682
  var sp = stackSave();
311547
311683
  try {
311548
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
311684
+ return Module["dynCall_iij"](index, a1, a2);
311549
311685
  } catch (e) {
311550
311686
  stackRestore(sp);
311551
311687
  if (e !== e + 0)
@@ -311553,10 +311689,19 @@ ${e}`);
311553
311689
  _setThrew(1, 0);
311554
311690
  }
311555
311691
  }
311556
- function invoke_vji(index, a1, a2) {
311692
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
311557
311693
  var sp = stackSave();
311558
311694
  try {
311559
- Module["dynCall_vji"](index, a1, a2);
311695
+ return Module["dynCall_iiiiiiii"](
311696
+ index,
311697
+ a1,
311698
+ a2,
311699
+ a3,
311700
+ a4,
311701
+ a5,
311702
+ a6,
311703
+ a7
311704
+ );
311560
311705
  } catch (e) {
311561
311706
  stackRestore(sp);
311562
311707
  if (e !== e + 0)
@@ -311564,10 +311709,10 @@ ${e}`);
311564
311709
  _setThrew(1, 0);
311565
311710
  }
311566
311711
  }
311567
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
311712
+ function invoke_iiji(index, a1, a2, a3) {
311568
311713
  var sp = stackSave();
311569
311714
  try {
311570
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
311715
+ return Module["dynCall_iiji"](index, a1, a2, a3);
311571
311716
  } catch (e) {
311572
311717
  stackRestore(sp);
311573
311718
  if (e !== e + 0)
@@ -311575,10 +311720,10 @@ ${e}`);
311575
311720
  _setThrew(1, 0);
311576
311721
  }
311577
311722
  }
311578
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
311723
+ function invoke_iijii(index, a1, a2, a3, a4) {
311579
311724
  var sp = stackSave();
311580
311725
  try {
311581
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
311726
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
311582
311727
  } catch (e) {
311583
311728
  stackRestore(sp);
311584
311729
  if (e !== e + 0)
@@ -311586,10 +311731,10 @@ ${e}`);
311586
311731
  _setThrew(1, 0);
311587
311732
  }
311588
311733
  }
311589
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
311734
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
311590
311735
  var sp = stackSave();
311591
311736
  try {
311592
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
311737
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
311593
311738
  } catch (e) {
311594
311739
  stackRestore(sp);
311595
311740
  if (e !== e + 0)
@@ -311597,39 +311742,60 @@ ${e}`);
311597
311742
  _setThrew(1, 0);
311598
311743
  }
311599
311744
  }
311600
- function invoke_jiii(index, a1, a2, a3) {
311745
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
311601
311746
  var sp = stackSave();
311602
311747
  try {
311603
- return Module["dynCall_jiii"](index, a1, a2, a3);
311748
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
311604
311749
  } catch (e) {
311605
311750
  stackRestore(sp);
311606
311751
  if (e !== e + 0)
311607
311752
  throw e;
311608
311753
  _setThrew(1, 0);
311609
- return 0n;
311610
311754
  }
311611
311755
  }
311612
- function invoke_jii(index, a1, a2) {
311756
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
311613
311757
  var sp = stackSave();
311614
311758
  try {
311615
- return Module["dynCall_jii"](index, a1, a2);
311759
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
311616
311760
  } catch (e) {
311617
311761
  stackRestore(sp);
311618
311762
  if (e !== e + 0)
311619
311763
  throw e;
311620
311764
  _setThrew(1, 0);
311621
- return 0n;
311622
311765
  }
311623
311766
  }
311624
- function invoke_iij(index, a1, a2) {
311767
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
311625
311768
  var sp = stackSave();
311626
311769
  try {
311627
- return Module["dynCall_iij"](index, a1, a2);
311770
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
311771
+ } catch (e) {
311772
+ stackRestore(sp);
311773
+ if (e !== e + 0)
311774
+ throw e;
311775
+ _setThrew(1, 0);
311776
+ }
311777
+ }
311778
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
311779
+ var sp = stackSave();
311780
+ try {
311781
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
311782
+ } catch (e) {
311783
+ stackRestore(sp);
311784
+ if (e !== e + 0)
311785
+ throw e;
311786
+ _setThrew(1, 0);
311787
+ }
311788
+ }
311789
+ function invoke_jiii(index, a1, a2, a3) {
311790
+ var sp = stackSave();
311791
+ try {
311792
+ return Module["dynCall_jiii"](index, a1, a2, a3);
311628
311793
  } catch (e) {
311629
311794
  stackRestore(sp);
311630
311795
  if (e !== e + 0)
311631
311796
  throw e;
311632
311797
  _setThrew(1, 0);
311798
+ return 0n;
311633
311799
  }
311634
311800
  }
311635
311801
  function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
@@ -311755,14 +311921,19 @@ ${e}`);
311755
311921
  return originalHashAddNode.apply(FS, arguments);
311756
311922
  };
311757
311923
  }
311924
+ PHPLoader["phpVersion"] = (() => {
311925
+ const [major, minor, patch] = phpVersionString11.split(".").map(Number);
311926
+ return { major, minor, patch };
311927
+ })();
311758
311928
  return PHPLoader;
311759
311929
  }
311760
- var dependencyFilename11, dependenciesTotalSize11;
311930
+ var dependencyFilename11, dependenciesTotalSize11, phpVersionString11;
311761
311931
  var init_php_8_22 = __esm({
311762
311932
  "packages/php-wasm/node/asyncify/php_8_2.js"() {
311763
311933
  "use strict";
311764
- dependencyFilename11 = path11.join(__dirname + "/asyncify", "8_2_10", "php_8_2.wasm");
311765
- dependenciesTotalSize11 = 31860490;
311934
+ dependencyFilename11 = path11.join(__dirname + "/asyncify", "8_2_29", "php_8_2.wasm");
311935
+ dependenciesTotalSize11 = 32040568;
311936
+ phpVersionString11 = "8.2.29";
311766
311937
  }
311767
311938
  });
311768
311939
 
@@ -312277,7 +312448,7 @@ function init13(RuntimeName, PHPLoader) {
312277
312448
  newDSO("__main__", 0, wasmImports);
312278
312449
  }
312279
312450
  };
312280
- var ___heap_base = 13227456;
312451
+ var ___heap_base = 14257088;
312281
312452
  var alignMemory = (size, alignment) => {
312282
312453
  return Math.ceil(size / alignment) * alignment;
312283
312454
  };
@@ -312419,7 +312590,7 @@ function init13(RuntimeName, PHPLoader) {
312419
312590
  };
312420
312591
  var wasmTableMirror = [];
312421
312592
  var wasmTable = new WebAssembly.Table({
312422
- initial: 15711,
312593
+ initial: 15836,
312423
312594
  element: "anyfunc"
312424
312595
  });
312425
312596
  var getWasmTableEntry = (funcPtr) => {
@@ -313041,11 +313212,11 @@ function init13(RuntimeName, PHPLoader) {
313041
313212
  { value: "i32", mutable: false },
313042
313213
  1024
313043
313214
  );
313044
- var ___stack_high = 13227456;
313045
- var ___stack_low = 13161920;
313215
+ var ___stack_high = 14257088;
313216
+ var ___stack_low = 13208512;
313046
313217
  var ___stack_pointer = new WebAssembly.Global(
313047
313218
  { value: "i32", mutable: true },
313048
- 13227456
313219
+ 14257088
313049
313220
  );
313050
313221
  var PATH = {
313051
313222
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -314941,9 +315112,6 @@ function init13(RuntimeName, PHPLoader) {
314941
315112
  if (FS.isMountpoint(node)) {
314942
315113
  throw new FS.ErrnoError(10);
314943
315114
  }
314944
- if (!FS.isDir(node.mode)) {
314945
- throw new FS.ErrnoError(54);
314946
- }
314947
315115
  }
314948
315116
  var mount = {
314949
315117
  type,
@@ -326346,9 +326514,6 @@ ${e}`);
326346
326514
  const buffer = _malloc(CHUNK_SIZE);
326347
326515
  HEAPU32[iov >> 2] = buffer;
326348
326516
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
326349
- if (typeof js_fd_read === "undefined") {
326350
- globalThis.js_fd_read = __asyncjs__js_fd_read;
326351
- }
326352
326517
  const interval = setInterval(pump2, 20);
326353
326518
  pump2();
326354
326519
  }
@@ -327746,7 +327911,7 @@ ${e}`);
327746
327911
  var addOnPreMain = (cb) => onMains.unshift(cb);
327747
327912
  var onExits = [];
327748
327913
  var addOnExit = (cb) => onExits.unshift(cb);
327749
- var STACK_SIZE = 65536;
327914
+ var STACK_SIZE = 1048576;
327750
327915
  var STACK_ALIGN = 16;
327751
327916
  var ASSERTIONS = 0;
327752
327917
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -337587,13 +337752,13 @@ ${e}`);
337587
337752
  Module["createContext"] = Browser.createContext;
337588
337753
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
337589
337754
  var ASM_CONSTS = {
337590
- 12232630: ($0) => {
337755
+ 12241821: ($0) => {
337591
337756
  if (!$0) {
337592
337757
  AL.alcErr = 40964;
337593
337758
  return 1;
337594
337759
  }
337595
337760
  },
337596
- 12232678: ($0) => {
337761
+ 12241869: ($0) => {
337597
337762
  if (!AL.currentCtx) {
337598
337763
  err("alGetProcAddress() called without a valid context");
337599
337764
  return 1;
@@ -337713,6 +337878,9 @@ ${e}`);
337713
337878
  while (true) {
337714
337879
  var mask = POLLNVAL;
337715
337880
  mask = SYSCALLS.DEFAULT_POLLMASK;
337881
+ if (FS.isClosed(stream)) {
337882
+ return ERRNO_CODES.EBADF;
337883
+ }
337716
337884
  if (stream.stream_ops?.poll) {
337717
337885
  mask = stream.stream_ops.poll(stream, -1);
337718
337886
  }
@@ -340207,6 +340375,10 @@ ${e}`);
340207
340375
  /** @export */
340208
340376
  invoke_iijiji,
340209
340377
  /** @export */
340378
+ invoke_iijj,
340379
+ /** @export */
340380
+ invoke_ji,
340381
+ /** @export */
340210
340382
  invoke_jii,
340211
340383
  /** @export */
340212
340384
  invoke_jiii,
@@ -340353,6 +340525,10 @@ ${e}`);
340353
340525
  var _htonl = (a0) => (_htonl = wasmExports["htonl"])(a0);
340354
340526
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
340355
340527
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
340528
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
340529
+ a0,
340530
+ a1
340531
+ );
340356
340532
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
340357
340533
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
340358
340534
  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);
@@ -340571,19 +340747,10 @@ ${e}`);
340571
340747
  _setThrew(1, 0);
340572
340748
  }
340573
340749
  }
340574
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
340750
+ function invoke_vji(index, a1, a2) {
340575
340751
  var sp = stackSave();
340576
340752
  try {
340577
- return Module["dynCall_iiiiiiii"](
340578
- index,
340579
- a1,
340580
- a2,
340581
- a3,
340582
- a4,
340583
- a5,
340584
- a6,
340585
- a7
340586
- );
340753
+ Module["dynCall_vji"](index, a1, a2);
340587
340754
  } catch (e) {
340588
340755
  stackRestore(sp);
340589
340756
  if (e !== e + 0)
@@ -340591,21 +340758,22 @@ ${e}`);
340591
340758
  _setThrew(1, 0);
340592
340759
  }
340593
340760
  }
340594
- function invoke_iiji(index, a1, a2, a3) {
340761
+ function invoke_jii(index, a1, a2) {
340595
340762
  var sp = stackSave();
340596
340763
  try {
340597
- return Module["dynCall_iiji"](index, a1, a2, a3);
340764
+ return Module["dynCall_jii"](index, a1, a2);
340598
340765
  } catch (e) {
340599
340766
  stackRestore(sp);
340600
340767
  if (e !== e + 0)
340601
340768
  throw e;
340602
340769
  _setThrew(1, 0);
340770
+ return 0n;
340603
340771
  }
340604
340772
  }
340605
- function invoke_iijii(index, a1, a2, a3, a4) {
340773
+ function invoke_v(index) {
340606
340774
  var sp = stackSave();
340607
340775
  try {
340608
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
340776
+ Module["dynCall_v"](index);
340609
340777
  } catch (e) {
340610
340778
  stackRestore(sp);
340611
340779
  if (e !== e + 0)
@@ -340613,21 +340781,22 @@ ${e}`);
340613
340781
  _setThrew(1, 0);
340614
340782
  }
340615
340783
  }
340616
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
340784
+ function invoke_ji(index, a1) {
340617
340785
  var sp = stackSave();
340618
340786
  try {
340619
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
340787
+ return Module["dynCall_ji"](index, a1);
340620
340788
  } catch (e) {
340621
340789
  stackRestore(sp);
340622
340790
  if (e !== e + 0)
340623
340791
  throw e;
340624
340792
  _setThrew(1, 0);
340793
+ return 0n;
340625
340794
  }
340626
340795
  }
340627
- function invoke_v(index) {
340796
+ function invoke_iijj(index, a1, a2, a3) {
340628
340797
  var sp = stackSave();
340629
340798
  try {
340630
- Module["dynCall_v"](index);
340799
+ return Module["dynCall_iijj"](index, a1, a2, a3);
340631
340800
  } catch (e) {
340632
340801
  stackRestore(sp);
340633
340802
  if (e !== e + 0)
@@ -340635,10 +340804,10 @@ ${e}`);
340635
340804
  _setThrew(1, 0);
340636
340805
  }
340637
340806
  }
340638
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
340807
+ function invoke_iij(index, a1, a2) {
340639
340808
  var sp = stackSave();
340640
340809
  try {
340641
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
340810
+ return Module["dynCall_iij"](index, a1, a2);
340642
340811
  } catch (e) {
340643
340812
  stackRestore(sp);
340644
340813
  if (e !== e + 0)
@@ -340646,10 +340815,19 @@ ${e}`);
340646
340815
  _setThrew(1, 0);
340647
340816
  }
340648
340817
  }
340649
- function invoke_vji(index, a1, a2) {
340818
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
340650
340819
  var sp = stackSave();
340651
340820
  try {
340652
- Module["dynCall_vji"](index, a1, a2);
340821
+ return Module["dynCall_iiiiiiii"](
340822
+ index,
340823
+ a1,
340824
+ a2,
340825
+ a3,
340826
+ a4,
340827
+ a5,
340828
+ a6,
340829
+ a7
340830
+ );
340653
340831
  } catch (e) {
340654
340832
  stackRestore(sp);
340655
340833
  if (e !== e + 0)
@@ -340657,10 +340835,10 @@ ${e}`);
340657
340835
  _setThrew(1, 0);
340658
340836
  }
340659
340837
  }
340660
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
340838
+ function invoke_iiji(index, a1, a2, a3) {
340661
340839
  var sp = stackSave();
340662
340840
  try {
340663
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
340841
+ return Module["dynCall_iiji"](index, a1, a2, a3);
340664
340842
  } catch (e) {
340665
340843
  stackRestore(sp);
340666
340844
  if (e !== e + 0)
@@ -340668,10 +340846,10 @@ ${e}`);
340668
340846
  _setThrew(1, 0);
340669
340847
  }
340670
340848
  }
340671
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
340849
+ function invoke_iijii(index, a1, a2, a3, a4) {
340672
340850
  var sp = stackSave();
340673
340851
  try {
340674
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
340852
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
340675
340853
  } catch (e) {
340676
340854
  stackRestore(sp);
340677
340855
  if (e !== e + 0)
@@ -340679,10 +340857,10 @@ ${e}`);
340679
340857
  _setThrew(1, 0);
340680
340858
  }
340681
340859
  }
340682
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
340860
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
340683
340861
  var sp = stackSave();
340684
340862
  try {
340685
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
340863
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
340686
340864
  } catch (e) {
340687
340865
  stackRestore(sp);
340688
340866
  if (e !== e + 0)
@@ -340690,34 +340868,32 @@ ${e}`);
340690
340868
  _setThrew(1, 0);
340691
340869
  }
340692
340870
  }
340693
- function invoke_jiii(index, a1, a2, a3) {
340871
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
340694
340872
  var sp = stackSave();
340695
340873
  try {
340696
- return Module["dynCall_jiii"](index, a1, a2, a3);
340874
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
340697
340875
  } catch (e) {
340698
340876
  stackRestore(sp);
340699
340877
  if (e !== e + 0)
340700
340878
  throw e;
340701
340879
  _setThrew(1, 0);
340702
- return 0n;
340703
340880
  }
340704
340881
  }
340705
- function invoke_jii(index, a1, a2) {
340882
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
340706
340883
  var sp = stackSave();
340707
340884
  try {
340708
- return Module["dynCall_jii"](index, a1, a2);
340885
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
340709
340886
  } catch (e) {
340710
340887
  stackRestore(sp);
340711
340888
  if (e !== e + 0)
340712
340889
  throw e;
340713
340890
  _setThrew(1, 0);
340714
- return 0n;
340715
340891
  }
340716
340892
  }
340717
- function invoke_iij(index, a1, a2) {
340893
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
340718
340894
  var sp = stackSave();
340719
340895
  try {
340720
- return Module["dynCall_iij"](index, a1, a2);
340896
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
340721
340897
  } catch (e) {
340722
340898
  stackRestore(sp);
340723
340899
  if (e !== e + 0)
@@ -340725,6 +340901,29 @@ ${e}`);
340725
340901
  _setThrew(1, 0);
340726
340902
  }
340727
340903
  }
340904
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
340905
+ var sp = stackSave();
340906
+ try {
340907
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
340908
+ } catch (e) {
340909
+ stackRestore(sp);
340910
+ if (e !== e + 0)
340911
+ throw e;
340912
+ _setThrew(1, 0);
340913
+ }
340914
+ }
340915
+ function invoke_jiii(index, a1, a2, a3) {
340916
+ var sp = stackSave();
340917
+ try {
340918
+ return Module["dynCall_jiii"](index, a1, a2, a3);
340919
+ } catch (e) {
340920
+ stackRestore(sp);
340921
+ if (e !== e + 0)
340922
+ throw e;
340923
+ _setThrew(1, 0);
340924
+ return 0n;
340925
+ }
340926
+ }
340728
340927
  function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
340729
340928
  var sp = stackSave();
340730
340929
  try {
@@ -340848,14 +341047,19 @@ ${e}`);
340848
341047
  return originalHashAddNode.apply(FS, arguments);
340849
341048
  };
340850
341049
  }
341050
+ PHPLoader["phpVersion"] = (() => {
341051
+ const [major, minor, patch] = phpVersionString12.split(".").map(Number);
341052
+ return { major, minor, patch };
341053
+ })();
340851
341054
  return PHPLoader;
340852
341055
  }
340853
- var dependencyFilename12, dependenciesTotalSize12;
341056
+ var dependencyFilename12, dependenciesTotalSize12, phpVersionString12;
340854
341057
  var init_php_8_12 = __esm({
340855
341058
  "packages/php-wasm/node/asyncify/php_8_1.js"() {
340856
341059
  "use strict";
340857
- dependencyFilename12 = path12.join(__dirname + "/asyncify", "8_1_23", "php_8_1.wasm");
340858
- dependenciesTotalSize12 = 31498814;
341060
+ dependencyFilename12 = path12.join(__dirname + "/asyncify", "8_1_33", "php_8_1.wasm");
341061
+ dependenciesTotalSize12 = 31648487;
341062
+ phpVersionString12 = "8.1.33";
340859
341063
  }
340860
341064
  });
340861
341065
 
@@ -341370,7 +341574,7 @@ function init14(RuntimeName, PHPLoader) {
341370
341574
  newDSO("__main__", 0, wasmImports);
341371
341575
  }
341372
341576
  };
341373
- var ___heap_base = 13133056;
341577
+ var ___heap_base = 14176384;
341374
341578
  var alignMemory = (size, alignment) => {
341375
341579
  return Math.ceil(size / alignment) * alignment;
341376
341580
  };
@@ -341512,7 +341716,7 @@ function init14(RuntimeName, PHPLoader) {
341512
341716
  };
341513
341717
  var wasmTableMirror = [];
341514
341718
  var wasmTable = new WebAssembly.Table({
341515
- initial: 15613,
341719
+ initial: 15745,
341516
341720
  element: "anyfunc"
341517
341721
  });
341518
341722
  var getWasmTableEntry = (funcPtr) => {
@@ -342134,11 +342338,11 @@ function init14(RuntimeName, PHPLoader) {
342134
342338
  { value: "i32", mutable: false },
342135
342339
  1024
342136
342340
  );
342137
- var ___stack_high = 13133056;
342138
- var ___stack_low = 13067520;
342341
+ var ___stack_high = 14176384;
342342
+ var ___stack_low = 13127808;
342139
342343
  var ___stack_pointer = new WebAssembly.Global(
342140
342344
  { value: "i32", mutable: true },
342141
- 13133056
342345
+ 14176384
342142
342346
  );
342143
342347
  var PATH = {
342144
342348
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -344034,9 +344238,6 @@ function init14(RuntimeName, PHPLoader) {
344034
344238
  if (FS.isMountpoint(node)) {
344035
344239
  throw new FS.ErrnoError(10);
344036
344240
  }
344037
- if (!FS.isDir(node.mode)) {
344038
- throw new FS.ErrnoError(54);
344039
- }
344040
344241
  }
344041
344242
  var mount = {
344042
344243
  type,
@@ -355438,9 +355639,6 @@ ${e}`);
355438
355639
  const buffer = _malloc(CHUNK_SIZE);
355439
355640
  HEAPU32[iov >> 2] = buffer;
355440
355641
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
355441
- if (typeof js_fd_read === "undefined") {
355442
- globalThis.js_fd_read = __asyncjs__js_fd_read;
355443
- }
355444
355642
  const interval = setInterval(pump2, 20);
355445
355643
  pump2();
355446
355644
  }
@@ -356836,7 +357034,7 @@ ${e}`);
356836
357034
  var addOnPreMain = (cb) => onMains.unshift(cb);
356837
357035
  var onExits = [];
356838
357036
  var addOnExit = (cb) => onExits.unshift(cb);
356839
- var STACK_SIZE = 65536;
357037
+ var STACK_SIZE = 1048576;
356840
357038
  var STACK_ALIGN = 16;
356841
357039
  var ASSERTIONS = 0;
356842
357040
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -366680,13 +366878,13 @@ ${e}`);
366680
366878
  Module["createContext"] = Browser.createContext;
366681
366879
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
366682
366880
  var ASM_CONSTS = {
366683
- 12137942: ($0) => {
366881
+ 12160717: ($0) => {
366684
366882
  if (!$0) {
366685
366883
  AL.alcErr = 40964;
366686
366884
  return 1;
366687
366885
  }
366688
366886
  },
366689
- 12137990: ($0) => {
366887
+ 12160765: ($0) => {
366690
366888
  if (!AL.currentCtx) {
366691
366889
  err("alGetProcAddress() called without a valid context");
366692
366890
  return 1;
@@ -366806,6 +367004,9 @@ ${e}`);
366806
367004
  while (true) {
366807
367005
  var mask = POLLNVAL;
366808
367006
  mask = SYSCALLS.DEFAULT_POLLMASK;
367007
+ if (FS.isClosed(stream)) {
367008
+ return ERRNO_CODES.EBADF;
367009
+ }
366809
367010
  if (stream.stream_ops?.poll) {
366810
367011
  mask = stream.stream_ops.poll(stream, -1);
366811
367012
  }
@@ -369298,6 +369499,8 @@ ${e}`);
369298
369499
  /** @export */
369299
369500
  invoke_iijiji,
369300
369501
  /** @export */
369502
+ invoke_iijj,
369503
+ /** @export */
369301
369504
  invoke_ji,
369302
369505
  /** @export */
369303
369506
  invoke_jii,
@@ -369446,6 +369649,10 @@ ${e}`);
369446
369649
  var _htonl = (a0) => (_htonl = wasmExports["htonl"])(a0);
369447
369650
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
369448
369651
  var _calloc = (a0, a1) => (_calloc = wasmExports["calloc"])(a0, a1);
369652
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
369653
+ a0,
369654
+ a1
369655
+ );
369449
369656
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
369450
369657
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
369451
369658
  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);
@@ -369664,19 +369871,10 @@ ${e}`);
369664
369871
  _setThrew(1, 0);
369665
369872
  }
369666
369873
  }
369667
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
369874
+ function invoke_vji(index, a1, a2) {
369668
369875
  var sp = stackSave();
369669
369876
  try {
369670
- return Module["dynCall_iiiiiiii"](
369671
- index,
369672
- a1,
369673
- a2,
369674
- a3,
369675
- a4,
369676
- a5,
369677
- a6,
369678
- a7
369679
- );
369877
+ Module["dynCall_vji"](index, a1, a2);
369680
369878
  } catch (e) {
369681
369879
  stackRestore(sp);
369682
369880
  if (e !== e + 0)
@@ -369684,32 +369882,34 @@ ${e}`);
369684
369882
  _setThrew(1, 0);
369685
369883
  }
369686
369884
  }
369687
- function invoke_iiji(index, a1, a2, a3) {
369885
+ function invoke_jii(index, a1, a2) {
369688
369886
  var sp = stackSave();
369689
369887
  try {
369690
- return Module["dynCall_iiji"](index, a1, a2, a3);
369888
+ return Module["dynCall_jii"](index, a1, a2);
369691
369889
  } catch (e) {
369692
369890
  stackRestore(sp);
369693
369891
  if (e !== e + 0)
369694
369892
  throw e;
369695
369893
  _setThrew(1, 0);
369894
+ return 0n;
369696
369895
  }
369697
369896
  }
369698
- function invoke_iijii(index, a1, a2, a3, a4) {
369897
+ function invoke_ji(index, a1) {
369699
369898
  var sp = stackSave();
369700
369899
  try {
369701
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
369900
+ return Module["dynCall_ji"](index, a1);
369702
369901
  } catch (e) {
369703
369902
  stackRestore(sp);
369704
369903
  if (e !== e + 0)
369705
369904
  throw e;
369706
369905
  _setThrew(1, 0);
369906
+ return 0n;
369707
369907
  }
369708
369908
  }
369709
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
369909
+ function invoke_v(index) {
369710
369910
  var sp = stackSave();
369711
369911
  try {
369712
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
369912
+ Module["dynCall_v"](index);
369713
369913
  } catch (e) {
369714
369914
  stackRestore(sp);
369715
369915
  if (e !== e + 0)
@@ -369717,10 +369917,10 @@ ${e}`);
369717
369917
  _setThrew(1, 0);
369718
369918
  }
369719
369919
  }
369720
- function invoke_v(index) {
369920
+ function invoke_iijj(index, a1, a2, a3) {
369721
369921
  var sp = stackSave();
369722
369922
  try {
369723
- Module["dynCall_v"](index);
369923
+ return Module["dynCall_iijj"](index, a1, a2, a3);
369724
369924
  } catch (e) {
369725
369925
  stackRestore(sp);
369726
369926
  if (e !== e + 0)
@@ -369728,10 +369928,19 @@ ${e}`);
369728
369928
  _setThrew(1, 0);
369729
369929
  }
369730
369930
  }
369731
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
369931
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
369732
369932
  var sp = stackSave();
369733
369933
  try {
369734
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
369934
+ return Module["dynCall_iiiiiiii"](
369935
+ index,
369936
+ a1,
369937
+ a2,
369938
+ a3,
369939
+ a4,
369940
+ a5,
369941
+ a6,
369942
+ a7
369943
+ );
369735
369944
  } catch (e) {
369736
369945
  stackRestore(sp);
369737
369946
  if (e !== e + 0)
@@ -369739,10 +369948,10 @@ ${e}`);
369739
369948
  _setThrew(1, 0);
369740
369949
  }
369741
369950
  }
369742
- function invoke_vji(index, a1, a2) {
369951
+ function invoke_iiji(index, a1, a2, a3) {
369743
369952
  var sp = stackSave();
369744
369953
  try {
369745
- Module["dynCall_vji"](index, a1, a2);
369954
+ return Module["dynCall_iiji"](index, a1, a2, a3);
369746
369955
  } catch (e) {
369747
369956
  stackRestore(sp);
369748
369957
  if (e !== e + 0)
@@ -369750,10 +369959,10 @@ ${e}`);
369750
369959
  _setThrew(1, 0);
369751
369960
  }
369752
369961
  }
369753
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
369962
+ function invoke_iijii(index, a1, a2, a3, a4) {
369754
369963
  var sp = stackSave();
369755
369964
  try {
369756
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
369965
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
369757
369966
  } catch (e) {
369758
369967
  stackRestore(sp);
369759
369968
  if (e !== e + 0)
@@ -369761,10 +369970,10 @@ ${e}`);
369761
369970
  _setThrew(1, 0);
369762
369971
  }
369763
369972
  }
369764
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
369973
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
369765
369974
  var sp = stackSave();
369766
369975
  try {
369767
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
369976
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
369768
369977
  } catch (e) {
369769
369978
  stackRestore(sp);
369770
369979
  if (e !== e + 0)
@@ -369772,10 +369981,10 @@ ${e}`);
369772
369981
  _setThrew(1, 0);
369773
369982
  }
369774
369983
  }
369775
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
369984
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
369776
369985
  var sp = stackSave();
369777
369986
  try {
369778
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
369987
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
369779
369988
  } catch (e) {
369780
369989
  stackRestore(sp);
369781
369990
  if (e !== e + 0)
@@ -369783,34 +369992,32 @@ ${e}`);
369783
369992
  _setThrew(1, 0);
369784
369993
  }
369785
369994
  }
369786
- function invoke_jiii(index, a1, a2, a3) {
369995
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
369787
369996
  var sp = stackSave();
369788
369997
  try {
369789
- return Module["dynCall_jiii"](index, a1, a2, a3);
369998
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
369790
369999
  } catch (e) {
369791
370000
  stackRestore(sp);
369792
370001
  if (e !== e + 0)
369793
370002
  throw e;
369794
370003
  _setThrew(1, 0);
369795
- return 0n;
369796
370004
  }
369797
370005
  }
369798
- function invoke_ji(index, a1) {
370006
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
369799
370007
  var sp = stackSave();
369800
370008
  try {
369801
- return Module["dynCall_ji"](index, a1);
370009
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
369802
370010
  } catch (e) {
369803
370011
  stackRestore(sp);
369804
370012
  if (e !== e + 0)
369805
370013
  throw e;
369806
370014
  _setThrew(1, 0);
369807
- return 0n;
369808
370015
  }
369809
370016
  }
369810
- function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
370017
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
369811
370018
  var sp = stackSave();
369812
370019
  try {
369813
- Module["dynCall_viiiiiii"](index, a1, a2, a3, a4, a5, a6, a7);
370020
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
369814
370021
  } catch (e) {
369815
370022
  stackRestore(sp);
369816
370023
  if (e !== e + 0)
@@ -369818,10 +370025,10 @@ ${e}`);
369818
370025
  _setThrew(1, 0);
369819
370026
  }
369820
370027
  }
369821
- function invoke_jii(index, a1, a2) {
370028
+ function invoke_jiii(index, a1, a2, a3) {
369822
370029
  var sp = stackSave();
369823
370030
  try {
369824
- return Module["dynCall_jii"](index, a1, a2);
370031
+ return Module["dynCall_jiii"](index, a1, a2, a3);
369825
370032
  } catch (e) {
369826
370033
  stackRestore(sp);
369827
370034
  if (e !== e + 0)
@@ -369830,6 +370037,17 @@ ${e}`);
369830
370037
  return 0n;
369831
370038
  }
369832
370039
  }
370040
+ function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
370041
+ var sp = stackSave();
370042
+ try {
370043
+ Module["dynCall_viiiiiii"](index, a1, a2, a3, a4, a5, a6, a7);
370044
+ } catch (e) {
370045
+ stackRestore(sp);
370046
+ if (e !== e + 0)
370047
+ throw e;
370048
+ _setThrew(1, 0);
370049
+ }
370050
+ }
369833
370051
  Module["addRunDependency"] = addRunDependency;
369834
370052
  Module["removeRunDependency"] = removeRunDependency;
369835
370053
  Module["wasmExports"] = wasmExports;
@@ -369942,14 +370160,19 @@ ${e}`);
369942
370160
  return originalHashAddNode.apply(FS, arguments);
369943
370161
  };
369944
370162
  }
370163
+ PHPLoader["phpVersion"] = (() => {
370164
+ const [major, minor, patch] = phpVersionString13.split(".").map(Number);
370165
+ return { major, minor, patch };
370166
+ })();
369945
370167
  return PHPLoader;
369946
370168
  }
369947
- var dependencyFilename13, dependenciesTotalSize13;
370169
+ var dependencyFilename13, dependenciesTotalSize13, phpVersionString13;
369948
370170
  var init_php_8_02 = __esm({
369949
370171
  "packages/php-wasm/node/asyncify/php_8_0.js"() {
369950
370172
  "use strict";
369951
370173
  dependencyFilename13 = path13.join(__dirname + "/asyncify", "8_0_30", "php_8_0.wasm");
369952
- dependenciesTotalSize13 = 30898967;
370174
+ dependenciesTotalSize13 = 31315360;
370175
+ phpVersionString13 = "8.0.30";
369953
370176
  }
369954
370177
  });
369955
370178
 
@@ -370464,7 +370687,7 @@ function init15(RuntimeName, PHPLoader) {
370464
370687
  newDSO("__main__", 0, wasmImports);
370465
370688
  }
370466
370689
  };
370467
- var ___heap_base = 12029184;
370690
+ var ___heap_base = 13083904;
370468
370691
  var alignMemory = (size, alignment) => {
370469
370692
  return Math.ceil(size / alignment) * alignment;
370470
370693
  };
@@ -370606,7 +370829,7 @@ function init15(RuntimeName, PHPLoader) {
370606
370829
  };
370607
370830
  var wasmTableMirror = [];
370608
370831
  var wasmTable = new WebAssembly.Table({
370609
- initial: 15481,
370832
+ initial: 15610,
370610
370833
  element: "anyfunc"
370611
370834
  });
370612
370835
  var getWasmTableEntry = (funcPtr) => {
@@ -371228,11 +371451,11 @@ function init15(RuntimeName, PHPLoader) {
371228
371451
  { value: "i32", mutable: false },
371229
371452
  1024
371230
371453
  );
371231
- var ___stack_high = 12029184;
371232
- var ___stack_low = 11963648;
371454
+ var ___stack_high = 13083904;
371455
+ var ___stack_low = 12035328;
371233
371456
  var ___stack_pointer = new WebAssembly.Global(
371234
371457
  { value: "i32", mutable: true },
371235
- 12029184
371458
+ 13083904
371236
371459
  );
371237
371460
  var PATH = {
371238
371461
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -373128,9 +373351,6 @@ function init15(RuntimeName, PHPLoader) {
373128
373351
  if (FS.isMountpoint(node)) {
373129
373352
  throw new FS.ErrnoError(10);
373130
373353
  }
373131
- if (!FS.isDir(node.mode)) {
373132
- throw new FS.ErrnoError(54);
373133
- }
373134
373354
  }
373135
373355
  var mount = {
373136
373356
  type,
@@ -384532,9 +384752,6 @@ ${e}`);
384532
384752
  const buffer = _malloc(CHUNK_SIZE);
384533
384753
  HEAPU32[iov >> 2] = buffer;
384534
384754
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
384535
- if (typeof js_fd_read === "undefined") {
384536
- globalThis.js_fd_read = __asyncjs__js_fd_read;
384537
- }
384538
384755
  const interval = setInterval(pump2, 20);
384539
384756
  pump2();
384540
384757
  }
@@ -385930,7 +386147,7 @@ ${e}`);
385930
386147
  var addOnPreMain = (cb) => onMains.unshift(cb);
385931
386148
  var onExits = [];
385932
386149
  var addOnExit = (cb) => onExits.unshift(cb);
385933
- var STACK_SIZE = 65536;
386150
+ var STACK_SIZE = 1048576;
385934
386151
  var STACK_ALIGN = 16;
385935
386152
  var ASSERTIONS = 0;
385936
386153
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -395774,13 +395991,13 @@ ${e}`);
395774
395991
  Module["createContext"] = Browser.createContext;
395775
395992
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
395776
395993
  var ASM_CONSTS = {
395777
- 11104566: ($0) => {
395994
+ 11138685: ($0) => {
395778
395995
  if (!$0) {
395779
395996
  AL.alcErr = 40964;
395780
395997
  return 1;
395781
395998
  }
395782
395999
  },
395783
- 11104614: ($0) => {
396000
+ 11138733: ($0) => {
395784
396001
  if (!AL.currentCtx) {
395785
396002
  err("alGetProcAddress() called without a valid context");
395786
396003
  return 1;
@@ -395900,6 +396117,9 @@ ${e}`);
395900
396117
  while (true) {
395901
396118
  var mask = POLLNVAL;
395902
396119
  mask = SYSCALLS.DEFAULT_POLLMASK;
396120
+ if (FS.isClosed(stream)) {
396121
+ return ERRNO_CODES.EBADF;
396122
+ }
395903
396123
  if (stream.stream_ops?.poll) {
395904
396124
  mask = stream.stream_ops.poll(stream, -1);
395905
396125
  }
@@ -398392,6 +398612,10 @@ ${e}`);
398392
398612
  /** @export */
398393
398613
  invoke_iijiji,
398394
398614
  /** @export */
398615
+ invoke_iijj,
398616
+ /** @export */
398617
+ invoke_ji,
398618
+ /** @export */
398395
398619
  invoke_jii,
398396
398620
  /** @export */
398397
398621
  invoke_jiii,
@@ -398536,6 +398760,10 @@ ${e}`);
398536
398760
  var _ntohs = (a0) => (_ntohs = wasmExports["ntohs"])(a0);
398537
398761
  var _htonl = (a0) => (_htonl = wasmExports["htonl"])(a0);
398538
398762
  var _wasm_sleep = Module["_wasm_sleep"] = (a0) => (_wasm_sleep = Module["_wasm_sleep"] = wasmExports["wasm_sleep"])(a0);
398763
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
398764
+ a0,
398765
+ a1
398766
+ );
398539
398767
  var ___wrap_usleep = Module["___wrap_usleep"] = (a0) => (___wrap_usleep = Module["___wrap_usleep"] = wasmExports["__wrap_usleep"])(a0);
398540
398768
  var ___wrap_select = Module["___wrap_select"] = (a0, a1, a2, a3, a4) => (___wrap_select = Module["___wrap_select"] = wasmExports["__wrap_select"])(a0, a1, a2, a3, a4);
398541
398769
  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);
@@ -398754,19 +398982,10 @@ ${e}`);
398754
398982
  _setThrew(1, 0);
398755
398983
  }
398756
398984
  }
398757
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
398985
+ function invoke_vji(index, a1, a2) {
398758
398986
  var sp = stackSave();
398759
398987
  try {
398760
- return Module["dynCall_iiiiiiii"](
398761
- index,
398762
- a1,
398763
- a2,
398764
- a3,
398765
- a4,
398766
- a5,
398767
- a6,
398768
- a7
398769
- );
398988
+ Module["dynCall_vji"](index, a1, a2);
398770
398989
  } catch (e) {
398771
398990
  stackRestore(sp);
398772
398991
  if (e !== e + 0)
@@ -398774,32 +398993,34 @@ ${e}`);
398774
398993
  _setThrew(1, 0);
398775
398994
  }
398776
398995
  }
398777
- function invoke_iiji(index, a1, a2, a3) {
398996
+ function invoke_jii(index, a1, a2) {
398778
398997
  var sp = stackSave();
398779
398998
  try {
398780
- return Module["dynCall_iiji"](index, a1, a2, a3);
398999
+ return Module["dynCall_jii"](index, a1, a2);
398781
399000
  } catch (e) {
398782
399001
  stackRestore(sp);
398783
399002
  if (e !== e + 0)
398784
399003
  throw e;
398785
399004
  _setThrew(1, 0);
399005
+ return 0n;
398786
399006
  }
398787
399007
  }
398788
- function invoke_iijii(index, a1, a2, a3, a4) {
399008
+ function invoke_ji(index, a1) {
398789
399009
  var sp = stackSave();
398790
399010
  try {
398791
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
399011
+ return Module["dynCall_ji"](index, a1);
398792
399012
  } catch (e) {
398793
399013
  stackRestore(sp);
398794
399014
  if (e !== e + 0)
398795
399015
  throw e;
398796
399016
  _setThrew(1, 0);
399017
+ return 0n;
398797
399018
  }
398798
399019
  }
398799
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
399020
+ function invoke_v(index) {
398800
399021
  var sp = stackSave();
398801
399022
  try {
398802
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
399023
+ Module["dynCall_v"](index);
398803
399024
  } catch (e) {
398804
399025
  stackRestore(sp);
398805
399026
  if (e !== e + 0)
@@ -398807,10 +399028,10 @@ ${e}`);
398807
399028
  _setThrew(1, 0);
398808
399029
  }
398809
399030
  }
398810
- function invoke_v(index) {
399031
+ function invoke_iijj(index, a1, a2, a3) {
398811
399032
  var sp = stackSave();
398812
399033
  try {
398813
- Module["dynCall_v"](index);
399034
+ return Module["dynCall_iijj"](index, a1, a2, a3);
398814
399035
  } catch (e) {
398815
399036
  stackRestore(sp);
398816
399037
  if (e !== e + 0)
@@ -398818,10 +399039,19 @@ ${e}`);
398818
399039
  _setThrew(1, 0);
398819
399040
  }
398820
399041
  }
398821
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
399042
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
398822
399043
  var sp = stackSave();
398823
399044
  try {
398824
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
399045
+ return Module["dynCall_iiiiiiii"](
399046
+ index,
399047
+ a1,
399048
+ a2,
399049
+ a3,
399050
+ a4,
399051
+ a5,
399052
+ a6,
399053
+ a7
399054
+ );
398825
399055
  } catch (e) {
398826
399056
  stackRestore(sp);
398827
399057
  if (e !== e + 0)
@@ -398829,10 +399059,10 @@ ${e}`);
398829
399059
  _setThrew(1, 0);
398830
399060
  }
398831
399061
  }
398832
- function invoke_vji(index, a1, a2) {
399062
+ function invoke_iiji(index, a1, a2, a3) {
398833
399063
  var sp = stackSave();
398834
399064
  try {
398835
- Module["dynCall_vji"](index, a1, a2);
399065
+ return Module["dynCall_iiji"](index, a1, a2, a3);
398836
399066
  } catch (e) {
398837
399067
  stackRestore(sp);
398838
399068
  if (e !== e + 0)
@@ -398840,10 +399070,10 @@ ${e}`);
398840
399070
  _setThrew(1, 0);
398841
399071
  }
398842
399072
  }
398843
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
399073
+ function invoke_iijii(index, a1, a2, a3, a4) {
398844
399074
  var sp = stackSave();
398845
399075
  try {
398846
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
399076
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
398847
399077
  } catch (e) {
398848
399078
  stackRestore(sp);
398849
399079
  if (e !== e + 0)
@@ -398851,10 +399081,10 @@ ${e}`);
398851
399081
  _setThrew(1, 0);
398852
399082
  }
398853
399083
  }
398854
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
399084
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
398855
399085
  var sp = stackSave();
398856
399086
  try {
398857
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
399087
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
398858
399088
  } catch (e) {
398859
399089
  stackRestore(sp);
398860
399090
  if (e !== e + 0)
@@ -398862,10 +399092,10 @@ ${e}`);
398862
399092
  _setThrew(1, 0);
398863
399093
  }
398864
399094
  }
398865
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
399095
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
398866
399096
  var sp = stackSave();
398867
399097
  try {
398868
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
399098
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
398869
399099
  } catch (e) {
398870
399100
  stackRestore(sp);
398871
399101
  if (e !== e + 0)
@@ -398873,22 +399103,43 @@ ${e}`);
398873
399103
  _setThrew(1, 0);
398874
399104
  }
398875
399105
  }
398876
- function invoke_jiii(index, a1, a2, a3) {
399106
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
398877
399107
  var sp = stackSave();
398878
399108
  try {
398879
- return Module["dynCall_jiii"](index, a1, a2, a3);
399109
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
398880
399110
  } catch (e) {
398881
399111
  stackRestore(sp);
398882
399112
  if (e !== e + 0)
398883
399113
  throw e;
398884
399114
  _setThrew(1, 0);
398885
- return 0n;
398886
399115
  }
398887
399116
  }
398888
- function invoke_jii(index, a1, a2) {
399117
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
398889
399118
  var sp = stackSave();
398890
399119
  try {
398891
- return Module["dynCall_jii"](index, a1, a2);
399120
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
399121
+ } catch (e) {
399122
+ stackRestore(sp);
399123
+ if (e !== e + 0)
399124
+ throw e;
399125
+ _setThrew(1, 0);
399126
+ }
399127
+ }
399128
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
399129
+ var sp = stackSave();
399130
+ try {
399131
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
399132
+ } catch (e) {
399133
+ stackRestore(sp);
399134
+ if (e !== e + 0)
399135
+ throw e;
399136
+ _setThrew(1, 0);
399137
+ }
399138
+ }
399139
+ function invoke_jiii(index, a1, a2, a3) {
399140
+ var sp = stackSave();
399141
+ try {
399142
+ return Module["dynCall_jiii"](index, a1, a2, a3);
398892
399143
  } catch (e) {
398893
399144
  stackRestore(sp);
398894
399145
  if (e !== e + 0)
@@ -399009,14 +399260,19 @@ ${e}`);
399009
399260
  return originalHashAddNode.apply(FS, arguments);
399010
399261
  };
399011
399262
  }
399263
+ PHPLoader["phpVersion"] = (() => {
399264
+ const [major, minor, patch] = phpVersionString14.split(".").map(Number);
399265
+ return { major, minor, patch };
399266
+ })();
399012
399267
  return PHPLoader;
399013
399268
  }
399014
- var dependencyFilename14, dependenciesTotalSize14;
399269
+ var dependencyFilename14, dependenciesTotalSize14, phpVersionString14;
399015
399270
  var init_php_7_42 = __esm({
399016
399271
  "packages/php-wasm/node/asyncify/php_7_4.js"() {
399017
399272
  "use strict";
399018
399273
  dependencyFilename14 = path14.join(__dirname + "/asyncify", "7_4_33", "php_7_4.wasm");
399019
- dependenciesTotalSize14 = 29675281;
399274
+ dependenciesTotalSize14 = 30107729;
399275
+ phpVersionString14 = "7.4.33";
399020
399276
  }
399021
399277
  });
399022
399278
 
@@ -399531,7 +399787,7 @@ function init16(RuntimeName, PHPLoader) {
399531
399787
  newDSO("__main__", 0, wasmImports);
399532
399788
  }
399533
399789
  };
399534
- var ___heap_base = 11704e3;
399790
+ var ___heap_base = 12759296;
399535
399791
  var alignMemory = (size, alignment) => {
399536
399792
  return Math.ceil(size / alignment) * alignment;
399537
399793
  };
@@ -399673,7 +399929,7 @@ function init16(RuntimeName, PHPLoader) {
399673
399929
  };
399674
399930
  var wasmTableMirror = [];
399675
399931
  var wasmTable = new WebAssembly.Table({
399676
- initial: 15715,
399932
+ initial: 15819,
399677
399933
  element: "anyfunc"
399678
399934
  });
399679
399935
  var getWasmTableEntry = (funcPtr) => {
@@ -400295,11 +400551,11 @@ function init16(RuntimeName, PHPLoader) {
400295
400551
  { value: "i32", mutable: false },
400296
400552
  1024
400297
400553
  );
400298
- var ___stack_high = 11704e3;
400299
- var ___stack_low = 11638464;
400554
+ var ___stack_high = 12759296;
400555
+ var ___stack_low = 11710720;
400300
400556
  var ___stack_pointer = new WebAssembly.Global(
400301
400557
  { value: "i32", mutable: true },
400302
- 11704e3
400558
+ 12759296
400303
400559
  );
400304
400560
  var PATH = {
400305
400561
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -402195,9 +402451,6 @@ function init16(RuntimeName, PHPLoader) {
402195
402451
  if (FS.isMountpoint(node)) {
402196
402452
  throw new FS.ErrnoError(10);
402197
402453
  }
402198
- if (!FS.isDir(node.mode)) {
402199
- throw new FS.ErrnoError(54);
402200
- }
402201
402454
  }
402202
402455
  var mount = {
402203
402456
  type,
@@ -413599,9 +413852,6 @@ ${e}`);
413599
413852
  const buffer = _malloc(CHUNK_SIZE);
413600
413853
  HEAPU32[iov >> 2] = buffer;
413601
413854
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
413602
- if (typeof js_fd_read === "undefined") {
413603
- globalThis.js_fd_read = __asyncjs__js_fd_read;
413604
- }
413605
413855
  const interval = setInterval(pump2, 20);
413606
413856
  pump2();
413607
413857
  }
@@ -414994,7 +415244,7 @@ ${e}`);
414994
415244
  var addOnPreMain = (cb) => onMains.unshift(cb);
414995
415245
  var onExits = [];
414996
415246
  var addOnExit = (cb) => onExits.unshift(cb);
414997
- var STACK_SIZE = 65536;
415247
+ var STACK_SIZE = 1048576;
414998
415248
  var STACK_ALIGN = 16;
414999
415249
  var ASSERTIONS = 0;
415000
415250
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -424841,13 +425091,13 @@ ${e}`);
424841
425091
  Module["createContext"] = Browser.createContext;
424842
425092
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
424843
425093
  var ASM_CONSTS = {
424844
- 10780086: ($0) => {
425094
+ 10814813: ($0) => {
424845
425095
  if (!$0) {
424846
425096
  AL.alcErr = 40964;
424847
425097
  return 1;
424848
425098
  }
424849
425099
  },
424850
- 10780134: ($0) => {
425100
+ 10814861: ($0) => {
424851
425101
  if (!AL.currentCtx) {
424852
425102
  err("alGetProcAddress() called without a valid context");
424853
425103
  return 1;
@@ -424967,6 +425217,9 @@ ${e}`);
424967
425217
  while (true) {
424968
425218
  var mask = POLLNVAL;
424969
425219
  mask = SYSCALLS.DEFAULT_POLLMASK;
425220
+ if (FS.isClosed(stream)) {
425221
+ return ERRNO_CODES.EBADF;
425222
+ }
424970
425223
  if (stream.stream_ops?.poll) {
424971
425224
  mask = stream.stream_ops.poll(stream, -1);
424972
425225
  }
@@ -427459,6 +427712,8 @@ ${e}`);
427459
427712
  /** @export */
427460
427713
  invoke_iijiji,
427461
427714
  /** @export */
427715
+ invoke_ji,
427716
+ /** @export */
427462
427717
  invoke_jii,
427463
427718
  /** @export */
427464
427719
  invoke_jiii,
@@ -427632,6 +427887,10 @@ ${e}`);
427632
427887
  a0,
427633
427888
  a1
427634
427889
  );
427890
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
427891
+ a0,
427892
+ a1
427893
+ );
427635
427894
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports["memcpy"])(a0, a1, a2);
427636
427895
  var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports["__funcs_on_exit"])();
427637
427896
  var ___dl_seterr = (a0, a1) => (___dl_seterr = wasmExports["__dl_seterr"])(a0, a1);
@@ -427821,19 +428080,10 @@ ${e}`);
427821
428080
  _setThrew(1, 0);
427822
428081
  }
427823
428082
  }
427824
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
428083
+ function invoke_vji(index, a1, a2) {
427825
428084
  var sp = stackSave();
427826
428085
  try {
427827
- return Module["dynCall_iiiiiiii"](
427828
- index,
427829
- a1,
427830
- a2,
427831
- a3,
427832
- a4,
427833
- a5,
427834
- a6,
427835
- a7
427836
- );
428086
+ Module["dynCall_vji"](index, a1, a2);
427837
428087
  } catch (e) {
427838
428088
  stackRestore(sp);
427839
428089
  if (e !== e + 0)
@@ -427841,32 +428091,34 @@ ${e}`);
427841
428091
  _setThrew(1, 0);
427842
428092
  }
427843
428093
  }
427844
- function invoke_iiji(index, a1, a2, a3) {
428094
+ function invoke_jii(index, a1, a2) {
427845
428095
  var sp = stackSave();
427846
428096
  try {
427847
- return Module["dynCall_iiji"](index, a1, a2, a3);
428097
+ return Module["dynCall_jii"](index, a1, a2);
427848
428098
  } catch (e) {
427849
428099
  stackRestore(sp);
427850
428100
  if (e !== e + 0)
427851
428101
  throw e;
427852
428102
  _setThrew(1, 0);
428103
+ return 0n;
427853
428104
  }
427854
428105
  }
427855
- function invoke_iijii(index, a1, a2, a3, a4) {
428106
+ function invoke_ji(index, a1) {
427856
428107
  var sp = stackSave();
427857
428108
  try {
427858
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
428109
+ return Module["dynCall_ji"](index, a1);
427859
428110
  } catch (e) {
427860
428111
  stackRestore(sp);
427861
428112
  if (e !== e + 0)
427862
428113
  throw e;
427863
428114
  _setThrew(1, 0);
428115
+ return 0n;
427864
428116
  }
427865
428117
  }
427866
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
428118
+ function invoke_v(index) {
427867
428119
  var sp = stackSave();
427868
428120
  try {
427869
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
428121
+ Module["dynCall_v"](index);
427870
428122
  } catch (e) {
427871
428123
  stackRestore(sp);
427872
428124
  if (e !== e + 0)
@@ -427874,10 +428126,19 @@ ${e}`);
427874
428126
  _setThrew(1, 0);
427875
428127
  }
427876
428128
  }
427877
- function invoke_v(index) {
428129
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
427878
428130
  var sp = stackSave();
427879
428131
  try {
427880
- Module["dynCall_v"](index);
428132
+ return Module["dynCall_iiiiiiii"](
428133
+ index,
428134
+ a1,
428135
+ a2,
428136
+ a3,
428137
+ a4,
428138
+ a5,
428139
+ a6,
428140
+ a7
428141
+ );
427881
428142
  } catch (e) {
427882
428143
  stackRestore(sp);
427883
428144
  if (e !== e + 0)
@@ -427885,10 +428146,10 @@ ${e}`);
427885
428146
  _setThrew(1, 0);
427886
428147
  }
427887
428148
  }
427888
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
428149
+ function invoke_iiji(index, a1, a2, a3) {
427889
428150
  var sp = stackSave();
427890
428151
  try {
427891
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
428152
+ return Module["dynCall_iiji"](index, a1, a2, a3);
427892
428153
  } catch (e) {
427893
428154
  stackRestore(sp);
427894
428155
  if (e !== e + 0)
@@ -427896,10 +428157,10 @@ ${e}`);
427896
428157
  _setThrew(1, 0);
427897
428158
  }
427898
428159
  }
427899
- function invoke_vji(index, a1, a2) {
428160
+ function invoke_iijii(index, a1, a2, a3, a4) {
427900
428161
  var sp = stackSave();
427901
428162
  try {
427902
- Module["dynCall_vji"](index, a1, a2);
428163
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
427903
428164
  } catch (e) {
427904
428165
  stackRestore(sp);
427905
428166
  if (e !== e + 0)
@@ -427907,10 +428168,10 @@ ${e}`);
427907
428168
  _setThrew(1, 0);
427908
428169
  }
427909
428170
  }
427910
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
428171
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
427911
428172
  var sp = stackSave();
427912
428173
  try {
427913
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
428174
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
427914
428175
  } catch (e) {
427915
428176
  stackRestore(sp);
427916
428177
  if (e !== e + 0)
@@ -427918,10 +428179,10 @@ ${e}`);
427918
428179
  _setThrew(1, 0);
427919
428180
  }
427920
428181
  }
427921
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
428182
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
427922
428183
  var sp = stackSave();
427923
428184
  try {
427924
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
428185
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
427925
428186
  } catch (e) {
427926
428187
  stackRestore(sp);
427927
428188
  if (e !== e + 0)
@@ -427929,10 +428190,10 @@ ${e}`);
427929
428190
  _setThrew(1, 0);
427930
428191
  }
427931
428192
  }
427932
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
428193
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
427933
428194
  var sp = stackSave();
427934
428195
  try {
427935
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
428196
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
427936
428197
  } catch (e) {
427937
428198
  stackRestore(sp);
427938
428199
  if (e !== e + 0)
@@ -427940,22 +428201,32 @@ ${e}`);
427940
428201
  _setThrew(1, 0);
427941
428202
  }
427942
428203
  }
427943
- function invoke_jiii(index, a1, a2, a3) {
428204
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
427944
428205
  var sp = stackSave();
427945
428206
  try {
427946
- return Module["dynCall_jiii"](index, a1, a2, a3);
428207
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
427947
428208
  } catch (e) {
427948
428209
  stackRestore(sp);
427949
428210
  if (e !== e + 0)
427950
428211
  throw e;
427951
428212
  _setThrew(1, 0);
427952
- return 0n;
427953
428213
  }
427954
428214
  }
427955
- function invoke_jii(index, a1, a2) {
428215
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
427956
428216
  var sp = stackSave();
427957
428217
  try {
427958
- return Module["dynCall_jii"](index, a1, a2);
428218
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
428219
+ } catch (e) {
428220
+ stackRestore(sp);
428221
+ if (e !== e + 0)
428222
+ throw e;
428223
+ _setThrew(1, 0);
428224
+ }
428225
+ }
428226
+ function invoke_jiii(index, a1, a2, a3) {
428227
+ var sp = stackSave();
428228
+ try {
428229
+ return Module["dynCall_jiii"](index, a1, a2, a3);
427959
428230
  } catch (e) {
427960
428231
  stackRestore(sp);
427961
428232
  if (e !== e + 0)
@@ -428076,14 +428347,19 @@ ${e}`);
428076
428347
  return originalHashAddNode.apply(FS, arguments);
428077
428348
  };
428078
428349
  }
428350
+ PHPLoader["phpVersion"] = (() => {
428351
+ const [major, minor, patch] = phpVersionString15.split(".").map(Number);
428352
+ return { major, minor, patch };
428353
+ })();
428079
428354
  return PHPLoader;
428080
428355
  }
428081
- var dependencyFilename15, dependenciesTotalSize15;
428356
+ var dependencyFilename15, dependenciesTotalSize15, phpVersionString15;
428082
428357
  var init_php_7_32 = __esm({
428083
428358
  "packages/php-wasm/node/asyncify/php_7_3.js"() {
428084
428359
  "use strict";
428085
428360
  dependencyFilename15 = path15.join(__dirname + "/asyncify", "7_3_33", "php_7_3.wasm");
428086
- dependenciesTotalSize15 = 29282202;
428361
+ dependenciesTotalSize15 = 29695998;
428362
+ phpVersionString15 = "7.3.33";
428087
428363
  }
428088
428364
  });
428089
428365
 
@@ -428598,7 +428874,7 @@ function init17(RuntimeName, PHPLoader) {
428598
428874
  newDSO("__main__", 0, wasmImports);
428599
428875
  }
428600
428876
  };
428601
- var ___heap_base = 11378752;
428877
+ var ___heap_base = 12423744;
428602
428878
  var alignMemory = (size, alignment) => {
428603
428879
  return Math.ceil(size / alignment) * alignment;
428604
428880
  };
@@ -428740,7 +429016,7 @@ function init17(RuntimeName, PHPLoader) {
428740
429016
  };
428741
429017
  var wasmTableMirror = [];
428742
429018
  var wasmTable = new WebAssembly.Table({
428743
- initial: 15750,
429019
+ initial: 15851,
428744
429020
  element: "anyfunc"
428745
429021
  });
428746
429022
  var getWasmTableEntry = (funcPtr) => {
@@ -429362,11 +429638,11 @@ function init17(RuntimeName, PHPLoader) {
429362
429638
  { value: "i32", mutable: false },
429363
429639
  1024
429364
429640
  );
429365
- var ___stack_high = 11378752;
429366
- var ___stack_low = 11313216;
429641
+ var ___stack_high = 12423744;
429642
+ var ___stack_low = 11375168;
429367
429643
  var ___stack_pointer = new WebAssembly.Global(
429368
429644
  { value: "i32", mutable: true },
429369
- 11378752
429645
+ 12423744
429370
429646
  );
429371
429647
  var PATH = {
429372
429648
  isAbs: (path33) => path33.charAt(0) === "/",
@@ -431262,9 +431538,6 @@ function init17(RuntimeName, PHPLoader) {
431262
431538
  if (FS.isMountpoint(node)) {
431263
431539
  throw new FS.ErrnoError(10);
431264
431540
  }
431265
- if (!FS.isDir(node.mode)) {
431266
- throw new FS.ErrnoError(54);
431267
- }
431268
431541
  }
431269
431542
  var mount = {
431270
431543
  type,
@@ -442666,9 +442939,6 @@ ${e}`);
442666
442939
  const buffer = _malloc(CHUNK_SIZE);
442667
442940
  HEAPU32[iov >> 2] = buffer;
442668
442941
  HEAPU32[iov + 4 >> 2] = CHUNK_SIZE;
442669
- if (typeof js_fd_read === "undefined") {
442670
- globalThis.js_fd_read = __asyncjs__js_fd_read;
442671
- }
442672
442942
  const interval = setInterval(pump2, 20);
442673
442943
  pump2();
442674
442944
  }
@@ -444061,7 +444331,7 @@ ${e}`);
444061
444331
  var addOnPreMain = (cb) => onMains.unshift(cb);
444062
444332
  var onExits = [];
444063
444333
  var addOnExit = (cb) => onExits.unshift(cb);
444064
- var STACK_SIZE = 65536;
444334
+ var STACK_SIZE = 1048576;
444065
444335
  var STACK_ALIGN = 16;
444066
444336
  var ASSERTIONS = 0;
444067
444337
  var cwrap = (ident, returnType, argTypes, opts) => {
@@ -453908,13 +454178,13 @@ ${e}`);
453908
454178
  Module["createContext"] = Browser.createContext;
453909
454179
  registerPostMainLoop(() => SDL.audio?.queueNewAudioData?.());
453910
454180
  var ASM_CONSTS = {
453911
- 10384966: ($0) => {
454181
+ 10409421: ($0) => {
453912
454182
  if (!$0) {
453913
454183
  AL.alcErr = 40964;
453914
454184
  return 1;
453915
454185
  }
453916
454186
  },
453917
- 10385014: ($0) => {
454187
+ 10409469: ($0) => {
453918
454188
  if (!AL.currentCtx) {
453919
454189
  err("alGetProcAddress() called without a valid context");
453920
454190
  return 1;
@@ -454034,6 +454304,9 @@ ${e}`);
454034
454304
  while (true) {
454035
454305
  var mask = POLLNVAL;
454036
454306
  mask = SYSCALLS.DEFAULT_POLLMASK;
454307
+ if (FS.isClosed(stream)) {
454308
+ return ERRNO_CODES.EBADF;
454309
+ }
454037
454310
  if (stream.stream_ops?.poll) {
454038
454311
  mask = stream.stream_ops.poll(stream, -1);
454039
454312
  }
@@ -456699,6 +456972,10 @@ ${e}`);
456699
456972
  a0,
456700
456973
  a1
456701
456974
  );
456975
+ var _initgroups = Module["_initgroups"] = (a0, a1) => (_initgroups = Module["_initgroups"] = wasmExports["initgroups"])(
456976
+ a0,
456977
+ a1
456978
+ );
456702
456979
  var _memcpy = (a0, a1, a2) => (_memcpy = wasmExports["memcpy"])(a0, a1, a2);
456703
456980
  var ___funcs_on_exit = () => (___funcs_on_exit = wasmExports["__funcs_on_exit"])();
456704
456981
  var ___dl_seterr = (a0, a1) => (___dl_seterr = wasmExports["__dl_seterr"])(a0, a1);
@@ -456888,19 +457165,10 @@ ${e}`);
456888
457165
  _setThrew(1, 0);
456889
457166
  }
456890
457167
  }
456891
- function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
457168
+ function invoke_vji(index, a1, a2) {
456892
457169
  var sp = stackSave();
456893
457170
  try {
456894
- return Module["dynCall_iiiiiiii"](
456895
- index,
456896
- a1,
456897
- a2,
456898
- a3,
456899
- a4,
456900
- a5,
456901
- a6,
456902
- a7
456903
- );
457171
+ Module["dynCall_vji"](index, a1, a2);
456904
457172
  } catch (e) {
456905
457173
  stackRestore(sp);
456906
457174
  if (e !== e + 0)
@@ -456908,21 +457176,22 @@ ${e}`);
456908
457176
  _setThrew(1, 0);
456909
457177
  }
456910
457178
  }
456911
- function invoke_iiji(index, a1, a2, a3) {
457179
+ function invoke_jii(index, a1, a2) {
456912
457180
  var sp = stackSave();
456913
457181
  try {
456914
- return Module["dynCall_iiji"](index, a1, a2, a3);
457182
+ return Module["dynCall_jii"](index, a1, a2);
456915
457183
  } catch (e) {
456916
457184
  stackRestore(sp);
456917
457185
  if (e !== e + 0)
456918
457186
  throw e;
456919
457187
  _setThrew(1, 0);
457188
+ return 0n;
456920
457189
  }
456921
457190
  }
456922
- function invoke_iijii(index, a1, a2, a3, a4) {
457191
+ function invoke_v(index) {
456923
457192
  var sp = stackSave();
456924
457193
  try {
456925
- return Module["dynCall_iijii"](index, a1, a2, a3, a4);
457194
+ Module["dynCall_v"](index);
456926
457195
  } catch (e) {
456927
457196
  stackRestore(sp);
456928
457197
  if (e !== e + 0)
@@ -456930,10 +457199,19 @@ ${e}`);
456930
457199
  _setThrew(1, 0);
456931
457200
  }
456932
457201
  }
456933
- function invoke_iijiji(index, a1, a2, a3, a4, a5) {
457202
+ function invoke_iiiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
456934
457203
  var sp = stackSave();
456935
457204
  try {
456936
- return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
457205
+ return Module["dynCall_iiiiiiii"](
457206
+ index,
457207
+ a1,
457208
+ a2,
457209
+ a3,
457210
+ a4,
457211
+ a5,
457212
+ a6,
457213
+ a7
457214
+ );
456937
457215
  } catch (e) {
456938
457216
  stackRestore(sp);
456939
457217
  if (e !== e + 0)
@@ -456941,10 +457219,10 @@ ${e}`);
456941
457219
  _setThrew(1, 0);
456942
457220
  }
456943
457221
  }
456944
- function invoke_v(index) {
457222
+ function invoke_iiji(index, a1, a2, a3) {
456945
457223
  var sp = stackSave();
456946
457224
  try {
456947
- Module["dynCall_v"](index);
457225
+ return Module["dynCall_iiji"](index, a1, a2, a3);
456948
457226
  } catch (e) {
456949
457227
  stackRestore(sp);
456950
457228
  if (e !== e + 0)
@@ -456952,10 +457230,10 @@ ${e}`);
456952
457230
  _setThrew(1, 0);
456953
457231
  }
456954
457232
  }
456955
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
457233
+ function invoke_iijii(index, a1, a2, a3, a4) {
456956
457234
  var sp = stackSave();
456957
457235
  try {
456958
- return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
457236
+ return Module["dynCall_iijii"](index, a1, a2, a3, a4);
456959
457237
  } catch (e) {
456960
457238
  stackRestore(sp);
456961
457239
  if (e !== e + 0)
@@ -456963,10 +457241,10 @@ ${e}`);
456963
457241
  _setThrew(1, 0);
456964
457242
  }
456965
457243
  }
456966
- function invoke_vji(index, a1, a2) {
457244
+ function invoke_iijiji(index, a1, a2, a3, a4, a5) {
456967
457245
  var sp = stackSave();
456968
457246
  try {
456969
- Module["dynCall_vji"](index, a1, a2);
457247
+ return Module["dynCall_iijiji"](index, a1, a2, a3, a4, a5);
456970
457248
  } catch (e) {
456971
457249
  stackRestore(sp);
456972
457250
  if (e !== e + 0)
@@ -456974,10 +457252,10 @@ ${e}`);
456974
457252
  _setThrew(1, 0);
456975
457253
  }
456976
457254
  }
456977
- function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
457255
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
456978
457256
  var sp = stackSave();
456979
457257
  try {
456980
- Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
457258
+ return Module["dynCall_iiiiiii"](index, a1, a2, a3, a4, a5, a6);
456981
457259
  } catch (e) {
456982
457260
  stackRestore(sp);
456983
457261
  if (e !== e + 0)
@@ -456985,10 +457263,10 @@ ${e}`);
456985
457263
  _setThrew(1, 0);
456986
457264
  }
456987
457265
  }
456988
- function invoke_viijii(index, a1, a2, a3, a4, a5) {
457266
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
456989
457267
  var sp = stackSave();
456990
457268
  try {
456991
- Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
457269
+ Module["dynCall_viiiiii"](index, a1, a2, a3, a4, a5, a6);
456992
457270
  } catch (e) {
456993
457271
  stackRestore(sp);
456994
457272
  if (e !== e + 0)
@@ -456996,10 +457274,10 @@ ${e}`);
456996
457274
  _setThrew(1, 0);
456997
457275
  }
456998
457276
  }
456999
- function invoke_viidii(index, a1, a2, a3, a4, a5) {
457277
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
457000
457278
  var sp = stackSave();
457001
457279
  try {
457002
- Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
457280
+ Module["dynCall_viijii"](index, a1, a2, a3, a4, a5);
457003
457281
  } catch (e) {
457004
457282
  stackRestore(sp);
457005
457283
  if (e !== e + 0)
@@ -457007,22 +457285,21 @@ ${e}`);
457007
457285
  _setThrew(1, 0);
457008
457286
  }
457009
457287
  }
457010
- function invoke_jiii(index, a1, a2, a3) {
457288
+ function invoke_viidii(index, a1, a2, a3, a4, a5) {
457011
457289
  var sp = stackSave();
457012
457290
  try {
457013
- return Module["dynCall_jiii"](index, a1, a2, a3);
457291
+ Module["dynCall_viidii"](index, a1, a2, a3, a4, a5);
457014
457292
  } catch (e) {
457015
457293
  stackRestore(sp);
457016
457294
  if (e !== e + 0)
457017
457295
  throw e;
457018
457296
  _setThrew(1, 0);
457019
- return 0n;
457020
457297
  }
457021
457298
  }
457022
- function invoke_jii(index, a1, a2) {
457299
+ function invoke_jiii(index, a1, a2, a3) {
457023
457300
  var sp = stackSave();
457024
457301
  try {
457025
- return Module["dynCall_jii"](index, a1, a2);
457302
+ return Module["dynCall_jiii"](index, a1, a2, a3);
457026
457303
  } catch (e) {
457027
457304
  stackRestore(sp);
457028
457305
  if (e !== e + 0)
@@ -457143,14 +457420,19 @@ ${e}`);
457143
457420
  return originalHashAddNode.apply(FS, arguments);
457144
457421
  };
457145
457422
  }
457423
+ PHPLoader["phpVersion"] = (() => {
457424
+ const [major, minor, patch] = phpVersionString16.split(".").map(Number);
457425
+ return { major, minor, patch };
457426
+ })();
457146
457427
  return PHPLoader;
457147
457428
  }
457148
- var dependencyFilename16, dependenciesTotalSize16;
457429
+ var dependencyFilename16, dependenciesTotalSize16, phpVersionString16;
457149
457430
  var init_php_7_22 = __esm({
457150
457431
  "packages/php-wasm/node/asyncify/php_7_2.js"() {
457151
457432
  "use strict";
457152
457433
  dependencyFilename16 = path16.join(__dirname + "/asyncify", "7_2_34", "php_7_2.wasm");
457153
- dependenciesTotalSize16 = 29015588;
457434
+ dependenciesTotalSize16 = 29379158;
457435
+ phpVersionString16 = "7.2.34";
457154
457436
  }
457155
457437
  });
457156
457438
 
@@ -457429,9 +457711,9 @@ async function getPHPLoaderModule(version = LatestSupportedPHPVersion) {
457429
457711
 
457430
457712
  // packages/php-wasm/node/src/lib/networking/outbound-ws-to-tcp-proxy.ts
457431
457713
  import * as dns from "dns";
457432
- import * as util from "node:util";
457433
- import * as net2 from "net";
457434
457714
  import * as http from "http";
457715
+ import * as net2 from "net";
457716
+ import * as util from "node:util";
457435
457717
  import { WebSocketServer } from "ws";
457436
457718
 
457437
457719
  // packages/php-wasm/node/src/lib/networking/utils.ts
@@ -457544,6 +457826,12 @@ async function onWsConnect(client, request) {
457544
457826
  client.close(3e3);
457545
457827
  return;
457546
457828
  }
457829
+ if (reqTargetPort < 0 || reqTargetPort > 65535) {
457830
+ clientLog("Invalid port number: " + reqTargetPort);
457831
+ client.send([]);
457832
+ client.close(3e3);
457833
+ return;
457834
+ }
457547
457835
  let target;
457548
457836
  const recvQueue = [];
457549
457837
  function flushMessagesQueue() {
@@ -457597,7 +457885,9 @@ async function onWsConnect(client, request) {
457597
457885
  } catch (e) {
457598
457886
  clientLog("can't resolve " + reqTargetHost + " due to:", e);
457599
457887
  client.send([]);
457600
- client.close(3e3);
457888
+ setTimeout(() => {
457889
+ client.close(3e3);
457890
+ });
457601
457891
  return;
457602
457892
  }
457603
457893
  } else {
@@ -457624,8 +457914,14 @@ async function onWsConnect(client, request) {
457624
457914
  });
457625
457915
  target.on("error", function(e) {
457626
457916
  clientLog("target connection error", e);
457627
- target.end();
457628
- client.close(3e3);
457917
+ client.send([]);
457918
+ setTimeout(() => {
457919
+ client.close(3e3);
457920
+ try {
457921
+ target.end();
457922
+ } catch {
457923
+ }
457924
+ });
457629
457925
  });
457630
457926
  }
457631
457927
 
@@ -457875,6 +458171,7 @@ async function withXdebug(version = LatestSupportedPHPVersion3, options) {
457875
458171
 
457876
458172
  // packages/php-wasm/node/src/lib/load-runtime.ts
457877
458173
  import { joinPaths } from "@php-wasm/util";
458174
+ import { dirname } from "path";
457878
458175
  async function loadNodeRuntime(phpVersion, options = {}) {
457879
458176
  let emscriptenOptions = {
457880
458177
  /**
@@ -457899,7 +458196,17 @@ async function loadNodeRuntime(phpVersion, options = {}) {
457899
458196
  absoluteSourcePath
457900
458197
  );
457901
458198
  if (!FSHelpers3.fileExists(phpRuntime.FS, symlinkPath) && fs4.existsSync(absoluteSourcePath)) {
457902
- phpRuntime.FS.mkdirTree(symlinkPath);
458199
+ const sourceStat = fs4.statSync(absoluteSourcePath);
458200
+ if (sourceStat.isDirectory()) {
458201
+ phpRuntime.FS.mkdirTree(symlinkPath);
458202
+ } else if (sourceStat.isFile()) {
458203
+ phpRuntime.FS.mkdirTree(dirname(symlinkPath));
458204
+ phpRuntime.FS.writeFile(symlinkPath, "");
458205
+ } else {
458206
+ throw new Error(
458207
+ "Unsupported file type. PHP-wasm supports only symlinks that link to files, directories, or symlinks."
458208
+ );
458209
+ }
457903
458210
  phpRuntime.FS.mount(
457904
458211
  phpRuntime.FS.filesystems.NODEFS,
457905
458212
  { root: absoluteSourcePath },
@@ -457928,14 +458235,53 @@ async function loadNodeRuntime(phpVersion, options = {}) {
457928
458235
  }
457929
458236
 
457930
458237
  // packages/php-wasm/node/src/lib/use-host-filesystem.ts
457931
- import { lstatSync, readdirSync } from "node:fs";
458238
+ import { lstatSync as lstatSync2, readdirSync } from "node:fs";
457932
458239
 
457933
458240
  // packages/php-wasm/node/src/lib/node-fs-mount.ts
458241
+ import {
458242
+ FSHelpers as FSHelpers4
458243
+ } from "@php-wasm/universal";
458244
+ import { lstatSync } from "fs";
458245
+ import { dirname as dirname2 } from "path";
457934
458246
  function createNodeFsMountHandler(localPath) {
457935
- return async function(php, FS2, vfsMountPoint) {
458247
+ return function(php, FS2, vfsMountPoint) {
458248
+ let removeVfsNode = false;
458249
+ if (!FSHelpers4.fileExists(FS2, vfsMountPoint)) {
458250
+ const lstat = lstatSync(localPath);
458251
+ if (lstat.isFile() || lstat.isSymbolicLink()) {
458252
+ FS2.mkdirTree(dirname2(vfsMountPoint));
458253
+ FS2.writeFile(vfsMountPoint, "");
458254
+ } else if (lstat.isDirectory()) {
458255
+ FS2.mkdirTree(vfsMountPoint);
458256
+ } else {
458257
+ throw new Error(
458258
+ "Unsupported file type. PHP-wasm supports only symlinks that link to files, directories, or symlinks."
458259
+ );
458260
+ }
458261
+ removeVfsNode = true;
458262
+ }
458263
+ let lookup3;
458264
+ try {
458265
+ lookup3 = FS2.lookupPath(vfsMountPoint);
458266
+ } catch (e) {
458267
+ const error = e;
458268
+ if (error.errno === 44) {
458269
+ throw new Error(
458270
+ `Unable to access the mount point ${vfsMountPoint} in VFS after attempting to create it.`
458271
+ );
458272
+ }
458273
+ throw e;
458274
+ }
457936
458275
  FS2.mount(FS2.filesystems["NODEFS"], { root: localPath }, vfsMountPoint);
457937
458276
  return () => {
457938
458277
  FS2.unmount(vfsMountPoint);
458278
+ if (removeVfsNode) {
458279
+ if (FS2.isDir(lookup3.node.mode)) {
458280
+ FS2.rmdir(vfsMountPoint);
458281
+ } else {
458282
+ FS2.unlink(vfsMountPoint);
458283
+ }
458284
+ }
457939
458285
  };
457940
458286
  };
457941
458287
  }
@@ -457958,7 +458304,7 @@ function useHostFilesystem(php) {
457958
458304
  php.chdir(process.cwd());
457959
458305
  }
457960
458306
  function statPathFollowSymlinks(path33) {
457961
- let stat = lstatSync(path33);
458307
+ let stat = lstatSync2(path33);
457962
458308
  if (stat.isSymbolicLink()) {
457963
458309
  const fs5 = __require("fs");
457964
458310
  let target = path33;
@@ -457968,7 +458314,7 @@ function statPathFollowSymlinks(path33) {
457968
458314
  throw new Error(`Symlink loop detected: ${path33}`);
457969
458315
  }
457970
458316
  seen.add(target);
457971
- const linkStat = lstatSync(target);
458317
+ const linkStat = lstatSync2(target);
457972
458318
  if (linkStat.isSymbolicLink()) {
457973
458319
  target = fs5.realpathSync(target);
457974
458320
  continue;