@php-wasm/node 1.2.2 → 1.2.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/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_23 → 8_1_33}/php_8_1.wasm +0 -0
- package/asyncify/{8_2_10 → 8_2_29}/php_8_2.wasm +0 -0
- package/asyncify/{8_3_0 → 8_3_23}/php_8_3.wasm +0 -0
- package/asyncify/{8_4_0 → 8_4_10}/php_8_4.wasm +0 -0
- package/asyncify/extensions/xdebug/7_2/xdebug.so +0 -0
- package/asyncify/extensions/xdebug/7_3/xdebug.so +0 -0
- package/asyncify/extensions/xdebug/7_4/xdebug.so +0 -0
- package/asyncify/extensions/xdebug/8_0/xdebug.so +0 -0
- package/asyncify/extensions/xdebug/8_1/xdebug.so +0 -0
- package/asyncify/extensions/xdebug/8_2/xdebug.so +0 -0
- package/asyncify/extensions/xdebug/8_3/xdebug.so +0 -0
- package/asyncify/extensions/xdebug/8_4/xdebug.so +0 -0
- package/asyncify/php_7_2.js +477 -199
- package/asyncify/php_7_3.js +477 -199
- package/asyncify/php_7_4.js +477 -199
- package/asyncify/php_8_0.js +477 -199
- package/asyncify/php_8_1.js +479 -201
- package/asyncify/php_8_2.js +479 -201
- package/asyncify/php_8_3.js +479 -201
- package/asyncify/php_8_4.js +479 -201
- package/index.cjs +246 -942
- package/index.js +247 -941
- 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_23/php_8_1.wasm +0 -0
- package/jspi/8_2_10/php_8_2.wasm +0 -0
- package/jspi/8_3_0/php_8_3.wasm +0 -0
- package/jspi/8_4_0/php_8_4.wasm +0 -0
- package/jspi/php_7_2.js +12 -13
- package/jspi/php_7_3.js +12 -13
- package/jspi/php_7_4.js +12 -13
- package/jspi/php_8_0.js +12 -13
- package/jspi/php_8_1.js +12 -13
- package/jspi/php_8_2.js +12 -13
- package/jspi/php_8_3.js +12 -13
- package/jspi/php_8_4.js +12 -13
- package/lib/node-fs-mount.d.ts +1 -1
- package/package.json +7 -7
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_0', 'php_8_4.wasm');
|
|
10
10
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
11
|
+
export const dependenciesTotalSize = 36202477;
|
|
12
12
|
export function init(RuntimeName, PHPLoader) {
|
|
13
13
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
14
14
|
// include: shell.js
|
|
@@ -847,7 +847,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
847
847
|
},
|
|
848
848
|
};
|
|
849
849
|
|
|
850
|
-
var ___heap_base =
|
|
850
|
+
var ___heap_base = 17317792;
|
|
851
851
|
|
|
852
852
|
var alignMemory = (size, alignment) => {
|
|
853
853
|
return Math.ceil(size / alignment) * alignment;
|
|
@@ -1742,13 +1742,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
1742
1742
|
1024
|
|
1743
1743
|
);
|
|
1744
1744
|
|
|
1745
|
-
var ___stack_high =
|
|
1745
|
+
var ___stack_high = 17317792;
|
|
1746
1746
|
|
|
1747
|
-
var ___stack_low =
|
|
1747
|
+
var ___stack_low = 17252256;
|
|
1748
1748
|
|
|
1749
1749
|
var ___stack_pointer = new WebAssembly.Global(
|
|
1750
1750
|
{ value: 'i32', mutable: true },
|
|
1751
|
-
|
|
1751
|
+
17317792
|
|
1752
1752
|
);
|
|
1753
1753
|
|
|
1754
1754
|
var PATH = {
|
|
@@ -3802,10 +3802,6 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
3802
3802
|
if (FS.isMountpoint(node)) {
|
|
3803
3803
|
throw new FS.ErrnoError(10);
|
|
3804
3804
|
}
|
|
3805
|
-
|
|
3806
|
-
if (!FS.isDir(node.mode)) {
|
|
3807
|
-
throw new FS.ErrnoError(54);
|
|
3808
|
-
}
|
|
3809
3805
|
}
|
|
3810
3806
|
|
|
3811
3807
|
var mount = {
|
|
@@ -6885,7 +6881,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
6885
6881
|
}
|
|
6886
6882
|
}
|
|
6887
6883
|
|
|
6888
|
-
function
|
|
6884
|
+
var _fd_close = function fd_close(fd) {
|
|
6889
6885
|
return Asyncify.handleAsync(async () => {
|
|
6890
6886
|
const [vfsPath, pathResolutionErrno] =
|
|
6891
6887
|
locking.get_vfs_path_from_fd(fd);
|
|
@@ -6920,7 +6916,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
6920
6916
|
}
|
|
6921
6917
|
return result;
|
|
6922
6918
|
});
|
|
6923
|
-
}
|
|
6919
|
+
};
|
|
6924
6920
|
_fd_close.sig = 'ii';
|
|
6925
6921
|
function _builtin_fd_close(fd) {
|
|
6926
6922
|
try {
|
|
@@ -31256,13 +31252,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
31256
31252
|
// End JS library code
|
|
31257
31253
|
|
|
31258
31254
|
var ASM_CONSTS = {
|
|
31259
|
-
|
|
31255
|
+
16319278: ($0) => {
|
|
31260
31256
|
if (!$0) {
|
|
31261
31257
|
AL.alcErr = 0xa004;
|
|
31262
31258
|
return 1;
|
|
31263
31259
|
}
|
|
31264
31260
|
},
|
|
31265
|
-
|
|
31261
|
+
16319326: ($0) => {
|
|
31266
31262
|
if (!AL.currentCtx) {
|
|
31267
31263
|
err('alGetProcAddress() called without a valid context');
|
|
31268
31264
|
return 1;
|
|
@@ -31390,6 +31386,9 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
31390
31386
|
while (true) {
|
|
31391
31387
|
var mask = POLLNVAL;
|
|
31392
31388
|
mask = SYSCALLS.DEFAULT_POLLMASK;
|
|
31389
|
+
if (FS.isClosed(stream)) {
|
|
31390
|
+
return ERRNO_CODES.EBADF;
|
|
31391
|
+
}
|
|
31393
31392
|
if (stream.stream_ops?.poll) {
|
|
31394
31393
|
mask = stream.stream_ops.poll(stream, -1);
|
|
31395
31394
|
}
|
package/lib/node-fs-mount.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type MountHandler } from '@php-wasm/universal';
|
|
2
2
|
export declare function createNodeFsMountHandler(localPath: string): MountHandler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/node",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
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": "a6624a5390d899d164f887dc915a0ba1dbc31c83",
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=20.18.3",
|
|
44
44
|
"npm": ">=10.1.0"
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"wasm-feature-detect": "1.8.0",
|
|
51
51
|
"ws": "8.18.1",
|
|
52
52
|
"yargs": "17.7.2",
|
|
53
|
-
"@php-wasm/node-polyfills": "1.2.
|
|
54
|
-
"@php-wasm/universal": "1.2.
|
|
55
|
-
"@php-wasm/logger": "1.2.
|
|
56
|
-
"@php-wasm/util": "1.2.
|
|
57
|
-
"@wp-playground/common": "1.2.
|
|
53
|
+
"@php-wasm/node-polyfills": "1.2.3",
|
|
54
|
+
"@php-wasm/universal": "1.2.3",
|
|
55
|
+
"@php-wasm/logger": "1.2.3",
|
|
56
|
+
"@php-wasm/util": "1.2.3",
|
|
57
|
+
"@wp-playground/common": "1.2.3"
|
|
58
58
|
},
|
|
59
59
|
"overrides": {
|
|
60
60
|
"rollup": "^4.34.6",
|