diff --git a/vendor/wp-now/src/wp-now.ts b/vendor/wp-now/src/wp-now.ts index b3fc88d9..e4e4ad45 100644 --- a/vendor/wp-now/src/wp-now.ts +++ b/vendor/wp-now/src/wp-now.ts @@ -67,7 +67,7 @@ export default async function startWPNow( const php = await requestHandler.getPrimaryPhp(); - await applyOverrideUmaskWorkaround( php ); + applyOverrideUmaskWorkaround( php ); prepareDocumentRoot( php, options ); @@ -571,18 +571,11 @@ export async function moveDatabasesInSitu( projectPath: string ) { * The default `umask` set by Emscripten is 0777 which is too restrictive. This has been updated * in https://github.com/emscripten-core/emscripten/pull/22589 but is not available in the stable * version of Emscripten yet. In the meantime, we'll apply a workaround by setting the umask via - * `auto_prepend_file` PHP directive. + * a preload file that will be executed before running any PHP file. * * Once the Emscripten update is available, a new version of Playground is released using the * updated Emscripten, and the Playground dependency is updated in the app, this workaround can be removed. */ -async function applyOverrideUmaskWorkaround( php: PHP ) { - const iniEntries = await getPhpIniEntries( php ); - await setPhpIniEntries( php, { - ...iniEntries, - auto_prepend_file: '/internal/shared/studio/auto-prepend-file.php', - } ); - - php.mkdir( '/internal/shared/studio' ); - php.writeFile( '/internal/shared/studio/auto-prepend-file.php', '