Skip to content

Studio: Remove deprecated PHP versions 7.2 and 7.3#2446

Closed
epeicher wants to merge 1 commit intotrunkfrom
remove/deprecated-php-versions
Closed

Studio: Remove deprecated PHP versions 7.2 and 7.3#2446
epeicher wants to merge 1 commit intotrunkfrom
remove/deprecated-php-versions

Conversation

@epeicher
Copy link
Copy Markdown
Contributor

@epeicher epeicher commented Jan 21, 2026

Related issues

Proposed Changes

  • Removed PHP 7.2 and 7.3 from SupportedPHPVersions array in common/types/php-versions.ts
  • Updated CLI commands to use common/types/php-versions instead of @php-wasm/universal for PHP version types
  • Modified cli/commands/site/create.ts to import from common types
  • Modified cli/commands/site/set.ts to import from common types
  • Modified cli/lib/utils.ts to import from common types

These PHP versions are no longer supported by WordPress Playground and cause timeout errors when attempting to create sites.

Testing Instructions

  • Build the app: npm run cli:build && npm start
  • Test that creating a new site works with PHP 7.4 and above (8.0, 8.1, 8.2, 8.3, 8.4)
  • Verify PHP 7.2 and 7.3 are no longer available in the UI dropdown for site creation
  • Test CLI: npm run cli:build && node dist/cli/main.js site create --name test-site --php 8.3
  • Verify CLI site create command does not accept --php 7.2 or --php 7.3 options
  • Test changing PHP version on existing site works with supported versions

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

These PHP versions are no longer supported and cause timeout errors
when creating sites. This removes them from both the UI and CLI.
@epeicher epeicher self-assigned this Jan 21, 2026
@wojtekn
Copy link
Copy Markdown
Contributor

wojtekn commented Feb 4, 2026

Closing it in favor of #2499

@wojtekn wojtekn closed this Feb 4, 2026
@epeicher epeicher deleted the remove/deprecated-php-versions branch February 4, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants