@php-wasm/node 2.0.15 → 2.0.16
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_8_4.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from 'path';
|
|
|
8
8
|
|
|
9
9
|
const dependencyFilename = path.join(__dirname, '8_4_11', 'php_8_4.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 30324415;
|
|
12
12
|
const phpVersionString = '8.4.11';
|
|
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 = 16972416;
|
|
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: 12454,
|
|
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 = 16972416;
|
|
1860
1790
|
|
|
1861
|
-
var ___stack_low =
|
|
1791
|
+
var ___stack_low = 15923840;
|
|
1862
1792
|
|
|
1863
1793
|
var ___stack_pointer = new WebAssembly.Global(
|
|
1864
1794
|
{ value: 'i32', mutable: true },
|
|
1865
|
-
|
|
1795
|
+
16972416
|
|
1866
1796
|
);
|
|
1867
1797
|
|
|
1868
1798
|
var PATH = {
|
|
@@ -19506,6 +19436,75 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
19506
19436
|
var __Unwind_FindEnclosingFunction = (ip) => 0;
|
|
19507
19437
|
__Unwind_FindEnclosingFunction.sig = 'pp';
|
|
19508
19438
|
|
|
19439
|
+
class ExceptionInfo {
|
|
19440
|
+
// excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
|
|
19441
|
+
constructor(excPtr) {
|
|
19442
|
+
this.excPtr = excPtr;
|
|
19443
|
+
this.ptr = excPtr - 24;
|
|
19444
|
+
}
|
|
19445
|
+
|
|
19446
|
+
set_type(type) {
|
|
19447
|
+
HEAPU32[(this.ptr + 4) >> 2] = type;
|
|
19448
|
+
}
|
|
19449
|
+
|
|
19450
|
+
get_type() {
|
|
19451
|
+
return HEAPU32[(this.ptr + 4) >> 2];
|
|
19452
|
+
}
|
|
19453
|
+
|
|
19454
|
+
set_destructor(destructor) {
|
|
19455
|
+
HEAPU32[(this.ptr + 8) >> 2] = destructor;
|
|
19456
|
+
}
|
|
19457
|
+
|
|
19458
|
+
get_destructor() {
|
|
19459
|
+
return HEAPU32[(this.ptr + 8) >> 2];
|
|
19460
|
+
}
|
|
19461
|
+
|
|
19462
|
+
set_caught(caught) {
|
|
19463
|
+
caught = caught ? 1 : 0;
|
|
19464
|
+
HEAP8[this.ptr + 12] = caught;
|
|
19465
|
+
}
|
|
19466
|
+
|
|
19467
|
+
get_caught() {
|
|
19468
|
+
return HEAP8[this.ptr + 12] != 0;
|
|
19469
|
+
}
|
|
19470
|
+
|
|
19471
|
+
set_rethrown(rethrown) {
|
|
19472
|
+
rethrown = rethrown ? 1 : 0;
|
|
19473
|
+
HEAP8[this.ptr + 13] = rethrown;
|
|
19474
|
+
}
|
|
19475
|
+
|
|
19476
|
+
get_rethrown() {
|
|
19477
|
+
return HEAP8[this.ptr + 13] != 0;
|
|
19478
|
+
}
|
|
19479
|
+
|
|
19480
|
+
// Initialize native structure fields. Should be called once after allocated.
|
|
19481
|
+
init(type, destructor) {
|
|
19482
|
+
this.set_adjusted_ptr(0);
|
|
19483
|
+
this.set_type(type);
|
|
19484
|
+
this.set_destructor(destructor);
|
|
19485
|
+
}
|
|
19486
|
+
|
|
19487
|
+
set_adjusted_ptr(adjustedPtr) {
|
|
19488
|
+
HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
|
|
19489
|
+
}
|
|
19490
|
+
|
|
19491
|
+
get_adjusted_ptr() {
|
|
19492
|
+
return HEAPU32[(this.ptr + 16) >> 2];
|
|
19493
|
+
}
|
|
19494
|
+
}
|
|
19495
|
+
|
|
19496
|
+
var exceptionLast = 0;
|
|
19497
|
+
|
|
19498
|
+
var uncaughtExceptionCount = 0;
|
|
19499
|
+
var ___cxa_throw = (ptr, type, destructor) => {
|
|
19500
|
+
var info = new ExceptionInfo(ptr);
|
|
19501
|
+
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
|
19502
|
+
info.init(type, destructor);
|
|
19503
|
+
exceptionLast = ptr;
|
|
19504
|
+
uncaughtExceptionCount++;
|
|
19505
|
+
throw exceptionLast;
|
|
19506
|
+
};
|
|
19507
|
+
___cxa_throw.sig = 'vppp';
|
|
19509
19508
|
var __Unwind_RaiseException = (ex) => {
|
|
19510
19509
|
err('Warning: _Unwind_RaiseException is not correctly implemented');
|
|
19511
19510
|
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
|
+
15723805: ($0) => {
|
|
32104
32103
|
if (!$0) {
|
|
32105
32104
|
AL.alcErr = 0xa004;
|
|
32106
32105
|
return 1;
|
|
32107
32106
|
}
|
|
32108
32107
|
},
|
|
32109
|
-
|
|
32108
|
+
15723853: ($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) =>
|