@php-wasm/web-8-2 3.1.19 → 3.1.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/8_2_30/php_8_2.wasm +0 -0
- package/asyncify/php_8_2.js +41 -21
- package/jspi/8_2_30/php_8_2.wasm +0 -0
- package/jspi/php_8_2.js +41 -21
- package/package.json +5 -4
|
Binary file
|
package/asyncify/php_8_2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dependencyFilename from './8_2_30/php_8_2.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
3
|
+
export const dependenciesTotalSize = 21036864;
|
|
4
4
|
const phpVersionString = '8.2.30';
|
|
5
5
|
export function init(RuntimeName, PHPLoader) {
|
|
6
6
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
@@ -7148,7 +7148,11 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7148
7148
|
stdoutParentFd = std[1]?.parent,
|
|
7149
7149
|
stderrChildFd = std[2]?.child,
|
|
7150
7150
|
stderrParentFd = std[2]?.parent;
|
|
7151
|
+
const detachPipeDataListeners = [];
|
|
7151
7152
|
cp.on('exit', function (code) {
|
|
7153
|
+
for (const detach of detachPipeDataListeners) {
|
|
7154
|
+
detach();
|
|
7155
|
+
}
|
|
7152
7156
|
for (const fd of [stdoutChildFd, stderrChildFd, stdinChildFd]) {
|
|
7153
7157
|
if (FS.streams[fd] && !FS.isClosed(FS.streams[fd])) {
|
|
7154
7158
|
FS.close(FS.streams[fd]);
|
|
@@ -7160,30 +7164,46 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7160
7164
|
if (stdoutChildFd) {
|
|
7161
7165
|
const stdoutStream = SYSCALLS.getStreamFromFD(stdoutChildFd);
|
|
7162
7166
|
let stdoutAt = 0;
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
stdoutStream
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7167
|
+
const onStdoutData = function (data) {
|
|
7168
|
+
try {
|
|
7169
|
+
stdoutStream.stream_ops.write(
|
|
7170
|
+
stdoutStream,
|
|
7171
|
+
data,
|
|
7172
|
+
0,
|
|
7173
|
+
data.length,
|
|
7174
|
+
stdoutAt
|
|
7175
|
+
);
|
|
7176
|
+
stdoutAt += data.length;
|
|
7177
|
+
} catch {
|
|
7178
|
+
cp.stdout.off('data', onStdoutData);
|
|
7179
|
+
}
|
|
7180
|
+
};
|
|
7181
|
+
cp.stdout.on('data', onStdoutData);
|
|
7182
|
+
detachPipeDataListeners.push(() =>
|
|
7183
|
+
cp.stdout.off('data', onStdoutData)
|
|
7184
|
+
);
|
|
7173
7185
|
}
|
|
7174
7186
|
if (stderrChildFd) {
|
|
7175
7187
|
const stderrStream = SYSCALLS.getStreamFromFD(stderrChildFd);
|
|
7176
7188
|
let stderrAt = 0;
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
stderrStream
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7189
|
+
const onStderrData = function (data) {
|
|
7190
|
+
try {
|
|
7191
|
+
stderrStream.stream_ops.write(
|
|
7192
|
+
stderrStream,
|
|
7193
|
+
data,
|
|
7194
|
+
0,
|
|
7195
|
+
data.length,
|
|
7196
|
+
stderrAt
|
|
7197
|
+
);
|
|
7198
|
+
stderrAt += data.length;
|
|
7199
|
+
} catch {
|
|
7200
|
+
cp.stderr.off('data', onStderrData);
|
|
7201
|
+
}
|
|
7202
|
+
};
|
|
7203
|
+
cp.stderr.on('data', onStderrData);
|
|
7204
|
+
detachPipeDataListeners.push(() =>
|
|
7205
|
+
cp.stderr.off('data', onStderrData)
|
|
7206
|
+
);
|
|
7187
7207
|
}
|
|
7188
7208
|
try {
|
|
7189
7209
|
await new Promise((resolve, reject) => {
|
package/jspi/8_2_30/php_8_2.wasm
CHANGED
|
Binary file
|
package/jspi/php_8_2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dependencyFilename from './8_2_30/php_8_2.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
3
|
+
export const dependenciesTotalSize = 20465796;
|
|
4
4
|
const phpVersionString = '8.2.30';
|
|
5
5
|
export function init(RuntimeName, PHPLoader) {
|
|
6
6
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
@@ -7018,7 +7018,11 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7018
7018
|
stdoutParentFd = std[1]?.parent,
|
|
7019
7019
|
stderrChildFd = std[2]?.child,
|
|
7020
7020
|
stderrParentFd = std[2]?.parent;
|
|
7021
|
+
const detachPipeDataListeners = [];
|
|
7021
7022
|
cp.on('exit', function (code) {
|
|
7023
|
+
for (const detach of detachPipeDataListeners) {
|
|
7024
|
+
detach();
|
|
7025
|
+
}
|
|
7022
7026
|
for (const fd of [stdoutChildFd, stderrChildFd, stdinChildFd]) {
|
|
7023
7027
|
if (FS.streams[fd] && !FS.isClosed(FS.streams[fd])) {
|
|
7024
7028
|
FS.close(FS.streams[fd]);
|
|
@@ -7030,30 +7034,46 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7030
7034
|
if (stdoutChildFd) {
|
|
7031
7035
|
const stdoutStream = SYSCALLS.getStreamFromFD(stdoutChildFd);
|
|
7032
7036
|
let stdoutAt = 0;
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
stdoutStream
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7037
|
+
const onStdoutData = function (data) {
|
|
7038
|
+
try {
|
|
7039
|
+
stdoutStream.stream_ops.write(
|
|
7040
|
+
stdoutStream,
|
|
7041
|
+
data,
|
|
7042
|
+
0,
|
|
7043
|
+
data.length,
|
|
7044
|
+
stdoutAt
|
|
7045
|
+
);
|
|
7046
|
+
stdoutAt += data.length;
|
|
7047
|
+
} catch {
|
|
7048
|
+
cp.stdout.off('data', onStdoutData);
|
|
7049
|
+
}
|
|
7050
|
+
};
|
|
7051
|
+
cp.stdout.on('data', onStdoutData);
|
|
7052
|
+
detachPipeDataListeners.push(() =>
|
|
7053
|
+
cp.stdout.off('data', onStdoutData)
|
|
7054
|
+
);
|
|
7043
7055
|
}
|
|
7044
7056
|
if (stderrChildFd) {
|
|
7045
7057
|
const stderrStream = SYSCALLS.getStreamFromFD(stderrChildFd);
|
|
7046
7058
|
let stderrAt = 0;
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
stderrStream
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7059
|
+
const onStderrData = function (data) {
|
|
7060
|
+
try {
|
|
7061
|
+
stderrStream.stream_ops.write(
|
|
7062
|
+
stderrStream,
|
|
7063
|
+
data,
|
|
7064
|
+
0,
|
|
7065
|
+
data.length,
|
|
7066
|
+
stderrAt
|
|
7067
|
+
);
|
|
7068
|
+
stderrAt += data.length;
|
|
7069
|
+
} catch {
|
|
7070
|
+
cp.stderr.off('data', onStderrData);
|
|
7071
|
+
}
|
|
7072
|
+
};
|
|
7073
|
+
cp.stderr.on('data', onStderrData);
|
|
7074
|
+
detachPipeDataListeners.push(() =>
|
|
7075
|
+
cp.stderr.off('data', onStderrData)
|
|
7076
|
+
);
|
|
7057
7077
|
}
|
|
7058
7078
|
try {
|
|
7059
7079
|
await new Promise((resolve, reject) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/web-8-2",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.21",
|
|
4
4
|
"description": "PHP 8.2 WebAssembly binaries for web",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"node": ">=20.10.0",
|
|
36
36
|
"npm": ">=10.2.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "5864051cbf4c2a55656112d99a3f1b076bcd67cd",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"ini": "4.1.2",
|
|
41
41
|
"wasm-feature-detect": "1.8.0",
|
|
42
|
-
"@php-wasm/universal": "3.1.
|
|
42
|
+
"@php-wasm/universal": "3.1.21"
|
|
43
43
|
},
|
|
44
44
|
"packageManager": "npm@10.9.2",
|
|
45
45
|
"overrides": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"tmp": "0.2.5",
|
|
52
52
|
"form-data": "^4.0.4",
|
|
53
53
|
"lodash": "^4.17.23",
|
|
54
|
-
"glob": "^9.3.0"
|
|
54
|
+
"glob": "^9.3.0",
|
|
55
|
+
"webpackbar": "^7.0.0"
|
|
55
56
|
}
|
|
56
57
|
}
|