From: Kalle Sommer Nielsen Date: Mon, 24 Jul 2017 21:38:09 +0000 (+0200) Subject: Bail on invalid configure args if this is a snapshot build (as suggested by Anatol) X-Git-Tag: php-7.3.0alpha1~1797 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3964678d492b698a20aa4eace02ab95636ec6f2d;p=php Bail on invalid configure args if this is a snapshot build (as suggested by Anatol) --- diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 0c88d134c9..3a5f957b66 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -406,14 +406,14 @@ function conf_process_args() } if (!found) { INVALID_CONFIG_ARGS[INVALID_CONFIG_ARGS.length] = argname; - - /* - STDERR.WriteLine("Unknown option " + argname + "; please try configure.js --help for a list of valid options"); - WScript.Quit(2); - */ } } + if (PHP_SNAPSHOT_BUILD != 'no' && INVALID_CONFIG_ARGS.length) { + STDERR.WriteLine('Unknown option ' + INVALID_CONFIG_ARGS[0] + '; please try configure.js --help for a list of valid options'); + WScript.Quit(2); + } + if (configure_help_mode) { STDOUT.WriteLine(word_wrap_and_indent(0, "Options that enable extensions and SAPI will accept \