@php-wasm/node 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/index.cjs CHANGED
@@ -3547,6 +3547,7 @@ var require_ws = __commonJS({
3547
3547
  var php_8_3_exports = {};
3548
3548
  __export(php_8_3_exports, {
3549
3549
  dependenciesTotalSize: () => dependenciesTotalSize,
3550
+ dependencyFilename: () => dependencyFilename,
3550
3551
  init: () => init
3551
3552
  });
3552
3553
  function init(RuntimeName, PHPLoader) {
@@ -10276,29 +10277,29 @@ function init(RuntimeName, PHPLoader) {
10276
10277
  var setTempRet0 = function() {
10277
10278
  return (setTempRet0 = Module["asm"]["hb"]).apply(null, arguments);
10278
10279
  };
10280
+ var _wasm_popen = Module["_wasm_popen"] = function() {
10281
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ib"]).apply(null, arguments);
10282
+ };
10279
10283
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
10280
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["ib"]).apply(null, arguments);
10284
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["jb"]).apply(null, arguments);
10281
10285
  };
10282
10286
  var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
10283
- return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["jb"]).apply(null, arguments);
10287
+ return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["kb"]).apply(null, arguments);
10284
10288
  };
10285
10289
  var _htons = function() {
10286
- return (_htons = Module["asm"]["kb"]).apply(null, arguments);
10290
+ return (_htons = Module["asm"]["lb"]).apply(null, arguments);
10287
10291
  };
10288
10292
  var _ntohs = function() {
10289
- return (_ntohs = Module["asm"]["lb"]).apply(null, arguments);
10293
+ return (_ntohs = Module["asm"]["mb"]).apply(null, arguments);
10290
10294
  };
10291
10295
  var _htonl = function() {
10292
- return (_htonl = Module["asm"]["mb"]).apply(null, arguments);
10296
+ return (_htonl = Module["asm"]["nb"]).apply(null, arguments);
10293
10297
  };
10294
10298
  var _wasm_sleep = Module["_wasm_sleep"] = function() {
10295
- return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["nb"]).apply(null, arguments);
10299
+ return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["ob"]).apply(null, arguments);
10296
10300
  };
10297
10301
  var _fflush = Module["_fflush"] = function() {
10298
- return (_fflush = Module["_fflush"] = Module["asm"]["ob"]).apply(null, arguments);
10299
- };
10300
- var _wasm_popen = Module["_wasm_popen"] = function() {
10301
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["pb"]).apply(null, arguments);
10302
+ return (_fflush = Module["_fflush"] = Module["asm"]["pb"]).apply(null, arguments);
10302
10303
  };
10303
10304
  var _wasm_select = Module["_wasm_select"] = function() {
10304
10305
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["qb"]).apply(null, arguments);
@@ -10765,7 +10766,7 @@ var init_php_8_3 = __esm({
10765
10766
  "packages/php-wasm/node/public/php_8_3.js"() {
10766
10767
  "use strict";
10767
10768
  dependencyFilename = __dirname + "/8_3_0/php_8_3.wasm";
10768
- dependenciesTotalSize = 11363175;
10769
+ dependenciesTotalSize = 11363558;
10769
10770
  }
10770
10771
  });
10771
10772
 
@@ -10773,6 +10774,7 @@ var init_php_8_3 = __esm({
10773
10774
  var php_8_2_exports = {};
10774
10775
  __export(php_8_2_exports, {
10775
10776
  dependenciesTotalSize: () => dependenciesTotalSize2,
10777
+ dependencyFilename: () => dependencyFilename2,
10776
10778
  init: () => init2
10777
10779
  });
10778
10780
  function init2(RuntimeName, PHPLoader) {
@@ -17502,29 +17504,29 @@ function init2(RuntimeName, PHPLoader) {
17502
17504
  var ___errno_location = function() {
17503
17505
  return (___errno_location = Module["asm"]["hb"]).apply(null, arguments);
17504
17506
  };
17507
+ var _wasm_popen = Module["_wasm_popen"] = function() {
17508
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ib"]).apply(null, arguments);
17509
+ };
17505
17510
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
17506
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["ib"]).apply(null, arguments);
17511
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["jb"]).apply(null, arguments);
17507
17512
  };
17508
17513
  var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
17509
- return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["jb"]).apply(null, arguments);
17514
+ return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["kb"]).apply(null, arguments);
17510
17515
  };
17511
17516
  var _htons = function() {
17512
- return (_htons = Module["asm"]["kb"]).apply(null, arguments);
17517
+ return (_htons = Module["asm"]["lb"]).apply(null, arguments);
17513
17518
  };
17514
17519
  var _ntohs = function() {
17515
- return (_ntohs = Module["asm"]["lb"]).apply(null, arguments);
17520
+ return (_ntohs = Module["asm"]["mb"]).apply(null, arguments);
17516
17521
  };
17517
17522
  var _htonl = function() {
17518
- return (_htonl = Module["asm"]["mb"]).apply(null, arguments);
17523
+ return (_htonl = Module["asm"]["nb"]).apply(null, arguments);
17519
17524
  };
17520
17525
  var _wasm_sleep = Module["_wasm_sleep"] = function() {
17521
- return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["nb"]).apply(null, arguments);
17526
+ return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["ob"]).apply(null, arguments);
17522
17527
  };
17523
17528
  var _fflush = Module["_fflush"] = function() {
17524
- return (_fflush = Module["_fflush"] = Module["asm"]["ob"]).apply(null, arguments);
17525
- };
17526
- var _wasm_popen = Module["_wasm_popen"] = function() {
17527
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["pb"]).apply(null, arguments);
17529
+ return (_fflush = Module["_fflush"] = Module["asm"]["pb"]).apply(null, arguments);
17528
17530
  };
17529
17531
  var _wasm_select = Module["_wasm_select"] = function() {
17530
17532
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["qb"]).apply(null, arguments);
@@ -17991,7 +17993,7 @@ var init_php_8_2 = __esm({
17991
17993
  "packages/php-wasm/node/public/php_8_2.js"() {
17992
17994
  "use strict";
17993
17995
  dependencyFilename2 = __dirname + "/8_2_10/php_8_2.wasm";
17994
- dependenciesTotalSize2 = 11244750;
17996
+ dependenciesTotalSize2 = 11245104;
17995
17997
  }
17996
17998
  });
17997
17999
 
@@ -17999,6 +18001,7 @@ var init_php_8_2 = __esm({
17999
18001
  var php_8_1_exports = {};
18000
18002
  __export(php_8_1_exports, {
18001
18003
  dependenciesTotalSize: () => dependenciesTotalSize3,
18004
+ dependencyFilename: () => dependencyFilename3,
18002
18005
  init: () => init3
18003
18006
  });
18004
18007
  function init3(RuntimeName, PHPLoader) {
@@ -24726,26 +24729,26 @@ function init3(RuntimeName, PHPLoader) {
24726
24729
  var _fflush = Module["_fflush"] = function() {
24727
24730
  return (_fflush = Module["_fflush"] = Module["asm"]["hb"]).apply(null, arguments);
24728
24731
  };
24732
+ var _wasm_popen = Module["_wasm_popen"] = function() {
24733
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ib"]).apply(null, arguments);
24734
+ };
24729
24735
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
24730
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["ib"]).apply(null, arguments);
24736
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["jb"]).apply(null, arguments);
24731
24737
  };
24732
24738
  var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
24733
- return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["jb"]).apply(null, arguments);
24739
+ return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["kb"]).apply(null, arguments);
24734
24740
  };
24735
24741
  var _htons = function() {
24736
- return (_htons = Module["asm"]["kb"]).apply(null, arguments);
24742
+ return (_htons = Module["asm"]["lb"]).apply(null, arguments);
24737
24743
  };
24738
24744
  var _ntohs = function() {
24739
- return (_ntohs = Module["asm"]["lb"]).apply(null, arguments);
24745
+ return (_ntohs = Module["asm"]["mb"]).apply(null, arguments);
24740
24746
  };
24741
24747
  var _htonl = function() {
24742
- return (_htonl = Module["asm"]["mb"]).apply(null, arguments);
24748
+ return (_htonl = Module["asm"]["nb"]).apply(null, arguments);
24743
24749
  };
24744
24750
  var _wasm_sleep = Module["_wasm_sleep"] = function() {
24745
- return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["nb"]).apply(null, arguments);
24746
- };
24747
- var _wasm_popen = Module["_wasm_popen"] = function() {
24748
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ob"]).apply(null, arguments);
24751
+ return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["ob"]).apply(null, arguments);
24749
24752
  };
24750
24753
  var _wasm_select = Module["_wasm_select"] = function() {
24751
24754
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["pb"]).apply(null, arguments);
@@ -25212,7 +25215,7 @@ var init_php_8_1 = __esm({
25212
25215
  "packages/php-wasm/node/public/php_8_1.js"() {
25213
25216
  "use strict";
25214
25217
  dependencyFilename3 = __dirname + "/8_1_23/php_8_1.wasm";
25215
- dependenciesTotalSize3 = 10987289;
25218
+ dependenciesTotalSize3 = 10987711;
25216
25219
  }
25217
25220
  });
25218
25221
 
@@ -31921,26 +31924,26 @@ function init4(RuntimeName, PHPLoader) {
31921
31924
  var _fflush = Module["_fflush"] = function() {
31922
31925
  return (_fflush = Module["_fflush"] = Module["asm"]["eb"]).apply(null, arguments);
31923
31926
  };
31927
+ var _wasm_popen = Module["_wasm_popen"] = function() {
31928
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["fb"]).apply(null, arguments);
31929
+ };
31924
31930
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
31925
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["fb"]).apply(null, arguments);
31931
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["gb"]).apply(null, arguments);
31926
31932
  };
31927
31933
  var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
31928
- return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["gb"]).apply(null, arguments);
31934
+ return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["hb"]).apply(null, arguments);
31929
31935
  };
31930
31936
  var _htons = function() {
31931
- return (_htons = Module["asm"]["hb"]).apply(null, arguments);
31937
+ return (_htons = Module["asm"]["ib"]).apply(null, arguments);
31932
31938
  };
31933
31939
  var _ntohs = function() {
31934
- return (_ntohs = Module["asm"]["ib"]).apply(null, arguments);
31940
+ return (_ntohs = Module["asm"]["jb"]).apply(null, arguments);
31935
31941
  };
31936
31942
  var _htonl = function() {
31937
- return (_htonl = Module["asm"]["jb"]).apply(null, arguments);
31943
+ return (_htonl = Module["asm"]["kb"]).apply(null, arguments);
31938
31944
  };
31939
31945
  var _wasm_sleep = Module["_wasm_sleep"] = function() {
31940
- return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["kb"]).apply(null, arguments);
31941
- };
31942
- var _wasm_popen = Module["_wasm_popen"] = function() {
31943
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["lb"]).apply(null, arguments);
31946
+ return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["lb"]).apply(null, arguments);
31944
31947
  };
31945
31948
  var _wasm_select = Module["_wasm_select"] = function() {
31946
31949
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["mb"]).apply(null, arguments);
@@ -32407,7 +32410,7 @@ var init_php_8_0 = __esm({
32407
32410
  "packages/php-wasm/node/public/php_8_0.js"() {
32408
32411
  "use strict";
32409
32412
  dependencyFilename4 = __dirname + "/8_0_30/php_8_0.wasm";
32410
- dependenciesTotalSize4 = 11116156;
32413
+ dependenciesTotalSize4 = 11116395;
32411
32414
  }
32412
32415
  });
32413
32416
 
@@ -39118,23 +39121,23 @@ function init5(RuntimeName, PHPLoader) {
39118
39121
  var _fflush = Module["_fflush"] = function() {
39119
39122
  return (_fflush = Module["_fflush"] = Module["asm"]["eb"]).apply(null, arguments);
39120
39123
  };
39124
+ var _wasm_popen = Module["_wasm_popen"] = function() {
39125
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["fb"]).apply(null, arguments);
39126
+ };
39121
39127
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
39122
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["fb"]).apply(null, arguments);
39128
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["gb"]).apply(null, arguments);
39123
39129
  };
39124
39130
  var _htons = function() {
39125
- return (_htons = Module["asm"]["gb"]).apply(null, arguments);
39131
+ return (_htons = Module["asm"]["hb"]).apply(null, arguments);
39126
39132
  };
39127
39133
  var _ntohs = function() {
39128
- return (_ntohs = Module["asm"]["hb"]).apply(null, arguments);
39134
+ return (_ntohs = Module["asm"]["ib"]).apply(null, arguments);
39129
39135
  };
39130
39136
  var _htonl = function() {
39131
- return (_htonl = Module["asm"]["ib"]).apply(null, arguments);
39137
+ return (_htonl = Module["asm"]["jb"]).apply(null, arguments);
39132
39138
  };
39133
39139
  var _wasm_sleep = Module["_wasm_sleep"] = function() {
39134
- return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["jb"]).apply(null, arguments);
39135
- };
39136
- var _wasm_popen = Module["_wasm_popen"] = function() {
39137
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["kb"]).apply(null, arguments);
39140
+ return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["kb"]).apply(null, arguments);
39138
39141
  };
39139
39142
  var _wasm_select = Module["_wasm_select"] = function() {
39140
39143
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["lb"]).apply(null, arguments);
@@ -39587,7 +39590,7 @@ var init_php_7_4 = __esm({
39587
39590
  "packages/php-wasm/node/public/php_7_4.js"() {
39588
39591
  "use strict";
39589
39592
  dependencyFilename5 = __dirname + "/7_4_33/php_7_4.wasm";
39590
- dependenciesTotalSize5 = 11976027;
39593
+ dependenciesTotalSize5 = 11976356;
39591
39594
  }
39592
39595
  });
39593
39596
 
@@ -46290,26 +46293,26 @@ function init6(RuntimeName, PHPLoader) {
46290
46293
  var _fflush = Module["_fflush"] = function() {
46291
46294
  return (_fflush = Module["_fflush"] = Module["asm"]["bb"]).apply(null, arguments);
46292
46295
  };
46296
+ var _wasm_popen = Module["_wasm_popen"] = function() {
46297
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["cb"]).apply(null, arguments);
46298
+ };
46293
46299
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
46294
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["cb"]).apply(null, arguments);
46300
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["db"]).apply(null, arguments);
46295
46301
  };
46296
46302
  var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
46297
- return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["db"]).apply(null, arguments);
46303
+ return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["eb"]).apply(null, arguments);
46298
46304
  };
46299
46305
  var _htons = function() {
46300
- return (_htons = Module["asm"]["eb"]).apply(null, arguments);
46306
+ return (_htons = Module["asm"]["fb"]).apply(null, arguments);
46301
46307
  };
46302
46308
  var _ntohs = function() {
46303
- return (_ntohs = Module["asm"]["fb"]).apply(null, arguments);
46309
+ return (_ntohs = Module["asm"]["gb"]).apply(null, arguments);
46304
46310
  };
46305
46311
  var _htonl = function() {
46306
- return (_htonl = Module["asm"]["gb"]).apply(null, arguments);
46312
+ return (_htonl = Module["asm"]["hb"]).apply(null, arguments);
46307
46313
  };
46308
46314
  var _wasm_sleep = Module["_wasm_sleep"] = function() {
46309
- return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["hb"]).apply(null, arguments);
46310
- };
46311
- var _wasm_popen = Module["_wasm_popen"] = function() {
46312
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ib"]).apply(null, arguments);
46315
+ return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["ib"]).apply(null, arguments);
46313
46316
  };
46314
46317
  var _wasm_select = Module["_wasm_select"] = function() {
46315
46318
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["jb"]).apply(null, arguments);
@@ -46762,7 +46765,7 @@ var init_php_7_3 = __esm({
46762
46765
  "packages/php-wasm/node/public/php_7_3.js"() {
46763
46766
  "use strict";
46764
46767
  dependencyFilename6 = __dirname + "/7_3_33/php_7_3.wasm";
46765
- dependenciesTotalSize6 = 11893050;
46768
+ dependenciesTotalSize6 = 11893227;
46766
46769
  }
46767
46770
  });
46768
46771
 
@@ -53345,14 +53348,14 @@ function init7(RuntimeName, PHPLoader) {
53345
53348
  var _fflush = Module["_fflush"] = function() {
53346
53349
  return (_fflush = Module["_fflush"] = Module["asm"]["db"]).apply(null, arguments);
53347
53350
  };
53351
+ var _wasm_popen = Module["_wasm_popen"] = function() {
53352
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["eb"]).apply(null, arguments);
53353
+ };
53348
53354
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
53349
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["eb"]).apply(null, arguments);
53355
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["fb"]).apply(null, arguments);
53350
53356
  };
53351
53357
  var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
53352
- return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["fb"]).apply(null, arguments);
53353
- };
53354
- var _wasm_popen = Module["_wasm_popen"] = function() {
53355
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["gb"]).apply(null, arguments);
53358
+ return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["gb"]).apply(null, arguments);
53356
53359
  };
53357
53360
  var _wasm_select = Module["_wasm_select"] = function() {
53358
53361
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["hb"]).apply(null, arguments);
@@ -53805,7 +53808,7 @@ var init_php_7_2 = __esm({
53805
53808
  "packages/php-wasm/node/public/php_7_2.js"() {
53806
53809
  "use strict";
53807
53810
  dependencyFilename7 = __dirname + "/7_2_34/php_7_2.wasm";
53808
- dependenciesTotalSize7 = 11969034;
53811
+ dependenciesTotalSize7 = 11969337;
53809
53812
  }
53810
53813
  });
53811
53814
 
@@ -60387,14 +60390,14 @@ function init8(RuntimeName, PHPLoader) {
60387
60390
  var _fflush = Module["_fflush"] = function() {
60388
60391
  return (_fflush = Module["_fflush"] = Module["asm"]["cb"]).apply(null, arguments);
60389
60392
  };
60393
+ var _wasm_popen = Module["_wasm_popen"] = function() {
60394
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["db"]).apply(null, arguments);
60395
+ };
60390
60396
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
60391
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["db"]).apply(null, arguments);
60397
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["eb"]).apply(null, arguments);
60392
60398
  };
60393
60399
  var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
60394
- return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["eb"]).apply(null, arguments);
60395
- };
60396
- var _wasm_popen = Module["_wasm_popen"] = function() {
60397
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["fb"]).apply(null, arguments);
60400
+ return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["fb"]).apply(null, arguments);
60398
60401
  };
60399
60402
  var _wasm_select = Module["_wasm_select"] = function() {
60400
60403
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["gb"]).apply(null, arguments);
@@ -60833,7 +60836,7 @@ var init_php_7_1 = __esm({
60833
60836
  "packages/php-wasm/node/public/php_7_1.js"() {
60834
60837
  "use strict";
60835
60838
  dependencyFilename8 = __dirname + "/7_1_30/php_7_1.wasm";
60836
- dependenciesTotalSize8 = 11585580;
60839
+ dependenciesTotalSize8 = 11585735;
60837
60840
  }
60838
60841
  });
60839
60842
 
@@ -67415,14 +67418,14 @@ function init9(RuntimeName, PHPLoader) {
67415
67418
  var _fflush = Module["_fflush"] = function() {
67416
67419
  return (_fflush = Module["_fflush"] = Module["asm"]["cb"]).apply(null, arguments);
67417
67420
  };
67421
+ var _wasm_popen = Module["_wasm_popen"] = function() {
67422
+ return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["db"]).apply(null, arguments);
67423
+ };
67418
67424
  var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
67419
- return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["db"]).apply(null, arguments);
67425
+ return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["eb"]).apply(null, arguments);
67420
67426
  };
67421
67427
  var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
67422
- return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["eb"]).apply(null, arguments);
67423
- };
67424
- var _wasm_popen = Module["_wasm_popen"] = function() {
67425
- return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["fb"]).apply(null, arguments);
67428
+ return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["fb"]).apply(null, arguments);
67426
67429
  };
67427
67430
  var _wasm_select = Module["_wasm_select"] = function() {
67428
67431
  return (_wasm_select = Module["_wasm_select"] = Module["asm"]["gb"]).apply(null, arguments);
@@ -67875,7 +67878,7 @@ var init_php_7_0 = __esm({
67875
67878
  "packages/php-wasm/node/public/php_7_0.js"() {
67876
67879
  "use strict";
67877
67880
  dependencyFilename9 = __dirname + "/7_0_33/php_7_0.wasm";
67878
- dependenciesTotalSize9 = 11384565;
67881
+ dependenciesTotalSize9 = 11384529;
67879
67882
  }
67880
67883
  });
67881
67884
 
@@ -68167,6 +68170,72 @@ function extractPHPFunctionsFromStack(stack) {
68167
68170
  }
68168
68171
  }
68169
68172
 
68173
+ // packages/php-wasm/util/src/lib/semaphore.ts
68174
+ var Semaphore = class {
68175
+ constructor({ concurrency }) {
68176
+ this._running = 0;
68177
+ this.concurrency = concurrency;
68178
+ this.queue = [];
68179
+ }
68180
+ get running() {
68181
+ return this._running;
68182
+ }
68183
+ async acquire() {
68184
+ while (true) {
68185
+ if (this._running >= this.concurrency) {
68186
+ await new Promise((resolve) => this.queue.push(resolve));
68187
+ } else {
68188
+ this._running++;
68189
+ let released = false;
68190
+ return () => {
68191
+ if (released) {
68192
+ return;
68193
+ }
68194
+ released = true;
68195
+ this._running--;
68196
+ if (this.queue.length > 0) {
68197
+ this.queue.shift()();
68198
+ }
68199
+ };
68200
+ }
68201
+ }
68202
+ }
68203
+ async run(fn) {
68204
+ const release = await this.acquire();
68205
+ try {
68206
+ return await fn();
68207
+ } finally {
68208
+ release();
68209
+ }
68210
+ }
68211
+ };
68212
+
68213
+ // packages/php-wasm/stream-compression/src/utils/iterable-stream-polyfill.ts
68214
+ if (!ReadableStream.prototype[Symbol.asyncIterator]) {
68215
+ ReadableStream.prototype[Symbol.asyncIterator] = async function* () {
68216
+ const reader = this.getReader();
68217
+ try {
68218
+ while (true) {
68219
+ const { done, value } = await reader.read();
68220
+ if (done) {
68221
+ return;
68222
+ }
68223
+ yield value;
68224
+ }
68225
+ } finally {
68226
+ reader.releaseLock();
68227
+ }
68228
+ };
68229
+ ReadableStream.prototype.iterate = // @ts-ignore
68230
+ ReadableStream.prototype[Symbol.asyncIterator];
68231
+ }
68232
+
68233
+ // packages/php-wasm/stream-compression/src/zip/decode-remote-zip.ts
68234
+ var CENTRAL_DIRECTORY_END_SCAN_CHUNK_SIZE = 110 * 1024;
68235
+ var BATCH_DOWNLOAD_OF_FILES_IF_CLOSER_THAN = 10 * 1024;
68236
+ var PREFER_RANGES_IF_FILE_LARGER_THAN = 1024 * 1024 * 1;
68237
+ var fetchSemaphore = new Semaphore({ concurrency: 10 });
68238
+
68170
68239
  // packages/php-wasm/universal/src/lib/php-response.ts
68171
68240
  var PHPResponse = class _PHPResponse {
68172
68241
  constructor(httpStatusCode, headers, body, errors = "", exitCode = 0) {
@@ -68320,46 +68389,6 @@ var PHPBrowser = class {
68320
68389
  }
68321
68390
  };
68322
68391
 
68323
- // packages/php-wasm/util/src/lib/semaphore.ts
68324
- var Semaphore = class {
68325
- constructor({ concurrency }) {
68326
- this._running = 0;
68327
- this.concurrency = concurrency;
68328
- this.queue = [];
68329
- }
68330
- get running() {
68331
- return this._running;
68332
- }
68333
- async acquire() {
68334
- while (true) {
68335
- if (this._running >= this.concurrency) {
68336
- await new Promise((resolve) => this.queue.push(resolve));
68337
- } else {
68338
- this._running++;
68339
- let released = false;
68340
- return () => {
68341
- if (released) {
68342
- return;
68343
- }
68344
- released = true;
68345
- this._running--;
68346
- if (this.queue.length > 0) {
68347
- this.queue.shift()();
68348
- }
68349
- };
68350
- }
68351
- }
68352
- }
68353
- async run(fn) {
68354
- const release = await this.acquire();
68355
- try {
68356
- return await fn();
68357
- } finally {
68358
- release();
68359
- }
68360
- }
68361
- };
68362
-
68363
68392
  // packages/php-wasm/universal/src/lib/urls.ts
68364
68393
  var DEFAULT_BASE_URL = "http://example.com";
68365
68394
  function toRelativeUrl(url) {
@@ -68750,6 +68779,12 @@ var FileErrorCodes = {
68750
68779
  75: "Cross-device link.",
68751
68780
  76: "Extension: Capabilities insufficient."
68752
68781
  };
68782
+ function getEmscriptenFsError(e) {
68783
+ const errno = typeof e === "object" ? e?.errno : null;
68784
+ if (errno in FileErrorCodes) {
68785
+ return FileErrorCodes[errno];
68786
+ }
68787
+ }
68753
68788
  function rethrowFileSystemError(messagePrefix = "") {
68754
68789
  return function catchFileSystemError(target, methodName, descriptor) {
68755
68790
  const method = descriptor.value;
@@ -69308,8 +69343,22 @@ var BasePHP2 = class {
69308
69343
  unlink(path) {
69309
69344
  this[__private__dont__use].FS.unlink(path);
69310
69345
  }
69346
+ /** @inheritDoc */
69311
69347
  mv(fromPath, toPath) {
69312
- this[__private__dont__use].FS.rename(fromPath, toPath);
69348
+ try {
69349
+ this[__private__dont__use].FS.rename(fromPath, toPath);
69350
+ } catch (e) {
69351
+ const errmsg = getEmscriptenFsError(e);
69352
+ if (!errmsg) {
69353
+ throw e;
69354
+ }
69355
+ throw new Error(
69356
+ `Could not move ${fromPath} to ${toPath}: ${errmsg}`,
69357
+ {
69358
+ cause: e
69359
+ }
69360
+ );
69361
+ }
69313
69362
  }
69314
69363
  rmdir(path, options = { recursive: true }) {
69315
69364
  if (options?.recursive) {
@@ -69380,9 +69429,6 @@ __decorateClass([
69380
69429
  __decorateClass([
69381
69430
  rethrowFileSystemError('Could not unlink "{path}"')
69382
69431
  ], BasePHP2.prototype, "unlink", 1);
69383
- __decorateClass([
69384
- rethrowFileSystemError('Could not move "{path}"')
69385
- ], BasePHP2.prototype, "mv", 1);
69386
69432
  __decorateClass([
69387
69433
  rethrowFileSystemError('Could not remove directory "{path}"')
69388
69434
  ], BasePHP2.prototype, "rmdir", 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,9 +28,9 @@
28
28
  "license": "GPL-2.0-or-later",
29
29
  "main": "index.cjs",
30
30
  "types": "index.d.ts",
31
- "gitHead": "630288218e307d9a5e93d92b428ed30ae6a5fa2f",
31
+ "gitHead": "033b9df217c3b497ebaf0c6ac9a34c7004b55fdb",
32
32
  "engines": {
33
- "node": ">=16.15.1",
33
+ "node": ">=18.18.2",
34
34
  "npm": ">=8.11.0"
35
35
  },
36
36
  "dependencies": {
@@ -38,8 +38,8 @@
38
38
  "express": "4.18.2",
39
39
  "ws": "8.13.0",
40
40
  "yargs": "17.7.2",
41
- "@php-wasm/node-polyfills": "0.5.2",
42
- "@php-wasm/universal": "0.5.2",
43
- "@php-wasm/util": "0.5.2"
41
+ "@php-wasm/node-polyfills": "0.5.4",
42
+ "@php-wasm/universal": "0.5.4",
43
+ "@php-wasm/util": "0.5.4"
44
44
  }
45
45
  }