withPHPIniValues
Callable
Parameters
php: UniversalPHP
The PHP instance.
phpIniValues: Record<string, string>
The php.ini values to set.
callback: () => Promise<any>
The callback to execute.
Returns Promise<any>
The result of the callback.
The PHP instance.
The php.ini values to set.
The callback to execute.
The result of the callback.
Sets php.ini values to the given values, executes a callback, and restores the original php.ini values. This is useful for running code with temporary php.ini values, such as when disabling network-related PHP functions just to run WordPress installer.