summaryrefslogtreecommitdiff
path: root/win32/build/phpize.js.in
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/phpize.js.in
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/phpize.js.in')
-rw-r--r--win32/build/phpize.js.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/build/phpize.js.in b/win32/build/phpize.js.in
index 904b1130c1..b64f32c71d 100644
--- a/win32/build/phpize.js.in
+++ b/win32/build/phpize.js.in
@@ -260,6 +260,6 @@ C.WriteBlankLines(1);
C.Write(file_get_contents(PHP_DIR + "\\script\\configure.tail"));
B.WriteLine("@echo off");
-B.WriteLine("cscript /nologo configure.js %*");
+B.WriteLine("cscript /nologo /e:jscript configure.js %*");
FSO.CopyFile(PHP_DIR + "\\script\\run-tests.php", "run-tests.php", true);