summaryrefslogtreecommitdiff
path: root/buildconf.bat
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 /buildconf.bat
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 'buildconf.bat')
-rw-r--r--buildconf.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildconf.bat b/buildconf.bat
index 698d80a823..004d36f42c 100644
--- a/buildconf.bat
+++ b/buildconf.bat
@@ -1,5 +1,5 @@
@echo off
-cscript /nologo win32\build\buildconf.js %*
+cscript /nologo /e:jscript win32\build\buildconf.js %*
SET PHP_BUILDCONF_PATH=%~dp0
copy %PHP_BUILDCONF_PATH%\win32\build\configure.bat %PHP_BUILDCONF_PATH% > nul
SET PHP_SDK_SCRIPT_PATH=