@php-wasm/node 0.5.1 → 0.5.3
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.
- package/7_0_33/php_7_0.wasm +0 -0
- package/7_1_30/php_7_1.wasm +0 -0
- package/7_2_34/php_7_2.wasm +0 -0
- package/7_3_33/php_7_3.wasm +0 -0
- package/7_4_33/php_7_4.wasm +0 -0
- package/8_0_30/php_8_0.wasm +0 -0
- package/8_1_23/php_8_1.wasm +0 -0
- package/8_2_10/php_8_2.wasm +0 -0
- package/8_3_0/php_8_3.wasm +0 -0
- package/index.cjs +169 -123
- package/package.json +6 -6
- package/php_7_0.js +25 -25
- package/php_7_1.js +25 -25
- package/php_7_2.js +25 -25
- package/php_7_3.js +29 -29
- package/php_7_4.js +28 -28
- package/php_8_0.js +29 -29
- package/php_8_1.js +12 -11
- package/php_8_2.js +13 -12
- package/php_8_3.js +13 -12
package/php_7_4.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const dependencyFilename = __dirname + '/7_4_33/php_7_4.wasm';
|
|
2
|
-
|
|
3
|
-
export const dependenciesTotalSize =
|
|
1
|
+
const dependencyFilename = __dirname + '/7_4_33/php_7_4.wasm';
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 11976356;
|
|
4
4
|
export function init(RuntimeName, PHPLoader) {
|
|
5
5
|
/**
|
|
6
6
|
* Overrides Emscripten's default ExitStatus object which gets
|
|
@@ -2912,26 +2912,26 @@ var SYSCALLS = {
|
|
|
2912
2912
|
HEAP32[buf + 12 >> 2] = stat.uid;
|
|
2913
2913
|
HEAP32[buf + 16 >> 2] = stat.gid;
|
|
2914
2914
|
HEAP32[buf + 20 >> 2] = stat.rdev;
|
|
2915
|
-
tempI64 = [ stat.size >>> 0, (tempDouble = stat.size, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2915
|
+
tempI64 = [ stat.size >>> 0, (tempDouble = stat.size, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2916
2916
|
HEAP32[buf + 24 >> 2] = tempI64[0], HEAP32[buf + 28 >> 2] = tempI64[1];
|
|
2917
2917
|
HEAP32[buf + 32 >> 2] = 4096;
|
|
2918
2918
|
HEAP32[buf + 36 >> 2] = stat.blocks;
|
|
2919
2919
|
var atime = stat.atime.getTime();
|
|
2920
2920
|
var mtime = stat.mtime.getTime();
|
|
2921
2921
|
var ctime = stat.ctime.getTime();
|
|
2922
|
-
tempI64 = [ Math.floor(atime / 1e3) >>> 0, (tempDouble = Math.floor(atime / 1e3),
|
|
2923
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2922
|
+
tempI64 = [ Math.floor(atime / 1e3) >>> 0, (tempDouble = Math.floor(atime / 1e3),
|
|
2923
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2924
2924
|
HEAP32[buf + 40 >> 2] = tempI64[0], HEAP32[buf + 44 >> 2] = tempI64[1];
|
|
2925
2925
|
HEAPU32[buf + 48 >> 2] = atime % 1e3 * 1e3;
|
|
2926
|
-
tempI64 = [ Math.floor(mtime / 1e3) >>> 0, (tempDouble = Math.floor(mtime / 1e3),
|
|
2927
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2926
|
+
tempI64 = [ Math.floor(mtime / 1e3) >>> 0, (tempDouble = Math.floor(mtime / 1e3),
|
|
2927
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2928
2928
|
HEAP32[buf + 56 >> 2] = tempI64[0], HEAP32[buf + 60 >> 2] = tempI64[1];
|
|
2929
2929
|
HEAPU32[buf + 64 >> 2] = mtime % 1e3 * 1e3;
|
|
2930
|
-
tempI64 = [ Math.floor(ctime / 1e3) >>> 0, (tempDouble = Math.floor(ctime / 1e3),
|
|
2931
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2930
|
+
tempI64 = [ Math.floor(ctime / 1e3) >>> 0, (tempDouble = Math.floor(ctime / 1e3),
|
|
2931
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2932
2932
|
HEAP32[buf + 72 >> 2] = tempI64[0], HEAP32[buf + 76 >> 2] = tempI64[1];
|
|
2933
2933
|
HEAPU32[buf + 80 >> 2] = ctime % 1e3 * 1e3;
|
|
2934
|
-
tempI64 = [ stat.ino >>> 0, (tempDouble = stat.ino, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2934
|
+
tempI64 = [ stat.ino >>> 0, (tempDouble = stat.ino, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2935
2935
|
HEAP32[buf + 88 >> 2] = tempI64[0], HEAP32[buf + 92 >> 2] = tempI64[1];
|
|
2936
2936
|
return 0;
|
|
2937
2937
|
},
|
|
@@ -4033,10 +4033,10 @@ function ___syscall_getdents64(fd, dirp, count) {
|
|
|
4033
4033
|
id = child.id;
|
|
4034
4034
|
type = FS.isChrdev(child.mode) ? 2 : FS.isDir(child.mode) ? 4 : FS.isLink(child.mode) ? 10 : 8;
|
|
4035
4035
|
}
|
|
4036
|
-
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4036
|
+
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4037
4037
|
HEAP32[dirp + pos >> 2] = tempI64[0], HEAP32[dirp + pos + 4 >> 2] = tempI64[1];
|
|
4038
|
-
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4039
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4038
|
+
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4039
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4040
4040
|
HEAP32[dirp + pos + 8 >> 2] = tempI64[0], HEAP32[dirp + pos + 12 >> 2] = tempI64[1];
|
|
4041
4041
|
HEAP16[dirp + pos + 16 >> 1] = 280;
|
|
4042
4042
|
HEAP8[dirp + pos + 18 >> 0] = type;
|
|
@@ -4747,7 +4747,7 @@ var __mktime_js = function(tmPtr) {
|
|
|
4747
4747
|
HEAP32[tmPtr + 20 >> 2] = date.getYear();
|
|
4748
4748
|
return date.getTime() / 1e3;
|
|
4749
4749
|
})();
|
|
4750
|
-
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4750
|
+
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4751
4751
|
ret >>> 0;
|
|
4752
4752
|
};
|
|
4753
4753
|
|
|
@@ -5038,9 +5038,9 @@ function _fd_fdstat_get(fd, pbuf) {
|
|
|
5038
5038
|
}
|
|
5039
5039
|
HEAP8[pbuf >> 0] = type;
|
|
5040
5040
|
HEAP16[pbuf + 2 >> 1] = flags;
|
|
5041
|
-
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5041
|
+
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5042
5042
|
HEAP32[pbuf + 8 >> 2] = tempI64[0], HEAP32[pbuf + 12 >> 2] = tempI64[1];
|
|
5043
|
-
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5043
|
+
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5044
5044
|
HEAP32[pbuf + 16 >> 2] = tempI64[0], HEAP32[pbuf + 20 >> 2] = tempI64[1];
|
|
5045
5045
|
return 0;
|
|
5046
5046
|
} catch (e) {
|
|
@@ -5084,7 +5084,7 @@ function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|
|
5084
5084
|
if (isNaN(offset)) return 61;
|
|
5085
5085
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
5086
5086
|
FS.llseek(stream, offset, whence);
|
|
5087
|
-
tempI64 = [ stream.position >>> 0, (tempDouble = stream.position, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5087
|
+
tempI64 = [ stream.position >>> 0, (tempDouble = stream.position, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5088
5088
|
HEAP32[newOffset >> 2] = tempI64[0], HEAP32[newOffset + 4 >> 2] = tempI64[1];
|
|
5089
5089
|
if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null;
|
|
5090
5090
|
return 0;
|
|
@@ -6831,28 +6831,28 @@ var _fflush = Module["_fflush"] = function() {
|
|
|
6831
6831
|
return (_fflush = Module["_fflush"] = Module["asm"]["eb"]).apply(null, arguments);
|
|
6832
6832
|
};
|
|
6833
6833
|
|
|
6834
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6835
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["fb"]).apply(null, arguments);
|
|
6836
|
+
};
|
|
6837
|
+
|
|
6834
6838
|
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6835
|
-
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["
|
|
6839
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["gb"]).apply(null, arguments);
|
|
6836
6840
|
};
|
|
6837
6841
|
|
|
6838
6842
|
var _htons = function() {
|
|
6839
|
-
return (_htons = Module["asm"]["
|
|
6843
|
+
return (_htons = Module["asm"]["hb"]).apply(null, arguments);
|
|
6840
6844
|
};
|
|
6841
6845
|
|
|
6842
6846
|
var _ntohs = function() {
|
|
6843
|
-
return (_ntohs = Module["asm"]["
|
|
6847
|
+
return (_ntohs = Module["asm"]["ib"]).apply(null, arguments);
|
|
6844
6848
|
};
|
|
6845
6849
|
|
|
6846
6850
|
var _htonl = function() {
|
|
6847
|
-
return (_htonl = Module["asm"]["
|
|
6851
|
+
return (_htonl = Module["asm"]["jb"]).apply(null, arguments);
|
|
6848
6852
|
};
|
|
6849
6853
|
|
|
6850
6854
|
var _wasm_sleep = Module["_wasm_sleep"] = function() {
|
|
6851
|
-
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["
|
|
6852
|
-
};
|
|
6853
|
-
|
|
6854
|
-
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6855
|
-
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["kb"]).apply(null, arguments);
|
|
6855
|
+
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["kb"]).apply(null, arguments);
|
|
6856
6856
|
};
|
|
6857
6857
|
|
|
6858
6858
|
var _wasm_select = Module["_wasm_select"] = function() {
|
|
@@ -7354,7 +7354,7 @@ DNS.address_map.addrs.localhost = '127.0.0.1';
|
|
|
7354
7354
|
|
|
7355
7355
|
/**
|
|
7356
7356
|
* Debugging Asyncify errors is tricky because the stack trace is lost when the
|
|
7357
|
-
* error is thrown. This code saves the stack trace in a global variable
|
|
7357
|
+
* error is thrown. This code saves the stack trace in a global variable
|
|
7358
7358
|
* so that it can be inspected later.
|
|
7359
7359
|
*/
|
|
7360
7360
|
PHPLoader.debug = 'debug' in PHPLoader ? PHPLoader.debug : true;
|
package/php_8_0.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const dependencyFilename = __dirname + '/8_0_30/php_8_0.wasm';
|
|
2
|
-
|
|
3
|
-
export const dependenciesTotalSize =
|
|
1
|
+
const dependencyFilename = __dirname + '/8_0_30/php_8_0.wasm';
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 11116395;
|
|
4
4
|
export function init(RuntimeName, PHPLoader) {
|
|
5
5
|
/**
|
|
6
6
|
* Overrides Emscripten's default ExitStatus object which gets
|
|
@@ -2912,26 +2912,26 @@ var SYSCALLS = {
|
|
|
2912
2912
|
HEAP32[buf + 12 >> 2] = stat.uid;
|
|
2913
2913
|
HEAP32[buf + 16 >> 2] = stat.gid;
|
|
2914
2914
|
HEAP32[buf + 20 >> 2] = stat.rdev;
|
|
2915
|
-
tempI64 = [ stat.size >>> 0, (tempDouble = stat.size, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2915
|
+
tempI64 = [ stat.size >>> 0, (tempDouble = stat.size, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2916
2916
|
HEAP32[buf + 24 >> 2] = tempI64[0], HEAP32[buf + 28 >> 2] = tempI64[1];
|
|
2917
2917
|
HEAP32[buf + 32 >> 2] = 4096;
|
|
2918
2918
|
HEAP32[buf + 36 >> 2] = stat.blocks;
|
|
2919
2919
|
var atime = stat.atime.getTime();
|
|
2920
2920
|
var mtime = stat.mtime.getTime();
|
|
2921
2921
|
var ctime = stat.ctime.getTime();
|
|
2922
|
-
tempI64 = [ Math.floor(atime / 1e3) >>> 0, (tempDouble = Math.floor(atime / 1e3),
|
|
2923
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2922
|
+
tempI64 = [ Math.floor(atime / 1e3) >>> 0, (tempDouble = Math.floor(atime / 1e3),
|
|
2923
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2924
2924
|
HEAP32[buf + 40 >> 2] = tempI64[0], HEAP32[buf + 44 >> 2] = tempI64[1];
|
|
2925
2925
|
HEAPU32[buf + 48 >> 2] = atime % 1e3 * 1e3;
|
|
2926
|
-
tempI64 = [ Math.floor(mtime / 1e3) >>> 0, (tempDouble = Math.floor(mtime / 1e3),
|
|
2927
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2926
|
+
tempI64 = [ Math.floor(mtime / 1e3) >>> 0, (tempDouble = Math.floor(mtime / 1e3),
|
|
2927
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2928
2928
|
HEAP32[buf + 56 >> 2] = tempI64[0], HEAP32[buf + 60 >> 2] = tempI64[1];
|
|
2929
2929
|
HEAPU32[buf + 64 >> 2] = mtime % 1e3 * 1e3;
|
|
2930
|
-
tempI64 = [ Math.floor(ctime / 1e3) >>> 0, (tempDouble = Math.floor(ctime / 1e3),
|
|
2931
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2930
|
+
tempI64 = [ Math.floor(ctime / 1e3) >>> 0, (tempDouble = Math.floor(ctime / 1e3),
|
|
2931
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2932
2932
|
HEAP32[buf + 72 >> 2] = tempI64[0], HEAP32[buf + 76 >> 2] = tempI64[1];
|
|
2933
2933
|
HEAPU32[buf + 80 >> 2] = ctime % 1e3 * 1e3;
|
|
2934
|
-
tempI64 = [ stat.ino >>> 0, (tempDouble = stat.ino, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2934
|
+
tempI64 = [ stat.ino >>> 0, (tempDouble = stat.ino, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
2935
2935
|
HEAP32[buf + 88 >> 2] = tempI64[0], HEAP32[buf + 92 >> 2] = tempI64[1];
|
|
2936
2936
|
return 0;
|
|
2937
2937
|
},
|
|
@@ -4033,10 +4033,10 @@ function ___syscall_getdents64(fd, dirp, count) {
|
|
|
4033
4033
|
id = child.id;
|
|
4034
4034
|
type = FS.isChrdev(child.mode) ? 2 : FS.isDir(child.mode) ? 4 : FS.isLink(child.mode) ? 10 : 8;
|
|
4035
4035
|
}
|
|
4036
|
-
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4036
|
+
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4037
4037
|
HEAP32[dirp + pos >> 2] = tempI64[0], HEAP32[dirp + pos + 4 >> 2] = tempI64[1];
|
|
4038
|
-
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4039
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4038
|
+
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4039
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4040
4040
|
HEAP32[dirp + pos + 8 >> 2] = tempI64[0], HEAP32[dirp + pos + 12 >> 2] = tempI64[1];
|
|
4041
4041
|
HEAP16[dirp + pos + 16 >> 1] = 280;
|
|
4042
4042
|
HEAP8[dirp + pos + 18 >> 0] = type;
|
|
@@ -4747,7 +4747,7 @@ var __mktime_js = function(tmPtr) {
|
|
|
4747
4747
|
HEAP32[tmPtr + 20 >> 2] = date.getYear();
|
|
4748
4748
|
return date.getTime() / 1e3;
|
|
4749
4749
|
})();
|
|
4750
|
-
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4750
|
+
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4751
4751
|
ret >>> 0;
|
|
4752
4752
|
};
|
|
4753
4753
|
|
|
@@ -5038,9 +5038,9 @@ function _fd_fdstat_get(fd, pbuf) {
|
|
|
5038
5038
|
}
|
|
5039
5039
|
HEAP8[pbuf >> 0] = type;
|
|
5040
5040
|
HEAP16[pbuf + 2 >> 1] = flags;
|
|
5041
|
-
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5041
|
+
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5042
5042
|
HEAP32[pbuf + 8 >> 2] = tempI64[0], HEAP32[pbuf + 12 >> 2] = tempI64[1];
|
|
5043
|
-
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5043
|
+
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5044
5044
|
HEAP32[pbuf + 16 >> 2] = tempI64[0], HEAP32[pbuf + 20 >> 2] = tempI64[1];
|
|
5045
5045
|
return 0;
|
|
5046
5046
|
} catch (e) {
|
|
@@ -5084,7 +5084,7 @@ function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|
|
5084
5084
|
if (isNaN(offset)) return 61;
|
|
5085
5085
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
5086
5086
|
FS.llseek(stream, offset, whence);
|
|
5087
|
-
tempI64 = [ stream.position >>> 0, (tempDouble = stream.position, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5087
|
+
tempI64 = [ stream.position >>> 0, (tempDouble = stream.position, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5088
5088
|
HEAP32[newOffset >> 2] = tempI64[0], HEAP32[newOffset + 4 >> 2] = tempI64[1];
|
|
5089
5089
|
if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null;
|
|
5090
5090
|
return 0;
|
|
@@ -6828,32 +6828,32 @@ var _fflush = Module["_fflush"] = function() {
|
|
|
6828
6828
|
return (_fflush = Module["_fflush"] = Module["asm"]["eb"]).apply(null, arguments);
|
|
6829
6829
|
};
|
|
6830
6830
|
|
|
6831
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6832
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["fb"]).apply(null, arguments);
|
|
6833
|
+
};
|
|
6834
|
+
|
|
6831
6835
|
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6832
|
-
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["
|
|
6836
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["gb"]).apply(null, arguments);
|
|
6833
6837
|
};
|
|
6834
6838
|
|
|
6835
6839
|
var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
|
|
6836
|
-
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["
|
|
6840
|
+
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["hb"]).apply(null, arguments);
|
|
6837
6841
|
};
|
|
6838
6842
|
|
|
6839
6843
|
var _htons = function() {
|
|
6840
|
-
return (_htons = Module["asm"]["
|
|
6844
|
+
return (_htons = Module["asm"]["ib"]).apply(null, arguments);
|
|
6841
6845
|
};
|
|
6842
6846
|
|
|
6843
6847
|
var _ntohs = function() {
|
|
6844
|
-
return (_ntohs = Module["asm"]["
|
|
6848
|
+
return (_ntohs = Module["asm"]["jb"]).apply(null, arguments);
|
|
6845
6849
|
};
|
|
6846
6850
|
|
|
6847
6851
|
var _htonl = function() {
|
|
6848
|
-
return (_htonl = Module["asm"]["
|
|
6852
|
+
return (_htonl = Module["asm"]["kb"]).apply(null, arguments);
|
|
6849
6853
|
};
|
|
6850
6854
|
|
|
6851
6855
|
var _wasm_sleep = Module["_wasm_sleep"] = function() {
|
|
6852
|
-
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["
|
|
6853
|
-
};
|
|
6854
|
-
|
|
6855
|
-
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6856
|
-
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["lb"]).apply(null, arguments);
|
|
6856
|
+
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["lb"]).apply(null, arguments);
|
|
6857
6857
|
};
|
|
6858
6858
|
|
|
6859
6859
|
var _wasm_select = Module["_wasm_select"] = function() {
|
|
@@ -7370,7 +7370,7 @@ DNS.address_map.addrs.localhost = '127.0.0.1';
|
|
|
7370
7370
|
|
|
7371
7371
|
/**
|
|
7372
7372
|
* Debugging Asyncify errors is tricky because the stack trace is lost when the
|
|
7373
|
-
* error is thrown. This code saves the stack trace in a global variable
|
|
7373
|
+
* error is thrown. This code saves the stack trace in a global variable
|
|
7374
7374
|
* so that it can be inspected later.
|
|
7375
7375
|
*/
|
|
7376
7376
|
PHPLoader.debug = 'debug' in PHPLoader ? PHPLoader.debug : true;
|
package/php_8_1.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const dependencyFilename = __dirname + '/8_1_23/php_8_1.wasm';
|
|
2
|
-
export
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 10987711;
|
|
3
4
|
export function init(RuntimeName, PHPLoader) {
|
|
4
5
|
/**
|
|
5
6
|
* Overrides Emscripten's default ExitStatus object which gets
|
|
@@ -6856,32 +6857,32 @@ var _fflush = Module["_fflush"] = function() {
|
|
|
6856
6857
|
return (_fflush = Module["_fflush"] = Module["asm"]["hb"]).apply(null, arguments);
|
|
6857
6858
|
};
|
|
6858
6859
|
|
|
6860
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6861
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ib"]).apply(null, arguments);
|
|
6862
|
+
};
|
|
6863
|
+
|
|
6859
6864
|
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6860
|
-
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["
|
|
6865
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["jb"]).apply(null, arguments);
|
|
6861
6866
|
};
|
|
6862
6867
|
|
|
6863
6868
|
var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
|
|
6864
|
-
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["
|
|
6869
|
+
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["kb"]).apply(null, arguments);
|
|
6865
6870
|
};
|
|
6866
6871
|
|
|
6867
6872
|
var _htons = function() {
|
|
6868
|
-
return (_htons = Module["asm"]["
|
|
6873
|
+
return (_htons = Module["asm"]["lb"]).apply(null, arguments);
|
|
6869
6874
|
};
|
|
6870
6875
|
|
|
6871
6876
|
var _ntohs = function() {
|
|
6872
|
-
return (_ntohs = Module["asm"]["
|
|
6877
|
+
return (_ntohs = Module["asm"]["mb"]).apply(null, arguments);
|
|
6873
6878
|
};
|
|
6874
6879
|
|
|
6875
6880
|
var _htonl = function() {
|
|
6876
|
-
return (_htonl = Module["asm"]["
|
|
6881
|
+
return (_htonl = Module["asm"]["nb"]).apply(null, arguments);
|
|
6877
6882
|
};
|
|
6878
6883
|
|
|
6879
6884
|
var _wasm_sleep = Module["_wasm_sleep"] = function() {
|
|
6880
|
-
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["
|
|
6881
|
-
};
|
|
6882
|
-
|
|
6883
|
-
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6884
|
-
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ob"]).apply(null, arguments);
|
|
6885
|
+
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["ob"]).apply(null, arguments);
|
|
6885
6886
|
};
|
|
6886
6887
|
|
|
6887
6888
|
var _wasm_select = Module["_wasm_select"] = function() {
|
package/php_8_2.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const dependencyFilename = __dirname + '/8_2_10/php_8_2.wasm';
|
|
2
|
-
export
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 11245104;
|
|
3
4
|
export function init(RuntimeName, PHPLoader) {
|
|
4
5
|
/**
|
|
5
6
|
* Overrides Emscripten's default ExitStatus object which gets
|
|
@@ -6858,36 +6859,36 @@ var ___errno_location = function() {
|
|
|
6858
6859
|
return (___errno_location = Module["asm"]["hb"]).apply(null, arguments);
|
|
6859
6860
|
};
|
|
6860
6861
|
|
|
6862
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6863
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ib"]).apply(null, arguments);
|
|
6864
|
+
};
|
|
6865
|
+
|
|
6861
6866
|
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6862
|
-
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["
|
|
6867
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["jb"]).apply(null, arguments);
|
|
6863
6868
|
};
|
|
6864
6869
|
|
|
6865
6870
|
var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
|
|
6866
|
-
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["
|
|
6871
|
+
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["kb"]).apply(null, arguments);
|
|
6867
6872
|
};
|
|
6868
6873
|
|
|
6869
6874
|
var _htons = function() {
|
|
6870
|
-
return (_htons = Module["asm"]["
|
|
6875
|
+
return (_htons = Module["asm"]["lb"]).apply(null, arguments);
|
|
6871
6876
|
};
|
|
6872
6877
|
|
|
6873
6878
|
var _ntohs = function() {
|
|
6874
|
-
return (_ntohs = Module["asm"]["
|
|
6879
|
+
return (_ntohs = Module["asm"]["mb"]).apply(null, arguments);
|
|
6875
6880
|
};
|
|
6876
6881
|
|
|
6877
6882
|
var _htonl = function() {
|
|
6878
|
-
return (_htonl = Module["asm"]["
|
|
6883
|
+
return (_htonl = Module["asm"]["nb"]).apply(null, arguments);
|
|
6879
6884
|
};
|
|
6880
6885
|
|
|
6881
6886
|
var _wasm_sleep = Module["_wasm_sleep"] = function() {
|
|
6882
|
-
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["
|
|
6887
|
+
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["ob"]).apply(null, arguments);
|
|
6883
6888
|
};
|
|
6884
6889
|
|
|
6885
6890
|
var _fflush = Module["_fflush"] = function() {
|
|
6886
|
-
return (_fflush = Module["_fflush"] = Module["asm"]["
|
|
6887
|
-
};
|
|
6888
|
-
|
|
6889
|
-
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6890
|
-
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["pb"]).apply(null, arguments);
|
|
6891
|
+
return (_fflush = Module["_fflush"] = Module["asm"]["pb"]).apply(null, arguments);
|
|
6891
6892
|
};
|
|
6892
6893
|
|
|
6893
6894
|
var _wasm_select = Module["_wasm_select"] = function() {
|
package/php_8_3.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const dependencyFilename = __dirname + '/8_3_0/php_8_3.wasm';
|
|
2
|
-
export
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 11363558;
|
|
3
4
|
export function init(RuntimeName, PHPLoader) {
|
|
4
5
|
/**
|
|
5
6
|
* Overrides Emscripten's default ExitStatus object which gets
|
|
@@ -6858,36 +6859,36 @@ var setTempRet0 = function() {
|
|
|
6858
6859
|
return (setTempRet0 = Module["asm"]["hb"]).apply(null, arguments);
|
|
6859
6860
|
};
|
|
6860
6861
|
|
|
6862
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6863
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ib"]).apply(null, arguments);
|
|
6864
|
+
};
|
|
6865
|
+
|
|
6861
6866
|
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6862
|
-
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["
|
|
6867
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["jb"]).apply(null, arguments);
|
|
6863
6868
|
};
|
|
6864
6869
|
|
|
6865
6870
|
var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
|
|
6866
|
-
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["
|
|
6871
|
+
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["kb"]).apply(null, arguments);
|
|
6867
6872
|
};
|
|
6868
6873
|
|
|
6869
6874
|
var _htons = function() {
|
|
6870
|
-
return (_htons = Module["asm"]["
|
|
6875
|
+
return (_htons = Module["asm"]["lb"]).apply(null, arguments);
|
|
6871
6876
|
};
|
|
6872
6877
|
|
|
6873
6878
|
var _ntohs = function() {
|
|
6874
|
-
return (_ntohs = Module["asm"]["
|
|
6879
|
+
return (_ntohs = Module["asm"]["mb"]).apply(null, arguments);
|
|
6875
6880
|
};
|
|
6876
6881
|
|
|
6877
6882
|
var _htonl = function() {
|
|
6878
|
-
return (_htonl = Module["asm"]["
|
|
6883
|
+
return (_htonl = Module["asm"]["nb"]).apply(null, arguments);
|
|
6879
6884
|
};
|
|
6880
6885
|
|
|
6881
6886
|
var _wasm_sleep = Module["_wasm_sleep"] = function() {
|
|
6882
|
-
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["
|
|
6887
|
+
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["ob"]).apply(null, arguments);
|
|
6883
6888
|
};
|
|
6884
6889
|
|
|
6885
6890
|
var _fflush = Module["_fflush"] = function() {
|
|
6886
|
-
return (_fflush = Module["_fflush"] = Module["asm"]["
|
|
6887
|
-
};
|
|
6888
|
-
|
|
6889
|
-
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6890
|
-
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["pb"]).apply(null, arguments);
|
|
6891
|
+
return (_fflush = Module["_fflush"] = Module["asm"]["pb"]).apply(null, arguments);
|
|
6891
6892
|
};
|
|
6892
6893
|
|
|
6893
6894
|
var _wasm_select = Module["_wasm_select"] = function() {
|