@php-wasm/universal 3.1.30 → 3.1.31

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.
@@ -15,6 +15,28 @@
15
15
  "type": "string",
16
16
  "const": "php-extension"
17
17
  },
18
+ "loadWithIniDirective": {
19
+ "$ref": "#/definitions/PHPExtensionLoadDirective",
20
+ "description": "The first directive of the generated startup `.ini` file. Defaults to `extension`; use `zend_extension` for Zend extensions like Xdebug. Use `false` to stage the `.so` without registering it in php.ini."
21
+ },
22
+ "iniEntries": {
23
+ "type": "object",
24
+ "additionalProperties": {
25
+ "type": "string"
26
+ },
27
+ "description": "Additional `key=value` lines for the generated startup `.ini` file."
28
+ },
29
+ "env": {
30
+ "type": "object",
31
+ "additionalProperties": {
32
+ "type": "string"
33
+ },
34
+ "description": "Environment variables added before the extension is loaded."
35
+ },
36
+ "extensionDir": {
37
+ "type": "string",
38
+ "description": "VFS directory where PHP.wasm writes the extension `.so` file and its per-extension ini file. Defaults to `PHP_EXTENSIONS_DIR`."
39
+ },
18
40
  "artifacts": {
19
41
  "type": "array",
20
42
  "items": {
@@ -46,6 +68,22 @@
46
68
  "additionalProperties": false,
47
69
  "description": "Extension artifact manifest. Lets callers publish a matrix of `.so` files and lets `resolvePHPExtension()` select the artifact matching the current PHP version. External extension artifacts are JSPI-only."
48
70
  },
71
+ "PHPExtensionLoadDirective": {
72
+ "anyOf": [
73
+ {
74
+ "$ref": "#/definitions/PHPExtensionIniDirective"
75
+ },
76
+ {
77
+ "type": "boolean",
78
+ "const": false
79
+ }
80
+ ]
81
+ },
82
+ "PHPExtensionIniDirective": {
83
+ "type": "string",
84
+ "enum": ["extension", "zend_extension"],
85
+ "description": "The php.ini directive used to load the extension. Use `extension` for regular PHP extensions and `zend_extension` for Zend extensions like Xdebug."
86
+ },
49
87
  "PHPExtensionManifestExtraFiles": {
50
88
  "type": "object",
51
89
  "properties": {