1
0
Fork 0

Fix way of checking for Windows

pull/223/merge
Jordi Boggiano 2012-01-22 20:21:14 +01:00
parent afa7fb8d75
commit a41fefd1d9
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class ConsoleIO implements IOInterface
public function askAndHideAnswer($question) public function askAndHideAnswer($question)
{ {
// for windows OS (does not hide the answer in the popup, but it never appears in the STDIN history) // for windows OS (does not hide the answer in the popup, but it never appears in the STDIN history)
if (preg_match('/^win/i', PHP_OS)) { if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$vbscript = sys_get_temp_dir() . '/prompt_password.vbs'; $vbscript = sys_get_temp_dir() . '/prompt_password.vbs';
file_put_contents($vbscript, file_put_contents($vbscript,
'wscript.echo(Inputbox("' . addslashes($question) . '","' 'wscript.echo(Inputbox("' . addslashes($question) . '","'