@php-wasm/web-8-1 3.1.2 → 3.1.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.
Binary file
@@ -1,6 +1,6 @@
1
1
  import dependencyFilename from './8_1_34/php_8_1.wasm';
2
2
  export { dependencyFilename };
3
- export const dependenciesTotalSize = 24491715;
3
+ export const dependenciesTotalSize = 24505815;
4
4
  const phpVersionString = '8.1.34';
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
@@ -4946,8 +4946,13 @@ export function init(RuntimeName, PHPLoader) {
4946
4946
  init: function () {
4947
4947
  if (PHPLoader.bindUserSpace) {
4948
4948
  addOnInit(() => {
4949
+ if (typeof PHPLoader.processId !== 'number') {
4950
+ throw new Error(
4951
+ 'PHPLoader.processId must be set before init'
4952
+ );
4953
+ }
4949
4954
  Module['userSpace'] = PHPLoader.bindUserSpace({
4950
- pid: PHPLoader.processId ?? 42,
4955
+ pid: PHPLoader.processId,
4951
4956
  constants: {
4952
4957
  F_GETFL: Number('3'),
4953
4958
  O_ACCMODE: Number('2097155'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/web-8-1",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "PHP 8.1 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": "4a2f8903e9d4a58e33382f8f888ef94d42d913dc",
38
+ "gitHead": "54bb87ba4c9624ec02f60194a2f1938b3f42477b",
39
39
  "dependencies": {
40
40
  "ini": "4.1.2",
41
41
  "wasm-feature-detect": "1.8.0",
42
- "@php-wasm/universal": "3.1.2"
42
+ "@php-wasm/universal": "3.1.3"
43
43
  },
44
44
  "packageManager": "npm@10.9.2",
45
45
  "overrides": {