Skip to main content

InstallPHPExtensionFilesOptions

Inputs used to build the staged .so path and per-extension ini file when installPHPExtensionFilesSync is called with raw install options instead of a ResolvedPHPExtension.

Index

Properties

optionalenv

env?: Record<string, string>

Environment variables added before the extension is loaded.

optionalextensionDir

extensionDir?: string

VFS directory where PHP.wasm writes the extension .so file and its per-extension ini file. Defaults to PHP_EXTENSIONS_DIR.

optionalextraFiles

extraFiles?: ResolvedExtraFiles

Sidecar files to write into the PHP VFS before the extension is loaded.

optionaliniEntries

iniEntries?: Record<string, string>

Additional key=value lines for the generated startup .ini file.

optionalloadWithIniDirective

loadWithIniDirective?: PHPExtensionIniDirective

The first directive of the generated startup .ini file. Regular extensions need extension=...; Zend extensions like Xdebug need zend_extension=....

name

name: string

Extension name used for staged file names and the ini directive.

soBytes

soBytes: Uint8Array | ArrayBuffer

Compiled extension bytes.