/** * Pre-boot php.ini content for legacy PHP builds (currently 5.2). * * Why pre-create a php.ini before the SAPI starts: * * - ini_get_all() crashes on legacy PHP WASM (null function pointer in * the Asyncify instrumentation) so we disable it via * `disable_functions`, which PHP only reads during module startup. * - OPcache's shared-memory allocator fails in our WASM environment, * so opcache must be disabled before php_module_startup runs. * * Both settings are processed by php_module_startup before PHP reads * any user code, so setting them at runtime via `ini_set()` is too * late. The Emscripten preRun hook below writes the ini file before * PHP.initializeRuntime invokes __wasm_call_ctors, which in turn * invokes wasm_sapi_module_startup → php_module_startup. * * PHP.initializeRuntime will skip writing its own default php.ini * when the file already exists. */ export declare const LEGACY_PHP_INI_PATH = "/internal/shared/php.ini"; export declare const LEGACY_PHP_INI_CONTENT: string; /** * Returns an Emscripten preRun callback that writes * {@link LEGACY_PHP_INI_CONTENT} to {@link LEGACY_PHP_INI_PATH}. */ export declare function createLegacyPhpIniPreRunStep(): (module: { FS: { mkdirTree: (path: string) => void; writeFile: (path: string, content: string) => void; }; }) => void;