@php-wasm/node 2.0.15 → 2.0.18
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/asyncify/7_2_34/php_7_2.wasm +0 -0
- package/asyncify/7_3_33/php_7_3.wasm +0 -0
- package/asyncify/7_4_33/php_7_4.wasm +0 -0
- package/asyncify/8_0_30/php_8_0.wasm +0 -0
- package/asyncify/8_1_33/php_8_1.wasm +0 -0
- package/asyncify/8_2_29/php_8_2.wasm +0 -0
- package/asyncify/8_3_24/php_8_3.wasm +0 -0
- package/asyncify/8_4_11/php_8_4.wasm +0 -0
- package/asyncify/extensions/intl/7_2/intl.la +35 -0
- package/asyncify/extensions/intl/7_2/intl.so +0 -0
- package/asyncify/extensions/intl/7_3/intl.la +35 -0
- package/asyncify/extensions/intl/7_3/intl.so +0 -0
- package/asyncify/extensions/intl/7_4/intl.la +35 -0
- package/asyncify/extensions/intl/7_4/intl.so +0 -0
- package/asyncify/extensions/intl/8_0/intl.la +35 -0
- package/asyncify/extensions/intl/8_0/intl.so +0 -0
- package/asyncify/extensions/intl/8_1/intl.la +35 -0
- package/asyncify/extensions/intl/8_1/intl.so +0 -0
- package/asyncify/extensions/intl/8_2/intl.la +35 -0
- package/asyncify/extensions/intl/8_2/intl.so +0 -0
- package/asyncify/extensions/intl/8_3/intl.la +35 -0
- package/asyncify/extensions/intl/8_3/intl.so +0 -0
- package/asyncify/extensions/intl/8_4/intl.la +35 -0
- package/asyncify/extensions/intl/8_4/intl.so +0 -0
- package/asyncify/php_7_2.js +82 -83
- package/asyncify/php_7_3.js +82 -83
- package/asyncify/php_7_4.js +82 -83
- package/asyncify/php_8_0.js +82 -83
- package/asyncify/php_8_1.js +82 -83
- package/asyncify/php_8_2.js +82 -83
- package/asyncify/php_8_3.js +82 -83
- package/asyncify/php_8_4.js +82 -83
- package/index.cjs +5338 -7077
- package/index.js +5323 -7062
- package/jspi/{8_3_24 → 8_3_25}/php_8_3.wasm +0 -0
- package/jspi/extensions/intl/8_3/intl.so +0 -0
- package/jspi/php_8_3.js +31519 -34327
- package/package.json +7 -7
- package/asyncify/8_3_23/php_8_3.wasm +0 -0
- package/asyncify/8_4_10/php_8_4.wasm +0 -0
- package/jspi/8_4_10/php_8_4.wasm +0 -0
- package/lib/data/with-icu-data.d.ts +0 -2
- package/shared/icudt74l.dat +0 -0
package/asyncify/php_7_3.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from 'path';
|
|
|
8
8
|
|
|
9
9
|
const dependencyFilename = path.join(__dirname, '7_3_33', 'php_7_3.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 23218224;
|
|
12
12
|
const phpVersionString = '7.3.33';
|
|
13
13
|
export function init(RuntimeName, PHPLoader) {
|
|
14
14
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
@@ -831,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
831
831
|
},
|
|
832
832
|
};
|
|
833
833
|
|
|
834
|
-
var ___heap_base =
|
|
834
|
+
var ___heap_base = 11417728;
|
|
835
835
|
|
|
836
836
|
var alignMemory = (size, alignment) => {
|
|
837
837
|
return Math.ceil(size / alignment) * alignment;
|
|
@@ -995,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
995
995
|
|
|
996
996
|
/** @type {WebAssembly.Table} */
|
|
997
997
|
var wasmTable = new WebAssembly.Table({
|
|
998
|
-
initial:
|
|
998
|
+
initial: 11333,
|
|
999
999
|
element: 'anyfunc',
|
|
1000
1000
|
});
|
|
1001
1001
|
var getWasmTableEntry = (funcPtr) => {
|
|
@@ -1781,88 +1781,18 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
1781
1781
|
);
|
|
1782
1782
|
___call_sighandler.sig = 'vpi';
|
|
1783
1783
|
|
|
1784
|
-
class ExceptionInfo {
|
|
1785
|
-
// excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
|
|
1786
|
-
constructor(excPtr) {
|
|
1787
|
-
this.excPtr = excPtr;
|
|
1788
|
-
this.ptr = excPtr - 24;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
set_type(type) {
|
|
1792
|
-
HEAPU32[(this.ptr + 4) >> 2] = type;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
get_type() {
|
|
1796
|
-
return HEAPU32[(this.ptr + 4) >> 2];
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
set_destructor(destructor) {
|
|
1800
|
-
HEAPU32[(this.ptr + 8) >> 2] = destructor;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
get_destructor() {
|
|
1804
|
-
return HEAPU32[(this.ptr + 8) >> 2];
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
set_caught(caught) {
|
|
1808
|
-
caught = caught ? 1 : 0;
|
|
1809
|
-
HEAP8[this.ptr + 12] = caught;
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
get_caught() {
|
|
1813
|
-
return HEAP8[this.ptr + 12] != 0;
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
set_rethrown(rethrown) {
|
|
1817
|
-
rethrown = rethrown ? 1 : 0;
|
|
1818
|
-
HEAP8[this.ptr + 13] = rethrown;
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
get_rethrown() {
|
|
1822
|
-
return HEAP8[this.ptr + 13] != 0;
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
// Initialize native structure fields. Should be called once after allocated.
|
|
1826
|
-
init(type, destructor) {
|
|
1827
|
-
this.set_adjusted_ptr(0);
|
|
1828
|
-
this.set_type(type);
|
|
1829
|
-
this.set_destructor(destructor);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
set_adjusted_ptr(adjustedPtr) {
|
|
1833
|
-
HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
get_adjusted_ptr() {
|
|
1837
|
-
return HEAPU32[(this.ptr + 16) >> 2];
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
var exceptionLast = 0;
|
|
1842
|
-
|
|
1843
|
-
var uncaughtExceptionCount = 0;
|
|
1844
|
-
var ___cxa_throw = (ptr, type, destructor) => {
|
|
1845
|
-
var info = new ExceptionInfo(ptr);
|
|
1846
|
-
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
|
1847
|
-
info.init(type, destructor);
|
|
1848
|
-
exceptionLast = ptr;
|
|
1849
|
-
uncaughtExceptionCount++;
|
|
1850
|
-
throw exceptionLast;
|
|
1851
|
-
};
|
|
1852
|
-
___cxa_throw.sig = 'vppp';
|
|
1853
|
-
|
|
1854
1784
|
var ___memory_base = new WebAssembly.Global(
|
|
1855
1785
|
{ value: 'i32', mutable: false },
|
|
1856
1786
|
1024
|
|
1857
1787
|
);
|
|
1858
1788
|
|
|
1859
|
-
var ___stack_high =
|
|
1789
|
+
var ___stack_high = 11417728;
|
|
1860
1790
|
|
|
1861
|
-
var ___stack_low =
|
|
1791
|
+
var ___stack_low = 10369152;
|
|
1862
1792
|
|
|
1863
1793
|
var ___stack_pointer = new WebAssembly.Global(
|
|
1864
1794
|
{ value: 'i32', mutable: true },
|
|
1865
|
-
|
|
1795
|
+
11417728
|
|
1866
1796
|
);
|
|
1867
1797
|
|
|
1868
1798
|
var PATH = {
|
|
@@ -19494,6 +19424,75 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
19494
19424
|
var __Unwind_FindEnclosingFunction = (ip) => 0;
|
|
19495
19425
|
__Unwind_FindEnclosingFunction.sig = 'pp';
|
|
19496
19426
|
|
|
19427
|
+
class ExceptionInfo {
|
|
19428
|
+
// excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
|
|
19429
|
+
constructor(excPtr) {
|
|
19430
|
+
this.excPtr = excPtr;
|
|
19431
|
+
this.ptr = excPtr - 24;
|
|
19432
|
+
}
|
|
19433
|
+
|
|
19434
|
+
set_type(type) {
|
|
19435
|
+
HEAPU32[(this.ptr + 4) >> 2] = type;
|
|
19436
|
+
}
|
|
19437
|
+
|
|
19438
|
+
get_type() {
|
|
19439
|
+
return HEAPU32[(this.ptr + 4) >> 2];
|
|
19440
|
+
}
|
|
19441
|
+
|
|
19442
|
+
set_destructor(destructor) {
|
|
19443
|
+
HEAPU32[(this.ptr + 8) >> 2] = destructor;
|
|
19444
|
+
}
|
|
19445
|
+
|
|
19446
|
+
get_destructor() {
|
|
19447
|
+
return HEAPU32[(this.ptr + 8) >> 2];
|
|
19448
|
+
}
|
|
19449
|
+
|
|
19450
|
+
set_caught(caught) {
|
|
19451
|
+
caught = caught ? 1 : 0;
|
|
19452
|
+
HEAP8[this.ptr + 12] = caught;
|
|
19453
|
+
}
|
|
19454
|
+
|
|
19455
|
+
get_caught() {
|
|
19456
|
+
return HEAP8[this.ptr + 12] != 0;
|
|
19457
|
+
}
|
|
19458
|
+
|
|
19459
|
+
set_rethrown(rethrown) {
|
|
19460
|
+
rethrown = rethrown ? 1 : 0;
|
|
19461
|
+
HEAP8[this.ptr + 13] = rethrown;
|
|
19462
|
+
}
|
|
19463
|
+
|
|
19464
|
+
get_rethrown() {
|
|
19465
|
+
return HEAP8[this.ptr + 13] != 0;
|
|
19466
|
+
}
|
|
19467
|
+
|
|
19468
|
+
// Initialize native structure fields. Should be called once after allocated.
|
|
19469
|
+
init(type, destructor) {
|
|
19470
|
+
this.set_adjusted_ptr(0);
|
|
19471
|
+
this.set_type(type);
|
|
19472
|
+
this.set_destructor(destructor);
|
|
19473
|
+
}
|
|
19474
|
+
|
|
19475
|
+
set_adjusted_ptr(adjustedPtr) {
|
|
19476
|
+
HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
|
|
19477
|
+
}
|
|
19478
|
+
|
|
19479
|
+
get_adjusted_ptr() {
|
|
19480
|
+
return HEAPU32[(this.ptr + 16) >> 2];
|
|
19481
|
+
}
|
|
19482
|
+
}
|
|
19483
|
+
|
|
19484
|
+
var exceptionLast = 0;
|
|
19485
|
+
|
|
19486
|
+
var uncaughtExceptionCount = 0;
|
|
19487
|
+
var ___cxa_throw = (ptr, type, destructor) => {
|
|
19488
|
+
var info = new ExceptionInfo(ptr);
|
|
19489
|
+
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
|
19490
|
+
info.init(type, destructor);
|
|
19491
|
+
exceptionLast = ptr;
|
|
19492
|
+
uncaughtExceptionCount++;
|
|
19493
|
+
throw exceptionLast;
|
|
19494
|
+
};
|
|
19495
|
+
___cxa_throw.sig = 'vppp';
|
|
19497
19496
|
var __Unwind_RaiseException = (ex) => {
|
|
19498
19497
|
err('Warning: _Unwind_RaiseException is not correctly implemented');
|
|
19499
19498
|
return ___cxa_throw(ex, 0, 0);
|
|
@@ -32100,13 +32099,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
32100
32099
|
// End JS library code
|
|
32101
32100
|
|
|
32102
32101
|
var ASM_CONSTS = {
|
|
32103
|
-
|
|
32102
|
+
10210573: ($0) => {
|
|
32104
32103
|
if (!$0) {
|
|
32105
32104
|
AL.alcErr = 0xa004;
|
|
32106
32105
|
return 1;
|
|
32107
32106
|
}
|
|
32108
32107
|
},
|
|
32109
|
-
|
|
32108
|
+
10210621: ($0) => {
|
|
32110
32109
|
if (!AL.currentCtx) {
|
|
32111
32110
|
err('alGetProcAddress() called without a valid context');
|
|
32112
32111
|
return 1;
|
|
@@ -35138,14 +35137,14 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
35138
35137
|
var _emscripten_stack_get_current = () =>
|
|
35139
35138
|
(_emscripten_stack_get_current =
|
|
35140
35139
|
wasmExports['emscripten_stack_get_current'])();
|
|
35141
|
-
var
|
|
35142
|
-
(
|
|
35143
|
-
wasmExports['__cxa_decrement_exception_refcount'])(a0);
|
|
35140
|
+
var ___cxa_demangle = (a0, a1, a2, a3) =>
|
|
35141
|
+
(___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
|
|
35144
35142
|
var ___cxa_increment_exception_refcount = (a0) =>
|
|
35145
35143
|
(___cxa_increment_exception_refcount =
|
|
35146
35144
|
wasmExports['__cxa_increment_exception_refcount'])(a0);
|
|
35147
|
-
var
|
|
35148
|
-
(
|
|
35145
|
+
var ___cxa_decrement_exception_refcount = (a0) =>
|
|
35146
|
+
(___cxa_decrement_exception_refcount =
|
|
35147
|
+
wasmExports['__cxa_decrement_exception_refcount'])(a0);
|
|
35149
35148
|
var ___cxa_can_catch = (a0, a1, a2) =>
|
|
35150
35149
|
(___cxa_can_catch = wasmExports['__cxa_can_catch'])(a0, a1, a2);
|
|
35151
35150
|
var ___cxa_get_exception_ptr = (a0) =>
|
package/asyncify/php_7_4.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from 'path';
|
|
|
8
8
|
|
|
9
9
|
const dependencyFilename = path.join(__dirname, '7_4_33', 'php_7_4.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 23626796;
|
|
12
12
|
const phpVersionString = '7.4.33';
|
|
13
13
|
export function init(RuntimeName, PHPLoader) {
|
|
14
14
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
@@ -831,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
831
831
|
},
|
|
832
832
|
};
|
|
833
833
|
|
|
834
|
-
var ___heap_base =
|
|
834
|
+
var ___heap_base = 11742016;
|
|
835
835
|
|
|
836
836
|
var alignMemory = (size, alignment) => {
|
|
837
837
|
return Math.ceil(size / alignment) * alignment;
|
|
@@ -995,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
995
995
|
|
|
996
996
|
/** @type {WebAssembly.Table} */
|
|
997
997
|
var wasmTable = new WebAssembly.Table({
|
|
998
|
-
initial:
|
|
998
|
+
initial: 11124,
|
|
999
999
|
element: 'anyfunc',
|
|
1000
1000
|
});
|
|
1001
1001
|
var getWasmTableEntry = (funcPtr) => {
|
|
@@ -1781,88 +1781,18 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
1781
1781
|
);
|
|
1782
1782
|
___call_sighandler.sig = 'vpi';
|
|
1783
1783
|
|
|
1784
|
-
class ExceptionInfo {
|
|
1785
|
-
// excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
|
|
1786
|
-
constructor(excPtr) {
|
|
1787
|
-
this.excPtr = excPtr;
|
|
1788
|
-
this.ptr = excPtr - 24;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
set_type(type) {
|
|
1792
|
-
HEAPU32[(this.ptr + 4) >> 2] = type;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
get_type() {
|
|
1796
|
-
return HEAPU32[(this.ptr + 4) >> 2];
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
set_destructor(destructor) {
|
|
1800
|
-
HEAPU32[(this.ptr + 8) >> 2] = destructor;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
get_destructor() {
|
|
1804
|
-
return HEAPU32[(this.ptr + 8) >> 2];
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
set_caught(caught) {
|
|
1808
|
-
caught = caught ? 1 : 0;
|
|
1809
|
-
HEAP8[this.ptr + 12] = caught;
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
get_caught() {
|
|
1813
|
-
return HEAP8[this.ptr + 12] != 0;
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
set_rethrown(rethrown) {
|
|
1817
|
-
rethrown = rethrown ? 1 : 0;
|
|
1818
|
-
HEAP8[this.ptr + 13] = rethrown;
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
get_rethrown() {
|
|
1822
|
-
return HEAP8[this.ptr + 13] != 0;
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
// Initialize native structure fields. Should be called once after allocated.
|
|
1826
|
-
init(type, destructor) {
|
|
1827
|
-
this.set_adjusted_ptr(0);
|
|
1828
|
-
this.set_type(type);
|
|
1829
|
-
this.set_destructor(destructor);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
set_adjusted_ptr(adjustedPtr) {
|
|
1833
|
-
HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
get_adjusted_ptr() {
|
|
1837
|
-
return HEAPU32[(this.ptr + 16) >> 2];
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
var exceptionLast = 0;
|
|
1842
|
-
|
|
1843
|
-
var uncaughtExceptionCount = 0;
|
|
1844
|
-
var ___cxa_throw = (ptr, type, destructor) => {
|
|
1845
|
-
var info = new ExceptionInfo(ptr);
|
|
1846
|
-
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
|
1847
|
-
info.init(type, destructor);
|
|
1848
|
-
exceptionLast = ptr;
|
|
1849
|
-
uncaughtExceptionCount++;
|
|
1850
|
-
throw exceptionLast;
|
|
1851
|
-
};
|
|
1852
|
-
___cxa_throw.sig = 'vppp';
|
|
1853
|
-
|
|
1854
1784
|
var ___memory_base = new WebAssembly.Global(
|
|
1855
1785
|
{ value: 'i32', mutable: false },
|
|
1856
1786
|
1024
|
|
1857
1787
|
);
|
|
1858
1788
|
|
|
1859
|
-
var ___stack_high =
|
|
1789
|
+
var ___stack_high = 11742016;
|
|
1860
1790
|
|
|
1861
|
-
var ___stack_low =
|
|
1791
|
+
var ___stack_low = 10693440;
|
|
1862
1792
|
|
|
1863
1793
|
var ___stack_pointer = new WebAssembly.Global(
|
|
1864
1794
|
{ value: 'i32', mutable: true },
|
|
1865
|
-
|
|
1795
|
+
11742016
|
|
1866
1796
|
);
|
|
1867
1797
|
|
|
1868
1798
|
var PATH = {
|
|
@@ -19498,6 +19428,75 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
19498
19428
|
var __Unwind_FindEnclosingFunction = (ip) => 0;
|
|
19499
19429
|
__Unwind_FindEnclosingFunction.sig = 'pp';
|
|
19500
19430
|
|
|
19431
|
+
class ExceptionInfo {
|
|
19432
|
+
// excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
|
|
19433
|
+
constructor(excPtr) {
|
|
19434
|
+
this.excPtr = excPtr;
|
|
19435
|
+
this.ptr = excPtr - 24;
|
|
19436
|
+
}
|
|
19437
|
+
|
|
19438
|
+
set_type(type) {
|
|
19439
|
+
HEAPU32[(this.ptr + 4) >> 2] = type;
|
|
19440
|
+
}
|
|
19441
|
+
|
|
19442
|
+
get_type() {
|
|
19443
|
+
return HEAPU32[(this.ptr + 4) >> 2];
|
|
19444
|
+
}
|
|
19445
|
+
|
|
19446
|
+
set_destructor(destructor) {
|
|
19447
|
+
HEAPU32[(this.ptr + 8) >> 2] = destructor;
|
|
19448
|
+
}
|
|
19449
|
+
|
|
19450
|
+
get_destructor() {
|
|
19451
|
+
return HEAPU32[(this.ptr + 8) >> 2];
|
|
19452
|
+
}
|
|
19453
|
+
|
|
19454
|
+
set_caught(caught) {
|
|
19455
|
+
caught = caught ? 1 : 0;
|
|
19456
|
+
HEAP8[this.ptr + 12] = caught;
|
|
19457
|
+
}
|
|
19458
|
+
|
|
19459
|
+
get_caught() {
|
|
19460
|
+
return HEAP8[this.ptr + 12] != 0;
|
|
19461
|
+
}
|
|
19462
|
+
|
|
19463
|
+
set_rethrown(rethrown) {
|
|
19464
|
+
rethrown = rethrown ? 1 : 0;
|
|
19465
|
+
HEAP8[this.ptr + 13] = rethrown;
|
|
19466
|
+
}
|
|
19467
|
+
|
|
19468
|
+
get_rethrown() {
|
|
19469
|
+
return HEAP8[this.ptr + 13] != 0;
|
|
19470
|
+
}
|
|
19471
|
+
|
|
19472
|
+
// Initialize native structure fields. Should be called once after allocated.
|
|
19473
|
+
init(type, destructor) {
|
|
19474
|
+
this.set_adjusted_ptr(0);
|
|
19475
|
+
this.set_type(type);
|
|
19476
|
+
this.set_destructor(destructor);
|
|
19477
|
+
}
|
|
19478
|
+
|
|
19479
|
+
set_adjusted_ptr(adjustedPtr) {
|
|
19480
|
+
HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
|
|
19481
|
+
}
|
|
19482
|
+
|
|
19483
|
+
get_adjusted_ptr() {
|
|
19484
|
+
return HEAPU32[(this.ptr + 16) >> 2];
|
|
19485
|
+
}
|
|
19486
|
+
}
|
|
19487
|
+
|
|
19488
|
+
var exceptionLast = 0;
|
|
19489
|
+
|
|
19490
|
+
var uncaughtExceptionCount = 0;
|
|
19491
|
+
var ___cxa_throw = (ptr, type, destructor) => {
|
|
19492
|
+
var info = new ExceptionInfo(ptr);
|
|
19493
|
+
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
|
19494
|
+
info.init(type, destructor);
|
|
19495
|
+
exceptionLast = ptr;
|
|
19496
|
+
uncaughtExceptionCount++;
|
|
19497
|
+
throw exceptionLast;
|
|
19498
|
+
};
|
|
19499
|
+
___cxa_throw.sig = 'vppp';
|
|
19501
19500
|
var __Unwind_RaiseException = (ex) => {
|
|
19502
19501
|
err('Warning: _Unwind_RaiseException is not correctly implemented');
|
|
19503
19502
|
return ___cxa_throw(ex, 0, 0);
|
|
@@ -32100,13 +32099,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
32100
32099
|
// End JS library code
|
|
32101
32100
|
|
|
32102
32101
|
var ASM_CONSTS = {
|
|
32103
|
-
|
|
32102
|
+
10534317: ($0) => {
|
|
32104
32103
|
if (!$0) {
|
|
32105
32104
|
AL.alcErr = 0xa004;
|
|
32106
32105
|
return 1;
|
|
32107
32106
|
}
|
|
32108
32107
|
},
|
|
32109
|
-
|
|
32108
|
+
10534365: ($0) => {
|
|
32110
32109
|
if (!AL.currentCtx) {
|
|
32111
32110
|
err('alGetProcAddress() called without a valid context');
|
|
32112
32111
|
return 1;
|
|
@@ -35140,14 +35139,14 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
35140
35139
|
var _emscripten_stack_get_current = () =>
|
|
35141
35140
|
(_emscripten_stack_get_current =
|
|
35142
35141
|
wasmExports['emscripten_stack_get_current'])();
|
|
35143
|
-
var
|
|
35144
|
-
(
|
|
35145
|
-
wasmExports['__cxa_decrement_exception_refcount'])(a0);
|
|
35142
|
+
var ___cxa_demangle = (a0, a1, a2, a3) =>
|
|
35143
|
+
(___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
|
|
35146
35144
|
var ___cxa_increment_exception_refcount = (a0) =>
|
|
35147
35145
|
(___cxa_increment_exception_refcount =
|
|
35148
35146
|
wasmExports['__cxa_increment_exception_refcount'])(a0);
|
|
35149
|
-
var
|
|
35150
|
-
(
|
|
35147
|
+
var ___cxa_decrement_exception_refcount = (a0) =>
|
|
35148
|
+
(___cxa_decrement_exception_refcount =
|
|
35149
|
+
wasmExports['__cxa_decrement_exception_refcount'])(a0);
|
|
35151
35150
|
var ___cxa_can_catch = (a0, a1, a2) =>
|
|
35152
35151
|
(___cxa_can_catch = wasmExports['__cxa_can_catch'])(a0, a1, a2);
|
|
35153
35152
|
var ___cxa_get_exception_ptr = (a0) =>
|
package/asyncify/php_8_0.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from 'path';
|
|
|
8
8
|
|
|
9
9
|
const dependencyFilename = path.join(__dirname, '8_0_30', 'php_8_0.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 24845844;
|
|
12
12
|
const phpVersionString = '8.0.30';
|
|
13
13
|
export function init(RuntimeName, PHPLoader) {
|
|
14
14
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
@@ -831,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
831
831
|
},
|
|
832
832
|
};
|
|
833
833
|
|
|
834
|
-
var ___heap_base =
|
|
834
|
+
var ___heap_base = 12842368;
|
|
835
835
|
|
|
836
836
|
var alignMemory = (size, alignment) => {
|
|
837
837
|
return Math.ceil(size / alignment) * alignment;
|
|
@@ -995,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
995
995
|
|
|
996
996
|
/** @type {WebAssembly.Table} */
|
|
997
997
|
var wasmTable = new WebAssembly.Table({
|
|
998
|
-
initial:
|
|
998
|
+
initial: 11262,
|
|
999
999
|
element: 'anyfunc',
|
|
1000
1000
|
});
|
|
1001
1001
|
var getWasmTableEntry = (funcPtr) => {
|
|
@@ -1781,88 +1781,18 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
1781
1781
|
);
|
|
1782
1782
|
___call_sighandler.sig = 'vpi';
|
|
1783
1783
|
|
|
1784
|
-
class ExceptionInfo {
|
|
1785
|
-
// excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
|
|
1786
|
-
constructor(excPtr) {
|
|
1787
|
-
this.excPtr = excPtr;
|
|
1788
|
-
this.ptr = excPtr - 24;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
set_type(type) {
|
|
1792
|
-
HEAPU32[(this.ptr + 4) >> 2] = type;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
get_type() {
|
|
1796
|
-
return HEAPU32[(this.ptr + 4) >> 2];
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
set_destructor(destructor) {
|
|
1800
|
-
HEAPU32[(this.ptr + 8) >> 2] = destructor;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
get_destructor() {
|
|
1804
|
-
return HEAPU32[(this.ptr + 8) >> 2];
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
set_caught(caught) {
|
|
1808
|
-
caught = caught ? 1 : 0;
|
|
1809
|
-
HEAP8[this.ptr + 12] = caught;
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
get_caught() {
|
|
1813
|
-
return HEAP8[this.ptr + 12] != 0;
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
set_rethrown(rethrown) {
|
|
1817
|
-
rethrown = rethrown ? 1 : 0;
|
|
1818
|
-
HEAP8[this.ptr + 13] = rethrown;
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
get_rethrown() {
|
|
1822
|
-
return HEAP8[this.ptr + 13] != 0;
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
// Initialize native structure fields. Should be called once after allocated.
|
|
1826
|
-
init(type, destructor) {
|
|
1827
|
-
this.set_adjusted_ptr(0);
|
|
1828
|
-
this.set_type(type);
|
|
1829
|
-
this.set_destructor(destructor);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
set_adjusted_ptr(adjustedPtr) {
|
|
1833
|
-
HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
get_adjusted_ptr() {
|
|
1837
|
-
return HEAPU32[(this.ptr + 16) >> 2];
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
var exceptionLast = 0;
|
|
1842
|
-
|
|
1843
|
-
var uncaughtExceptionCount = 0;
|
|
1844
|
-
var ___cxa_throw = (ptr, type, destructor) => {
|
|
1845
|
-
var info = new ExceptionInfo(ptr);
|
|
1846
|
-
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
|
1847
|
-
info.init(type, destructor);
|
|
1848
|
-
exceptionLast = ptr;
|
|
1849
|
-
uncaughtExceptionCount++;
|
|
1850
|
-
throw exceptionLast;
|
|
1851
|
-
};
|
|
1852
|
-
___cxa_throw.sig = 'vppp';
|
|
1853
|
-
|
|
1854
1784
|
var ___memory_base = new WebAssembly.Global(
|
|
1855
1785
|
{ value: 'i32', mutable: false },
|
|
1856
1786
|
1024
|
|
1857
1787
|
);
|
|
1858
1788
|
|
|
1859
|
-
var ___stack_high =
|
|
1789
|
+
var ___stack_high = 12842368;
|
|
1860
1790
|
|
|
1861
|
-
var ___stack_low =
|
|
1791
|
+
var ___stack_low = 11793792;
|
|
1862
1792
|
|
|
1863
1793
|
var ___stack_pointer = new WebAssembly.Global(
|
|
1864
1794
|
{ value: 'i32', mutable: true },
|
|
1865
|
-
|
|
1795
|
+
12842368
|
|
1866
1796
|
);
|
|
1867
1797
|
|
|
1868
1798
|
var PATH = {
|
|
@@ -19498,6 +19428,75 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
19498
19428
|
var __Unwind_FindEnclosingFunction = (ip) => 0;
|
|
19499
19429
|
__Unwind_FindEnclosingFunction.sig = 'pp';
|
|
19500
19430
|
|
|
19431
|
+
class ExceptionInfo {
|
|
19432
|
+
// excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
|
|
19433
|
+
constructor(excPtr) {
|
|
19434
|
+
this.excPtr = excPtr;
|
|
19435
|
+
this.ptr = excPtr - 24;
|
|
19436
|
+
}
|
|
19437
|
+
|
|
19438
|
+
set_type(type) {
|
|
19439
|
+
HEAPU32[(this.ptr + 4) >> 2] = type;
|
|
19440
|
+
}
|
|
19441
|
+
|
|
19442
|
+
get_type() {
|
|
19443
|
+
return HEAPU32[(this.ptr + 4) >> 2];
|
|
19444
|
+
}
|
|
19445
|
+
|
|
19446
|
+
set_destructor(destructor) {
|
|
19447
|
+
HEAPU32[(this.ptr + 8) >> 2] = destructor;
|
|
19448
|
+
}
|
|
19449
|
+
|
|
19450
|
+
get_destructor() {
|
|
19451
|
+
return HEAPU32[(this.ptr + 8) >> 2];
|
|
19452
|
+
}
|
|
19453
|
+
|
|
19454
|
+
set_caught(caught) {
|
|
19455
|
+
caught = caught ? 1 : 0;
|
|
19456
|
+
HEAP8[this.ptr + 12] = caught;
|
|
19457
|
+
}
|
|
19458
|
+
|
|
19459
|
+
get_caught() {
|
|
19460
|
+
return HEAP8[this.ptr + 12] != 0;
|
|
19461
|
+
}
|
|
19462
|
+
|
|
19463
|
+
set_rethrown(rethrown) {
|
|
19464
|
+
rethrown = rethrown ? 1 : 0;
|
|
19465
|
+
HEAP8[this.ptr + 13] = rethrown;
|
|
19466
|
+
}
|
|
19467
|
+
|
|
19468
|
+
get_rethrown() {
|
|
19469
|
+
return HEAP8[this.ptr + 13] != 0;
|
|
19470
|
+
}
|
|
19471
|
+
|
|
19472
|
+
// Initialize native structure fields. Should be called once after allocated.
|
|
19473
|
+
init(type, destructor) {
|
|
19474
|
+
this.set_adjusted_ptr(0);
|
|
19475
|
+
this.set_type(type);
|
|
19476
|
+
this.set_destructor(destructor);
|
|
19477
|
+
}
|
|
19478
|
+
|
|
19479
|
+
set_adjusted_ptr(adjustedPtr) {
|
|
19480
|
+
HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
|
|
19481
|
+
}
|
|
19482
|
+
|
|
19483
|
+
get_adjusted_ptr() {
|
|
19484
|
+
return HEAPU32[(this.ptr + 16) >> 2];
|
|
19485
|
+
}
|
|
19486
|
+
}
|
|
19487
|
+
|
|
19488
|
+
var exceptionLast = 0;
|
|
19489
|
+
|
|
19490
|
+
var uncaughtExceptionCount = 0;
|
|
19491
|
+
var ___cxa_throw = (ptr, type, destructor) => {
|
|
19492
|
+
var info = new ExceptionInfo(ptr);
|
|
19493
|
+
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
|
19494
|
+
info.init(type, destructor);
|
|
19495
|
+
exceptionLast = ptr;
|
|
19496
|
+
uncaughtExceptionCount++;
|
|
19497
|
+
throw exceptionLast;
|
|
19498
|
+
};
|
|
19499
|
+
___cxa_throw.sig = 'vppp';
|
|
19501
19500
|
var __Unwind_RaiseException = (ex) => {
|
|
19502
19501
|
err('Warning: _Unwind_RaiseException is not correctly implemented');
|
|
19503
19502
|
return ___cxa_throw(ex, 0, 0);
|
|
@@ -32100,13 +32099,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
32100
32099
|
// End JS library code
|
|
32101
32100
|
|
|
32102
32101
|
var ASM_CONSTS = {
|
|
32103
|
-
|
|
32102
|
+
11563901: ($0) => {
|
|
32104
32103
|
if (!$0) {
|
|
32105
32104
|
AL.alcErr = 0xa004;
|
|
32106
32105
|
return 1;
|
|
32107
32106
|
}
|
|
32108
32107
|
},
|
|
32109
|
-
|
|
32108
|
+
11563949: ($0) => {
|
|
32110
32109
|
if (!AL.currentCtx) {
|
|
32111
32110
|
err('alGetProcAddress() called without a valid context');
|
|
32112
32111
|
return 1;
|
|
@@ -35142,14 +35141,14 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
35142
35141
|
var _emscripten_stack_get_current = () =>
|
|
35143
35142
|
(_emscripten_stack_get_current =
|
|
35144
35143
|
wasmExports['emscripten_stack_get_current'])();
|
|
35145
|
-
var
|
|
35146
|
-
(
|
|
35147
|
-
wasmExports['__cxa_decrement_exception_refcount'])(a0);
|
|
35144
|
+
var ___cxa_demangle = (a0, a1, a2, a3) =>
|
|
35145
|
+
(___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
|
|
35148
35146
|
var ___cxa_increment_exception_refcount = (a0) =>
|
|
35149
35147
|
(___cxa_increment_exception_refcount =
|
|
35150
35148
|
wasmExports['__cxa_increment_exception_refcount'])(a0);
|
|
35151
|
-
var
|
|
35152
|
-
(
|
|
35149
|
+
var ___cxa_decrement_exception_refcount = (a0) =>
|
|
35150
|
+
(___cxa_decrement_exception_refcount =
|
|
35151
|
+
wasmExports['__cxa_decrement_exception_refcount'])(a0);
|
|
35153
35152
|
var ___cxa_can_catch = (a0, a1, a2) =>
|
|
35154
35153
|
(___cxa_can_catch = wasmExports['__cxa_can_catch'])(a0, a1, a2);
|
|
35155
35154
|
var ___cxa_get_exception_ptr = (a0) =>
|