]> granicus.if.org Git - php/commitdiff
Bail on invalid configure args if this is a snapshot build (as suggested by Anatol)
authorKalle Sommer Nielsen <kalle@php.net>
Mon, 24 Jul 2017 21:38:09 +0000 (23:38 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Mon, 24 Jul 2017 21:38:09 +0000 (23:38 +0200)
win32/build/confutils.js

index 0c88d134c989363646a21feda41ae1434f09fd15..3a5f957b6625165b4d26cf3cda969bbab02d44df 100644 (file)
@@ -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 \