summaryrefslogtreecommitdiff
path: root/win32/build/confutils.js
diff options
context:
space:
mode:
authorDeus Kane <deus.kane@claromentis.com>2020-01-20 16:16:01 +0000
committerChristoph M. Becker <cmbecker69@gmx.de>2020-01-21 11:53:11 +0100
commit3046e35718e4980a8cf7785fa6ecea51d02ebee8 (patch)
tree34e8822efe92640a4d5f0359e4a6bd03268b06b0 /win32/build/confutils.js
parentb67fc51859c00e884d96208cc55e076a3aea8f89 (diff)
downloadphp-git-3046e35718e4980a8cf7785fa6ecea51d02ebee8.tar.gz
Fix #79146: cscript can fail to run on some systems
In the buildconf and configure batch files, Windows' cscript utility was being run without the /e:jscript flag. This works on systems that have not had the default .js file association changed, but if .js has been re-associated to (say) an IDE, the batch files fail with the error message: Input Error: There is no script engine for file extension ".js".
Diffstat (limited to 'win32/build/confutils.js')
-rw-r--r--win32/build/confutils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index 7a68d4288d..96d9b887b6 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -352,7 +352,7 @@ function conf_process_args()
var i, j;
var configure_help_mode = false;
var analyzed = false;
- var nice = "cscript /nologo configure.js ";
+ var nice = "cscript /nologo /e:jscript configure.js ";
var disable_all = false;
args = WScript.Arguments;