Skip to content

Instantly share code, notes, and snippets.

@KalleZ
Created July 24, 2017 21:25
Show Gist options
  • Save KalleZ/60a1bbecb5b4b0fcd9d7b031e609ad8b to your computer and use it in GitHub Desktop.
Save KalleZ/60a1bbecb5b4b0fcd9d7b031e609ad8b to your computer and use it in GitHub Desktop.
win32/build/confutils.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index 0c88d13..207190c 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -405,12 +405,12 @@ 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') {
+ STDERR.WriteLine("Unknown option " + argname + "; please try configure.js --help for a list of valid options");
+ WScript.Quit(2);
+ } else {
+ INVALID_CONFIG_ARGS[INVALID_CONFIG_ARGS.length] = argname;
+ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment