Bug #79146 [Opn->Ver]: cscript can fail to run on some systems

From: Date: Tue, 21 Jan 2020 09:36:10 +0000
Subject: Bug #79146 [Opn->Ver]: cscript can fail to run on some systems
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225024@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79146&edit=1 ID: 79146 Updated by: cmb@php.net Reported by: deus dot kane at claromentis dot com Summary: cscript can fail to run on some systems -Status: Open +Status: Verified Type: Bug Package: *Compile Issues Operating System: Windows PHP Version: master-Git-2020-01-21 (Git) -Assigned To: +Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2020-01-21 08:53:20] deus dot kane at claromentis dot com Description: ------------ Running "buildconf" or "configure" on Windows runs a batch file, whose only purpose is to call cscript in order to run a .js file that contins the actual configure scripts. By default, the file association for .js is set up in such a way that cscript can tell which script engine (jscript) to use without further instruction. However, if the file association has been changed from the default (imagine an IDE has been set up that can edit .js files) then cscript will fail to execute the script. The solution is to put an explicit "/e:jscript" flag in all calls to cscript, which will ensure that the script will always be executed successfully. I have a pull request that implements this change: https://github.com/php/php-src/pull/5101 Test script: --------------- buildconf Expected result: ---------------- Rebuilding configure.js Now run 'configure --help' Actual result: -------------- Input Error: There is no script engine for file extension ".js". ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79146&edit=1

« previous php.bugs (#225024) next »