@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_0.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const dependencyFilename = __dirname + '/7_0_33/php_7_0.wasm';
|
|
2
|
-
|
|
3
|
-
export const dependenciesTotalSize =
|
|
1
|
+
const dependencyFilename = __dirname + '/7_0_33/php_7_0.wasm';
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 11384529;
|
|
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
|
},
|
|
@@ -4009,10 +4009,10 @@ function ___syscall_getdents64(fd, dirp, count) {
|
|
|
4009
4009
|
id = child.id;
|
|
4010
4010
|
type = FS.isChrdev(child.mode) ? 2 : FS.isDir(child.mode) ? 4 : FS.isLink(child.mode) ? 10 : 8;
|
|
4011
4011
|
}
|
|
4012
|
-
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4012
|
+
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4013
4013
|
HEAP32[dirp + pos >> 2] = tempI64[0], HEAP32[dirp + pos + 4 >> 2] = tempI64[1];
|
|
4014
|
-
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4015
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4014
|
+
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4015
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4016
4016
|
HEAP32[dirp + pos + 8 >> 2] = tempI64[0], HEAP32[dirp + pos + 12 >> 2] = tempI64[1];
|
|
4017
4017
|
HEAP16[dirp + pos + 16 >> 1] = 280;
|
|
4018
4018
|
HEAP8[dirp + pos + 18 >> 0] = type;
|
|
@@ -4723,7 +4723,7 @@ var __mktime_js = function(tmPtr) {
|
|
|
4723
4723
|
HEAP32[tmPtr + 20 >> 2] = date.getYear();
|
|
4724
4724
|
return date.getTime() / 1e3;
|
|
4725
4725
|
})();
|
|
4726
|
-
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4726
|
+
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4727
4727
|
ret >>> 0;
|
|
4728
4728
|
};
|
|
4729
4729
|
|
|
@@ -5014,9 +5014,9 @@ function _fd_fdstat_get(fd, pbuf) {
|
|
|
5014
5014
|
}
|
|
5015
5015
|
HEAP8[pbuf >> 0] = type;
|
|
5016
5016
|
HEAP16[pbuf + 2 >> 1] = flags;
|
|
5017
|
-
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5017
|
+
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5018
5018
|
HEAP32[pbuf + 8 >> 2] = tempI64[0], HEAP32[pbuf + 12 >> 2] = tempI64[1];
|
|
5019
|
-
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5019
|
+
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5020
5020
|
HEAP32[pbuf + 16 >> 2] = tempI64[0], HEAP32[pbuf + 20 >> 2] = tempI64[1];
|
|
5021
5021
|
return 0;
|
|
5022
5022
|
} catch (e) {
|
|
@@ -5060,7 +5060,7 @@ function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|
|
5060
5060
|
if (isNaN(offset)) return 61;
|
|
5061
5061
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
5062
5062
|
FS.llseek(stream, offset, whence);
|
|
5063
|
-
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) ],
|
|
5063
|
+
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) ],
|
|
5064
5064
|
HEAP32[newOffset >> 2] = tempI64[0], HEAP32[newOffset + 4 >> 2] = tempI64[1];
|
|
5065
5065
|
if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null;
|
|
5066
5066
|
return 0;
|
|
@@ -6704,16 +6704,16 @@ var _fflush = Module["_fflush"] = function() {
|
|
|
6704
6704
|
return (_fflush = Module["_fflush"] = Module["asm"]["cb"]).apply(null, arguments);
|
|
6705
6705
|
};
|
|
6706
6706
|
|
|
6707
|
-
var
|
|
6708
|
-
return (
|
|
6707
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6708
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["db"]).apply(null, arguments);
|
|
6709
6709
|
};
|
|
6710
6710
|
|
|
6711
|
-
var
|
|
6712
|
-
return (
|
|
6711
|
+
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6712
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["eb"]).apply(null, arguments);
|
|
6713
6713
|
};
|
|
6714
6714
|
|
|
6715
|
-
var
|
|
6716
|
-
return (
|
|
6715
|
+
var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
|
|
6716
|
+
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["fb"]).apply(null, arguments);
|
|
6717
6717
|
};
|
|
6718
6718
|
|
|
6719
6719
|
var _wasm_select = Module["_wasm_select"] = function() {
|
|
@@ -7215,7 +7215,7 @@ DNS.address_map.addrs.localhost = '127.0.0.1';
|
|
|
7215
7215
|
|
|
7216
7216
|
/**
|
|
7217
7217
|
* Debugging Asyncify errors is tricky because the stack trace is lost when the
|
|
7218
|
-
* error is thrown. This code saves the stack trace in a global variable
|
|
7218
|
+
* error is thrown. This code saves the stack trace in a global variable
|
|
7219
7219
|
* so that it can be inspected later.
|
|
7220
7220
|
*/
|
|
7221
7221
|
PHPLoader.debug = 'debug' in PHPLoader ? PHPLoader.debug : true;
|
package/php_7_1.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const dependencyFilename = __dirname + '/7_1_30/php_7_1.wasm';
|
|
2
|
-
|
|
3
|
-
export const dependenciesTotalSize =
|
|
1
|
+
const dependencyFilename = __dirname + '/7_1_30/php_7_1.wasm';
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 11585735;
|
|
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
|
},
|
|
@@ -4009,10 +4009,10 @@ function ___syscall_getdents64(fd, dirp, count) {
|
|
|
4009
4009
|
id = child.id;
|
|
4010
4010
|
type = FS.isChrdev(child.mode) ? 2 : FS.isDir(child.mode) ? 4 : FS.isLink(child.mode) ? 10 : 8;
|
|
4011
4011
|
}
|
|
4012
|
-
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4012
|
+
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4013
4013
|
HEAP32[dirp + pos >> 2] = tempI64[0], HEAP32[dirp + pos + 4 >> 2] = tempI64[1];
|
|
4014
|
-
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4015
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4014
|
+
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4015
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4016
4016
|
HEAP32[dirp + pos + 8 >> 2] = tempI64[0], HEAP32[dirp + pos + 12 >> 2] = tempI64[1];
|
|
4017
4017
|
HEAP16[dirp + pos + 16 >> 1] = 280;
|
|
4018
4018
|
HEAP8[dirp + pos + 18 >> 0] = type;
|
|
@@ -4723,7 +4723,7 @@ var __mktime_js = function(tmPtr) {
|
|
|
4723
4723
|
HEAP32[tmPtr + 20 >> 2] = date.getYear();
|
|
4724
4724
|
return date.getTime() / 1e3;
|
|
4725
4725
|
})();
|
|
4726
|
-
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4726
|
+
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4727
4727
|
ret >>> 0;
|
|
4728
4728
|
};
|
|
4729
4729
|
|
|
@@ -5014,9 +5014,9 @@ function _fd_fdstat_get(fd, pbuf) {
|
|
|
5014
5014
|
}
|
|
5015
5015
|
HEAP8[pbuf >> 0] = type;
|
|
5016
5016
|
HEAP16[pbuf + 2 >> 1] = flags;
|
|
5017
|
-
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5017
|
+
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5018
5018
|
HEAP32[pbuf + 8 >> 2] = tempI64[0], HEAP32[pbuf + 12 >> 2] = tempI64[1];
|
|
5019
|
-
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5019
|
+
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5020
5020
|
HEAP32[pbuf + 16 >> 2] = tempI64[0], HEAP32[pbuf + 20 >> 2] = tempI64[1];
|
|
5021
5021
|
return 0;
|
|
5022
5022
|
} catch (e) {
|
|
@@ -5060,7 +5060,7 @@ function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|
|
5060
5060
|
if (isNaN(offset)) return 61;
|
|
5061
5061
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
5062
5062
|
FS.llseek(stream, offset, whence);
|
|
5063
|
-
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) ],
|
|
5063
|
+
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) ],
|
|
5064
5064
|
HEAP32[newOffset >> 2] = tempI64[0], HEAP32[newOffset + 4 >> 2] = tempI64[1];
|
|
5065
5065
|
if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null;
|
|
5066
5066
|
return 0;
|
|
@@ -6704,16 +6704,16 @@ var _fflush = Module["_fflush"] = function() {
|
|
|
6704
6704
|
return (_fflush = Module["_fflush"] = Module["asm"]["cb"]).apply(null, arguments);
|
|
6705
6705
|
};
|
|
6706
6706
|
|
|
6707
|
-
var
|
|
6708
|
-
return (
|
|
6707
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6708
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["db"]).apply(null, arguments);
|
|
6709
6709
|
};
|
|
6710
6710
|
|
|
6711
|
-
var
|
|
6712
|
-
return (
|
|
6711
|
+
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6712
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["eb"]).apply(null, arguments);
|
|
6713
6713
|
};
|
|
6714
6714
|
|
|
6715
|
-
var
|
|
6716
|
-
return (
|
|
6715
|
+
var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
|
|
6716
|
+
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["fb"]).apply(null, arguments);
|
|
6717
6717
|
};
|
|
6718
6718
|
|
|
6719
6719
|
var _wasm_select = Module["_wasm_select"] = function() {
|
|
@@ -7200,7 +7200,7 @@ DNS.address_map.addrs.localhost = '127.0.0.1';
|
|
|
7200
7200
|
|
|
7201
7201
|
/**
|
|
7202
7202
|
* Debugging Asyncify errors is tricky because the stack trace is lost when the
|
|
7203
|
-
* error is thrown. This code saves the stack trace in a global variable
|
|
7203
|
+
* error is thrown. This code saves the stack trace in a global variable
|
|
7204
7204
|
* so that it can be inspected later.
|
|
7205
7205
|
*/
|
|
7206
7206
|
PHPLoader.debug = 'debug' in PHPLoader ? PHPLoader.debug : true;
|
package/php_7_2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const dependencyFilename = __dirname + '/7_2_34/php_7_2.wasm';
|
|
2
|
-
|
|
3
|
-
export const dependenciesTotalSize =
|
|
1
|
+
const dependencyFilename = __dirname + '/7_2_34/php_7_2.wasm';
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 11969337;
|
|
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
|
},
|
|
@@ -4009,10 +4009,10 @@ function ___syscall_getdents64(fd, dirp, count) {
|
|
|
4009
4009
|
id = child.id;
|
|
4010
4010
|
type = FS.isChrdev(child.mode) ? 2 : FS.isDir(child.mode) ? 4 : FS.isLink(child.mode) ? 10 : 8;
|
|
4011
4011
|
}
|
|
4012
|
-
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4012
|
+
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4013
4013
|
HEAP32[dirp + pos >> 2] = tempI64[0], HEAP32[dirp + pos + 4 >> 2] = tempI64[1];
|
|
4014
|
-
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4015
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4014
|
+
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4015
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4016
4016
|
HEAP32[dirp + pos + 8 >> 2] = tempI64[0], HEAP32[dirp + pos + 12 >> 2] = tempI64[1];
|
|
4017
4017
|
HEAP16[dirp + pos + 16 >> 1] = 280;
|
|
4018
4018
|
HEAP8[dirp + pos + 18 >> 0] = type;
|
|
@@ -4723,7 +4723,7 @@ var __mktime_js = function(tmPtr) {
|
|
|
4723
4723
|
HEAP32[tmPtr + 20 >> 2] = date.getYear();
|
|
4724
4724
|
return date.getTime() / 1e3;
|
|
4725
4725
|
})();
|
|
4726
|
-
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4726
|
+
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4727
4727
|
ret >>> 0;
|
|
4728
4728
|
};
|
|
4729
4729
|
|
|
@@ -5014,9 +5014,9 @@ function _fd_fdstat_get(fd, pbuf) {
|
|
|
5014
5014
|
}
|
|
5015
5015
|
HEAP8[pbuf >> 0] = type;
|
|
5016
5016
|
HEAP16[pbuf + 2 >> 1] = flags;
|
|
5017
|
-
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5017
|
+
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5018
5018
|
HEAP32[pbuf + 8 >> 2] = tempI64[0], HEAP32[pbuf + 12 >> 2] = tempI64[1];
|
|
5019
|
-
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5019
|
+
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5020
5020
|
HEAP32[pbuf + 16 >> 2] = tempI64[0], HEAP32[pbuf + 20 >> 2] = tempI64[1];
|
|
5021
5021
|
return 0;
|
|
5022
5022
|
} catch (e) {
|
|
@@ -5060,7 +5060,7 @@ function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|
|
5060
5060
|
if (isNaN(offset)) return 61;
|
|
5061
5061
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
5062
5062
|
FS.llseek(stream, offset, whence);
|
|
5063
|
-
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) ],
|
|
5063
|
+
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) ],
|
|
5064
5064
|
HEAP32[newOffset >> 2] = tempI64[0], HEAP32[newOffset + 4 >> 2] = tempI64[1];
|
|
5065
5065
|
if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null;
|
|
5066
5066
|
return 0;
|
|
@@ -6705,16 +6705,16 @@ var _fflush = Module["_fflush"] = function() {
|
|
|
6705
6705
|
return (_fflush = Module["_fflush"] = Module["asm"]["db"]).apply(null, arguments);
|
|
6706
6706
|
};
|
|
6707
6707
|
|
|
6708
|
-
var
|
|
6709
|
-
return (
|
|
6708
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6709
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["eb"]).apply(null, arguments);
|
|
6710
6710
|
};
|
|
6711
6711
|
|
|
6712
|
-
var
|
|
6713
|
-
return (
|
|
6712
|
+
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6713
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["fb"]).apply(null, arguments);
|
|
6714
6714
|
};
|
|
6715
6715
|
|
|
6716
|
-
var
|
|
6717
|
-
return (
|
|
6716
|
+
var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
|
|
6717
|
+
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["gb"]).apply(null, arguments);
|
|
6718
6718
|
};
|
|
6719
6719
|
|
|
6720
6720
|
var _wasm_select = Module["_wasm_select"] = function() {
|
|
@@ -7216,7 +7216,7 @@ DNS.address_map.addrs.localhost = '127.0.0.1';
|
|
|
7216
7216
|
|
|
7217
7217
|
/**
|
|
7218
7218
|
* Debugging Asyncify errors is tricky because the stack trace is lost when the
|
|
7219
|
-
* error is thrown. This code saves the stack trace in a global variable
|
|
7219
|
+
* error is thrown. This code saves the stack trace in a global variable
|
|
7220
7220
|
* so that it can be inspected later.
|
|
7221
7221
|
*/
|
|
7222
7222
|
PHPLoader.debug = 'debug' in PHPLoader ? PHPLoader.debug : true;
|
package/php_7_3.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const dependencyFilename = __dirname + '/7_3_33/php_7_3.wasm';
|
|
2
|
-
|
|
3
|
-
export const dependenciesTotalSize =
|
|
1
|
+
const dependencyFilename = __dirname + '/7_3_33/php_7_3.wasm';
|
|
2
|
+
export { dependencyFilename };
|
|
3
|
+
export const dependenciesTotalSize = 11893227;
|
|
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
|
},
|
|
@@ -4009,10 +4009,10 @@ function ___syscall_getdents64(fd, dirp, count) {
|
|
|
4009
4009
|
id = child.id;
|
|
4010
4010
|
type = FS.isChrdev(child.mode) ? 2 : FS.isDir(child.mode) ? 4 : FS.isLink(child.mode) ? 10 : 8;
|
|
4011
4011
|
}
|
|
4012
|
-
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4012
|
+
tempI64 = [ id >>> 0, (tempDouble = id, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4013
4013
|
HEAP32[dirp + pos >> 2] = tempI64[0], HEAP32[dirp + pos + 4 >> 2] = tempI64[1];
|
|
4014
|
-
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4015
|
-
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4014
|
+
tempI64 = [ (idx + 1) * struct_size >>> 0, (tempDouble = (idx + 1) * struct_size,
|
|
4015
|
+
+Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
4016
4016
|
HEAP32[dirp + pos + 8 >> 2] = tempI64[0], HEAP32[dirp + pos + 12 >> 2] = tempI64[1];
|
|
4017
4017
|
HEAP16[dirp + pos + 16 >> 1] = 280;
|
|
4018
4018
|
HEAP8[dirp + pos + 18 >> 0] = type;
|
|
@@ -4723,7 +4723,7 @@ var __mktime_js = function(tmPtr) {
|
|
|
4723
4723
|
HEAP32[tmPtr + 20 >> 2] = date.getYear();
|
|
4724
4724
|
return date.getTime() / 1e3;
|
|
4725
4725
|
})();
|
|
4726
|
-
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4726
|
+
return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)),
|
|
4727
4727
|
ret >>> 0;
|
|
4728
4728
|
};
|
|
4729
4729
|
|
|
@@ -5014,9 +5014,9 @@ function _fd_fdstat_get(fd, pbuf) {
|
|
|
5014
5014
|
}
|
|
5015
5015
|
HEAP8[pbuf >> 0] = type;
|
|
5016
5016
|
HEAP16[pbuf + 2 >> 1] = flags;
|
|
5017
|
-
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5017
|
+
tempI64 = [ rightsBase >>> 0, (tempDouble = rightsBase, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5018
5018
|
HEAP32[pbuf + 8 >> 2] = tempI64[0], HEAP32[pbuf + 12 >> 2] = tempI64[1];
|
|
5019
|
-
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5019
|
+
tempI64 = [ rightsInheriting >>> 0, (tempDouble = rightsInheriting, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0) ],
|
|
5020
5020
|
HEAP32[pbuf + 16 >> 2] = tempI64[0], HEAP32[pbuf + 20 >> 2] = tempI64[1];
|
|
5021
5021
|
return 0;
|
|
5022
5022
|
} catch (e) {
|
|
@@ -5060,7 +5060,7 @@ function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|
|
5060
5060
|
if (isNaN(offset)) return 61;
|
|
5061
5061
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
5062
5062
|
FS.llseek(stream, offset, whence);
|
|
5063
|
-
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) ],
|
|
5063
|
+
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) ],
|
|
5064
5064
|
HEAP32[newOffset >> 2] = tempI64[0], HEAP32[newOffset + 4 >> 2] = tempI64[1];
|
|
5065
5065
|
if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null;
|
|
5066
5066
|
return 0;
|
|
@@ -6822,32 +6822,32 @@ var _fflush = Module["_fflush"] = function() {
|
|
|
6822
6822
|
return (_fflush = Module["_fflush"] = Module["asm"]["bb"]).apply(null, arguments);
|
|
6823
6823
|
};
|
|
6824
6824
|
|
|
6825
|
+
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6826
|
+
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["cb"]).apply(null, arguments);
|
|
6827
|
+
};
|
|
6828
|
+
|
|
6825
6829
|
var _wasm_php_exec = Module["_wasm_php_exec"] = function() {
|
|
6826
|
-
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["
|
|
6830
|
+
return (_wasm_php_exec = Module["_wasm_php_exec"] = Module["asm"]["db"]).apply(null, arguments);
|
|
6827
6831
|
};
|
|
6828
6832
|
|
|
6829
6833
|
var _php_pollfd_for = Module["_php_pollfd_for"] = function() {
|
|
6830
|
-
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["
|
|
6834
|
+
return (_php_pollfd_for = Module["_php_pollfd_for"] = Module["asm"]["eb"]).apply(null, arguments);
|
|
6831
6835
|
};
|
|
6832
6836
|
|
|
6833
6837
|
var _htons = function() {
|
|
6834
|
-
return (_htons = Module["asm"]["
|
|
6838
|
+
return (_htons = Module["asm"]["fb"]).apply(null, arguments);
|
|
6835
6839
|
};
|
|
6836
6840
|
|
|
6837
6841
|
var _ntohs = function() {
|
|
6838
|
-
return (_ntohs = Module["asm"]["
|
|
6842
|
+
return (_ntohs = Module["asm"]["gb"]).apply(null, arguments);
|
|
6839
6843
|
};
|
|
6840
6844
|
|
|
6841
6845
|
var _htonl = function() {
|
|
6842
|
-
return (_htonl = Module["asm"]["
|
|
6846
|
+
return (_htonl = Module["asm"]["hb"]).apply(null, arguments);
|
|
6843
6847
|
};
|
|
6844
6848
|
|
|
6845
6849
|
var _wasm_sleep = Module["_wasm_sleep"] = function() {
|
|
6846
|
-
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["
|
|
6847
|
-
};
|
|
6848
|
-
|
|
6849
|
-
var _wasm_popen = Module["_wasm_popen"] = function() {
|
|
6850
|
-
return (_wasm_popen = Module["_wasm_popen"] = Module["asm"]["ib"]).apply(null, arguments);
|
|
6850
|
+
return (_wasm_sleep = Module["_wasm_sleep"] = Module["asm"]["ib"]).apply(null, arguments);
|
|
6851
6851
|
};
|
|
6852
6852
|
|
|
6853
6853
|
var _wasm_select = Module["_wasm_select"] = function() {
|
|
@@ -7349,7 +7349,7 @@ DNS.address_map.addrs.localhost = '127.0.0.1';
|
|
|
7349
7349
|
|
|
7350
7350
|
/**
|
|
7351
7351
|
* Debugging Asyncify errors is tricky because the stack trace is lost when the
|
|
7352
|
-
* error is thrown. This code saves the stack trace in a global variable
|
|
7352
|
+
* error is thrown. This code saves the stack trace in a global variable
|
|
7353
7353
|
* so that it can be inspected later.
|
|
7354
7354
|
*/
|
|
7355
7355
|
PHPLoader.debug = 'debug' in PHPLoader ? PHPLoader.debug : true;
|