From 35156009e7a48e9accf6b9c1e0a6ed38a7b36352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Mi=CC=81s=CC=8Cek?= Date: Sun, 1 Dec 2024 16:18:16 +0100 Subject: [PATCH] /debug-type:none none property handled eq to /debug- ref: https://github.com/peachpiecompiler/peachpie/issues/1128 --- .../CommandLine/PhpCommandLineParser.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Peachpie.CodeAnalysis/CommandLine/PhpCommandLineParser.cs b/src/Peachpie.CodeAnalysis/CommandLine/PhpCommandLineParser.cs index 9cb2aaa2c4..a5b131c0f1 100644 --- a/src/Peachpie.CodeAnalysis/CommandLine/PhpCommandLineParser.cs +++ b/src/Peachpie.CodeAnalysis/CommandLine/PhpCommandLineParser.cs @@ -272,7 +272,7 @@ internal override CommandLineArguments CommonParse(IEnumerable args, str // unused, parsed for backward compat only if (!string.IsNullOrEmpty(value)) { - switch (value.ToLower()) + switch (value.ToLowerInvariant()) { case "full": case "pdbonly": @@ -284,6 +284,11 @@ internal override CommandLineArguments CommonParse(IEnumerable args, str case "embedded": debugInformationFormat = DebugInformationFormat.Embedded; break; + case "none": // == /debug- + debugInformationFormat = DebugInformationFormat.PortablePdb; + emitPdb = false; + debugPlus = false; + break; default: //AddDiagnostic(diagnostics, ErrorCode.ERR_BadDebugType, value); break;