@php-wasm/web-8-2 3.0.36 → 3.0.38
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.
|
Binary file
|
|
Binary file
|
package/asyncify/php_8_2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import dependencyFilename from './
|
|
1
|
+
import dependencyFilename from './8_2_30/php_8_2.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
4
|
-
const phpVersionString = '8.2.
|
|
3
|
+
export const dependenciesTotalSize = 24767499;
|
|
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
|
|
7
7
|
var Module = typeof PHPLoader != 'undefined' ? PHPLoader : {};
|
|
@@ -13291,12 +13291,15 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
13291
13291
|
noop: function () {},
|
|
13292
13292
|
spawnProcess: function (command, args, options) {
|
|
13293
13293
|
if (Module['spawnProcess']) {
|
|
13294
|
-
const
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
);
|
|
13299
|
-
|
|
13294
|
+
const spawned = Module['spawnProcess'](command, args, {
|
|
13295
|
+
...options,
|
|
13296
|
+
shell: true,
|
|
13297
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
13298
|
+
});
|
|
13299
|
+
if (spawned && !('then' in spawned) && 'on' in spawned) {
|
|
13300
|
+
return spawned;
|
|
13301
|
+
}
|
|
13302
|
+
return Promise.resolve(spawned).then(function (spawned) {
|
|
13300
13303
|
if (!spawned || !spawned.on) {
|
|
13301
13304
|
throw new Error(
|
|
13302
13305
|
'spawnProcess() must return an EventEmitter but returned a different type.'
|
|
@@ -13305,13 +13308,6 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
13305
13308
|
return spawned;
|
|
13306
13309
|
});
|
|
13307
13310
|
}
|
|
13308
|
-
if (ENVIRONMENT_IS_NODE) {
|
|
13309
|
-
return require('child_process').spawn(command, args, {
|
|
13310
|
-
...options,
|
|
13311
|
-
shell: true,
|
|
13312
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
13313
|
-
});
|
|
13314
|
-
}
|
|
13315
13311
|
const e = new Error(
|
|
13316
13312
|
'popen(), proc_open() etc. are unsupported on this PHP instance. Call php.setSpawnHandler() ' +
|
|
13317
13313
|
'and provide a callback to handle spawning processes, or disable a popen(), proc_open() ' +
|
|
Binary file
|
|
Binary file
|
package/jspi/php_8_2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import dependencyFilename from './
|
|
1
|
+
import dependencyFilename from './8_2_30/php_8_2.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
4
|
-
const phpVersionString = '8.2.
|
|
3
|
+
export const dependenciesTotalSize = 24250505;
|
|
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
|
|
7
7
|
var Module = typeof PHPLoader != 'undefined' ? PHPLoader : {};
|
|
@@ -13167,12 +13167,15 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
13167
13167
|
noop: function () {},
|
|
13168
13168
|
spawnProcess: function (command, args, options) {
|
|
13169
13169
|
if (Module['spawnProcess']) {
|
|
13170
|
-
const
|
|
13171
|
-
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
);
|
|
13175
|
-
|
|
13170
|
+
const spawned = Module['spawnProcess'](command, args, {
|
|
13171
|
+
...options,
|
|
13172
|
+
shell: true,
|
|
13173
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
13174
|
+
});
|
|
13175
|
+
if (spawned && !('then' in spawned) && 'on' in spawned) {
|
|
13176
|
+
return spawned;
|
|
13177
|
+
}
|
|
13178
|
+
return Promise.resolve(spawned).then(function (spawned) {
|
|
13176
13179
|
if (!spawned || !spawned.on) {
|
|
13177
13180
|
throw new Error(
|
|
13178
13181
|
'spawnProcess() must return an EventEmitter but returned a different type.'
|
|
@@ -13181,13 +13184,6 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
13181
13184
|
return spawned;
|
|
13182
13185
|
});
|
|
13183
13186
|
}
|
|
13184
|
-
if (ENVIRONMENT_IS_NODE) {
|
|
13185
|
-
return require('child_process').spawn(command, args, {
|
|
13186
|
-
...options,
|
|
13187
|
-
shell: true,
|
|
13188
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
13189
|
-
});
|
|
13190
|
-
}
|
|
13191
13187
|
const e = new Error(
|
|
13192
13188
|
'popen(), proc_open() etc. are unsupported on this PHP instance. Call php.setSpawnHandler() ' +
|
|
13193
13189
|
'and provide a callback to handle spawning processes, or disable a popen(), proc_open() ' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/web-8-2",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.38",
|
|
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.18.3",
|
|
36
36
|
"npm": ">=10.1.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c49a4f463e0a868247b4e2a847318ca395502de7",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"ini": "4.1.2",
|
|
41
41
|
"wasm-feature-detect": "1.8.0",
|
|
42
|
-
"@php-wasm/universal": "3.0.
|
|
42
|
+
"@php-wasm/universal": "3.0.38"
|
|
43
43
|
},
|
|
44
44
|
"packageManager": "npm@10.9.2",
|
|
45
45
|
"overrides": {
|