Bug #79146 [NEW]: cscript can fail to run on some systems

From: Date: Tue, 21 Jan 2020 08:53:20 +0000
Subject: Bug #79146 [NEW]: cscript can fail to run on some systems
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225023@lists.php.net to get a copy of this message
From: deus dot kane at claromentis dot com Operating system: Windows PHP version: master-Git-2020-01-21 (Git) Package: *Compile Issues Bug Type: Bug Bug description:cscript can fail to run on some systems 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 bug report at https://bugs.php.net/bug.php?id=79146&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79146&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79146&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79146&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79146&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79146&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79146&r=support Expected behavior: https://bugs.php.net/fix.php?id=79146&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79146&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79146&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79146&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79146&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79146&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79146&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79146&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79146&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79146&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79146&r=mysqlcfg

« previous php.bugs (#225023) next »