diff --git a/src/helper/class-ee-site.php b/src/helper/class-ee-site.php index f34b1546..edc1f6b6 100644 --- a/src/helper/class-ee-site.php +++ b/src/helper/class-ee-site.php @@ -440,7 +440,7 @@ protected function delete_site( $level, $site_url, $site_fs_path, $db_data = [] * : Path to the SSL crt file. Required with --ssl=custom. * * [--php=] - * : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, and 8.5. + * : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, and 8.6. * --- * options: * - 5.6 @@ -454,6 +454,7 @@ protected function delete_site( $level, $site_url, $site_fs_path, $db_data = [] * - 8.3 * - 8.4 * - 8.5 + * - 8.6 * --- * * [--proxy-cache=] @@ -519,6 +520,11 @@ public function update( $args, $assoc_args ) { $add_domains = get_flag_value( $assoc_args, 'add-alias-domains', false ); $delete_domains = get_flag_value( $assoc_args, 'delete-alias-domains', false ); + // The synopsis check compares loosely, so values like 8.10 or 08.5 pass it as 8.1 or 8.5. + if ( false !== $php && ! preg_match( '/^\d\.\d\z/', (string) $php ) ) { + EE::error( "Invalid value specified for 'php': $php" ); + } + if ( $ssl ) { $this->update_ssl( $assoc_args ); } diff --git a/templates/config/php-fpm/php86.zip b/templates/config/php-fpm/php86.zip new file mode 100644 index 00000000..85767228 Binary files /dev/null and b/templates/config/php-fpm/php86.zip differ