Skip to content

Commit

Permalink
Remove patch that made PHP CLI only run index mode
Browse files Browse the repository at this point in the history
  • Loading branch information
eliot-akira committed Sep 12, 2024
1 parent a97a483 commit 46191a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/wp-now/src/execute-php.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useHostFilesystem } from '@php-wasm/node';
import startWPNow from './wp-now';
import { WPNowOptions, WPNowMode } from './config';
import { WPNowOptions } from './config';
import { disableOutput } from './output';
import * as path from 'path';
import fs from 'fs-extra';
Expand All @@ -26,7 +26,8 @@ export async function executePHP(
disableOutput();
const { php, options: wpNowOptions } = await startWPNow({
...options,
mode: WPNowMode.INDEX,
// @TODO: Any other mode throws WASM error
// mode: WPNowMode.INDEX,
});

try {
Expand Down

0 comments on commit 46191a5

Please sign in to comment.