@php-wasm/node 2.0.19 → 2.0.21
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_25/php_8_3.wasm +0 -0
- package/asyncify/8_4_12/php_8_4.wasm +0 -0
- package/asyncify/php_7_2.js +3 -3
- package/asyncify/php_7_3.js +3 -3
- package/asyncify/php_7_4.js +7 -7
- package/asyncify/php_8_0.js +3 -3
- package/asyncify/php_8_1.js +1 -1
- package/asyncify/php_8_2.js +1 -1
- package/asyncify/php_8_3.js +7 -7
- package/asyncify/php_8_4.js +1 -1
- package/index.cjs +70 -70
- package/index.js +70 -70
- package/jspi/7_2_34/php_7_2.wasm +0 -0
- package/jspi/7_3_33/php_7_3.wasm +0 -0
- package/jspi/7_4_33/php_7_4.wasm +0 -0
- package/jspi/8_0_30/php_8_0.wasm +0 -0
- package/jspi/8_1_33/php_8_1.wasm +0 -0
- package/jspi/8_2_29/php_8_2.wasm +0 -0
- package/jspi/8_3_25/php_8_3.wasm +0 -0
- package/jspi/8_4_12/php_8_4.wasm +0 -0
- package/jspi/php_7_2.js +8 -8
- package/jspi/php_7_3.js +4 -4
- package/jspi/php_7_4.js +4 -4
- package/jspi/php_8_0.js +8 -8
- package/jspi/php_8_1.js +2 -2
- package/jspi/php_8_2.js +8 -8
- package/jspi/php_8_3.js +8 -8
- package/jspi/php_8_4.js +2 -2
- package/package.json +7 -7
package/jspi/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 = 24293572;
|
|
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
|
|
@@ -848,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
848
848
|
},
|
|
849
849
|
};
|
|
850
850
|
|
|
851
|
-
var ___heap_base =
|
|
851
|
+
var ___heap_base = 12843552;
|
|
852
852
|
|
|
853
853
|
var alignMemory = (size, alignment) => {
|
|
854
854
|
return Math.ceil(size / alignment) * alignment;
|
|
@@ -1743,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
1743
1743
|
1024
|
|
1744
1744
|
);
|
|
1745
1745
|
|
|
1746
|
-
var ___stack_high =
|
|
1746
|
+
var ___stack_high = 12843552;
|
|
1747
1747
|
|
|
1748
|
-
var ___stack_low =
|
|
1748
|
+
var ___stack_low = 11794976;
|
|
1749
1749
|
|
|
1750
1750
|
var ___stack_pointer = new WebAssembly.Global(
|
|
1751
1751
|
{ value: 'i32', mutable: true },
|
|
1752
|
-
|
|
1752
|
+
12843552
|
|
1753
1753
|
);
|
|
1754
1754
|
|
|
1755
1755
|
var PATH = {
|
|
@@ -18262,7 +18262,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
18262
18262
|
},
|
|
18263
18263
|
instrumentWasmExports(exports) {
|
|
18264
18264
|
var exportPattern =
|
|
18265
|
-
/^(php_wasm_init|
|
|
18265
|
+
/^(php_wasm_init|wasm_sleep|wasm_read|emscripten_sleep|wasm_sapi_handle_request|wasm_sapi_request_shutdown|wasm_poll_socket|wrap_select|__wrap_select|select|php_pollfd_for|fflush|wasm_popen|wasm_read|wasm_php_exec|run_cli|wasm_recv|fd_close|main|__main_argc_argv)$/;
|
|
18266
18266
|
Asyncify.asyncExports = new Set();
|
|
18267
18267
|
var ret = {};
|
|
18268
18268
|
for (let [x, original] of Object.entries(exports)) {
|
|
@@ -31275,13 +31275,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
31275
31275
|
// End JS library code
|
|
31276
31276
|
|
|
31277
31277
|
var ASM_CONSTS = {
|
|
31278
|
-
|
|
31278
|
+
11564558: ($0) => {
|
|
31279
31279
|
if (!$0) {
|
|
31280
31280
|
AL.alcErr = 0xa004;
|
|
31281
31281
|
return 1;
|
|
31282
31282
|
}
|
|
31283
31283
|
},
|
|
31284
|
-
|
|
31284
|
+
11564606: ($0) => {
|
|
31285
31285
|
if (!AL.currentCtx) {
|
|
31286
31286
|
err('alGetProcAddress() called without a valid context');
|
|
31287
31287
|
return 1;
|
package/jspi/php_8_1.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from 'path';
|
|
|
8
8
|
|
|
9
9
|
const dependencyFilename = path.join(__dirname, '8_1_33', 'php_8_1.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 24628805;
|
|
12
12
|
const phpVersionString = '8.1.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
|
|
@@ -18268,7 +18268,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
18268
18268
|
},
|
|
18269
18269
|
instrumentWasmExports(exports) {
|
|
18270
18270
|
var exportPattern =
|
|
18271
|
-
/^(php_wasm_init|
|
|
18271
|
+
/^(php_wasm_init|wasm_sleep|wasm_read|emscripten_sleep|wasm_sapi_handle_request|wasm_sapi_request_shutdown|wasm_poll_socket|wrap_select|__wrap_select|select|php_pollfd_for|fflush|wasm_popen|wasm_read|wasm_php_exec|run_cli|wasm_recv|fd_close|main|__main_argc_argv)$/;
|
|
18272
18272
|
Asyncify.asyncExports = new Set();
|
|
18273
18273
|
var ret = {};
|
|
18274
18274
|
for (let [x, original] of Object.entries(exports)) {
|
package/jspi/php_8_2.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from 'path';
|
|
|
8
8
|
|
|
9
9
|
const dependencyFilename = path.join(__dirname, '8_2_29', 'php_8_2.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 24915546;
|
|
12
12
|
const phpVersionString = '8.2.29';
|
|
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
|
|
@@ -848,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
848
848
|
},
|
|
849
849
|
};
|
|
850
850
|
|
|
851
|
-
var ___heap_base =
|
|
851
|
+
var ___heap_base = 12959456;
|
|
852
852
|
|
|
853
853
|
var alignMemory = (size, alignment) => {
|
|
854
854
|
return Math.ceil(size / alignment) * alignment;
|
|
@@ -1743,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
1743
1743
|
1024
|
|
1744
1744
|
);
|
|
1745
1745
|
|
|
1746
|
-
var ___stack_high =
|
|
1746
|
+
var ___stack_high = 12959456;
|
|
1747
1747
|
|
|
1748
|
-
var ___stack_low =
|
|
1748
|
+
var ___stack_low = 11910880;
|
|
1749
1749
|
|
|
1750
1750
|
var ___stack_pointer = new WebAssembly.Global(
|
|
1751
1751
|
{ value: 'i32', mutable: true },
|
|
1752
|
-
|
|
1752
|
+
12959456
|
|
1753
1753
|
);
|
|
1754
1754
|
|
|
1755
1755
|
var PATH = {
|
|
@@ -18270,7 +18270,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
18270
18270
|
},
|
|
18271
18271
|
instrumentWasmExports(exports) {
|
|
18272
18272
|
var exportPattern =
|
|
18273
|
-
/^(php_wasm_init|
|
|
18273
|
+
/^(php_wasm_init|wasm_sleep|wasm_read|emscripten_sleep|wasm_sapi_handle_request|wasm_sapi_request_shutdown|wasm_poll_socket|wrap_select|__wrap_select|select|php_pollfd_for|fflush|wasm_popen|wasm_read|wasm_php_exec|run_cli|wasm_recv|fd_close|main|__main_argc_argv)$/;
|
|
18274
18274
|
Asyncify.asyncExports = new Set();
|
|
18275
18275
|
var ret = {};
|
|
18276
18276
|
for (let [x, original] of Object.entries(exports)) {
|
|
@@ -31275,13 +31275,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
31275
31275
|
// End JS library code
|
|
31276
31276
|
|
|
31277
31277
|
var ASM_CONSTS = {
|
|
31278
|
-
|
|
31278
|
+
11682334: ($0) => {
|
|
31279
31279
|
if (!$0) {
|
|
31280
31280
|
AL.alcErr = 0xa004;
|
|
31281
31281
|
return 1;
|
|
31282
31282
|
}
|
|
31283
31283
|
},
|
|
31284
|
-
|
|
31284
|
+
11682382: ($0) => {
|
|
31285
31285
|
if (!AL.currentCtx) {
|
|
31286
31286
|
err('alGetProcAddress() called without a valid context');
|
|
31287
31287
|
return 1;
|
package/jspi/php_8_3.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from 'path';
|
|
|
8
8
|
|
|
9
9
|
const dependencyFilename = path.join(__dirname, '8_3_25', 'php_8_3.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 26008228;
|
|
12
12
|
const phpVersionString = '8.3.25';
|
|
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
|
|
@@ -848,7 +848,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
848
848
|
},
|
|
849
849
|
};
|
|
850
850
|
|
|
851
|
-
var ___heap_base =
|
|
851
|
+
var ___heap_base = 13877856;
|
|
852
852
|
|
|
853
853
|
var alignMemory = (size, alignment) => {
|
|
854
854
|
return Math.ceil(size / alignment) * alignment;
|
|
@@ -1743,13 +1743,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
1743
1743
|
1024
|
|
1744
1744
|
);
|
|
1745
1745
|
|
|
1746
|
-
var ___stack_high =
|
|
1746
|
+
var ___stack_high = 13877856;
|
|
1747
1747
|
|
|
1748
|
-
var ___stack_low =
|
|
1748
|
+
var ___stack_low = 12829280;
|
|
1749
1749
|
|
|
1750
1750
|
var ___stack_pointer = new WebAssembly.Global(
|
|
1751
1751
|
{ value: 'i32', mutable: true },
|
|
1752
|
-
|
|
1752
|
+
13877856
|
|
1753
1753
|
);
|
|
1754
1754
|
|
|
1755
1755
|
var PATH = {
|
|
@@ -18270,7 +18270,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
18270
18270
|
},
|
|
18271
18271
|
instrumentWasmExports(exports) {
|
|
18272
18272
|
var exportPattern =
|
|
18273
|
-
/^(php_wasm_init|
|
|
18273
|
+
/^(php_wasm_init|wasm_sleep|wasm_read|emscripten_sleep|wasm_sapi_handle_request|wasm_sapi_request_shutdown|wasm_poll_socket|wrap_select|__wrap_select|select|php_pollfd_for|fflush|wasm_popen|wasm_read|wasm_php_exec|run_cli|wasm_recv|fd_close|main|__main_argc_argv)$/;
|
|
18274
18274
|
Asyncify.asyncExports = new Set();
|
|
18275
18275
|
var ret = {};
|
|
18276
18276
|
for (let [x, original] of Object.entries(exports)) {
|
|
@@ -31275,13 +31275,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
31275
31275
|
// End JS library code
|
|
31276
31276
|
|
|
31277
31277
|
var ASM_CONSTS = {
|
|
31278
|
-
|
|
31278
|
+
12633246: ($0) => {
|
|
31279
31279
|
if (!$0) {
|
|
31280
31280
|
AL.alcErr = 0xa004;
|
|
31281
31281
|
return 1;
|
|
31282
31282
|
}
|
|
31283
31283
|
},
|
|
31284
|
-
|
|
31284
|
+
12633294: ($0) => {
|
|
31285
31285
|
if (!AL.currentCtx) {
|
|
31286
31286
|
err('alGetProcAddress() called without a valid context');
|
|
31287
31287
|
return 1;
|
package/jspi/php_8_4.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from 'path';
|
|
|
8
8
|
|
|
9
9
|
const dependencyFilename = path.join(__dirname, '8_4_12', 'php_8_4.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 29761052;
|
|
12
12
|
const phpVersionString = '8.4.12';
|
|
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
|
|
@@ -18270,7 +18270,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
18270
18270
|
},
|
|
18271
18271
|
instrumentWasmExports(exports) {
|
|
18272
18272
|
var exportPattern =
|
|
18273
|
-
/^(php_wasm_init|
|
|
18273
|
+
/^(php_wasm_init|wasm_sleep|wasm_read|emscripten_sleep|wasm_sapi_handle_request|wasm_sapi_request_shutdown|wasm_poll_socket|wrap_select|__wrap_select|select|php_pollfd_for|fflush|wasm_popen|wasm_read|wasm_php_exec|run_cli|wasm_recv|fd_close|main|__main_argc_argv)$/;
|
|
18274
18274
|
Asyncify.asyncExports = new Set();
|
|
18275
18275
|
var ret = {};
|
|
18276
18276
|
for (let [x, original] of Object.entries(exports)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/node",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.21",
|
|
4
4
|
"description": "PHP.wasm for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "GPL-2.0-or-later",
|
|
40
40
|
"types": "index.d.ts",
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "761d56003db86c28dd0d34c96f9cada5944e562e",
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=20.18.3",
|
|
44
44
|
"npm": ">=10.1.0"
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"wasm-feature-detect": "1.8.0",
|
|
50
50
|
"ws": "8.18.1",
|
|
51
51
|
"yargs": "17.7.2",
|
|
52
|
-
"@php-wasm/node-polyfills": "2.0.
|
|
53
|
-
"@php-wasm/universal": "2.0.
|
|
54
|
-
"@php-wasm/logger": "2.0.
|
|
55
|
-
"@php-wasm/util": "2.0.
|
|
56
|
-
"@wp-playground/common": "2.0.
|
|
52
|
+
"@php-wasm/node-polyfills": "2.0.21",
|
|
53
|
+
"@php-wasm/universal": "2.0.21",
|
|
54
|
+
"@php-wasm/logger": "2.0.21",
|
|
55
|
+
"@php-wasm/util": "2.0.21",
|
|
56
|
+
"@wp-playground/common": "2.0.21"
|
|
57
57
|
},
|
|
58
58
|
"overrides": {
|
|
59
59
|
"rollup": "^4.34.6",
|