@php-wasm/node-7-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.
package/jspi/7_2_34/php_7_2.wasm
CHANGED
|
Binary file
|
|
Binary file
|
package/jspi/php_7_2.js
CHANGED
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
// this code in Node.js as an ES module.
|
|
4
4
|
import { createRequire } from 'module';
|
|
5
5
|
const require = createRequire(import.meta.url);
|
|
6
|
-
// Note: The path
|
|
7
|
-
import { fileURLToPath } from 'url';
|
|
6
|
+
// Note: The path and url modules are currently needed by code injected by the php-wasm Dockerfile.
|
|
8
7
|
import path from 'path';
|
|
9
|
-
|
|
10
|
-
const __dirname = path.dirname(__filename);
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
11
9
|
|
|
12
|
-
const
|
|
10
|
+
const currentDirPath =
|
|
11
|
+
typeof __dirname !== 'undefined'
|
|
12
|
+
? __dirname
|
|
13
|
+
: path.dirname(fileURLToPath(import.meta.url));
|
|
14
|
+
const dependencyFilename = path.join(currentDirPath, '7_2_34', 'php_7_2.wasm');
|
|
13
15
|
export { dependencyFilename };
|
|
14
|
-
export const dependenciesTotalSize =
|
|
16
|
+
export const dependenciesTotalSize = 22140869;
|
|
15
17
|
const phpVersionString = '7.2.34';
|
|
16
18
|
export function init(RuntimeName, PHPLoader) {
|
|
17
19
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
@@ -75,7 +77,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
75
77
|
// the complexity of lazy-loading.
|
|
76
78
|
var fs = require('fs');
|
|
77
79
|
|
|
78
|
-
scriptDirectory =
|
|
80
|
+
scriptDirectory = currentDirPath + '/';
|
|
79
81
|
|
|
80
82
|
// include: node_shell_read.js
|
|
81
83
|
readBinary = (filename) => {
|
|
@@ -30972,13 +30974,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
30972
30974
|
// end include: postlibrary.js
|
|
30973
30975
|
|
|
30974
30976
|
var ASM_CONSTS = {
|
|
30975
|
-
|
|
30977
|
+
10576690: ($0) => {
|
|
30976
30978
|
if (!$0) {
|
|
30977
30979
|
AL.alcErr = 0xa004;
|
|
30978
30980
|
return 1;
|
|
30979
30981
|
}
|
|
30980
30982
|
},
|
|
30981
|
-
|
|
30983
|
+
10576738: ($0) => {
|
|
30982
30984
|
if (!AL.currentCtx) {
|
|
30983
30985
|
err('alGetProcAddress() called without a valid context');
|
|
30984
30986
|
return 1;
|
|
@@ -31466,7 +31468,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
31466
31468
|
___cpp_exception = wasmExports['__cpp_exception'];
|
|
31467
31469
|
}
|
|
31468
31470
|
|
|
31469
|
-
var ___heap_base =
|
|
31471
|
+
var ___heap_base = 11861344;
|
|
31470
31472
|
|
|
31471
31473
|
var wasmImports = {
|
|
31472
31474
|
/** @export */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/node-7-2",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.38",
|
|
4
4
|
"description": "PHP 7.2 WebAssembly binaries for node",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,12 +35,12 @@
|
|
|
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
42
|
"ws": "8.18.3",
|
|
43
|
-
"@php-wasm/universal": "3.0.
|
|
43
|
+
"@php-wasm/universal": "3.0.38"
|
|
44
44
|
},
|
|
45
45
|
"packageManager": "npm@10.9.2",
|
|
46
46
|
"overrides": {
|