Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed invalid file path for hiddeninput.exe on Windows.
  • Loading branch information
kherge committed Mar 19, 2013
1 parent e055b80 commit 633c051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/Helper/DialogHelper.php
Expand Up @@ -230,11 +230,11 @@ public function askConfirmation(OutputInterface $output, $question, $default = t
public function askHiddenResponse(OutputInterface $output, $question, $fallback = true)
{
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$exe = __DIR__ . '/../../Resources/bin/hiddeninput.exe';
$exe = __DIR__ . '/../Resources/bin/hiddeninput.exe';

// handle code running from a phar
if ('phar:' === substr(__FILE__, 0, 5)) {
$tmpExe = sys_get_temp_dir() . '/../../Resources/bin/hiddeninput.exe';
$tmpExe = sys_get_temp_dir() . '/hiddeninput.exe';
copy($exe, $tmpExe);
$exe = $tmpExe;
}
Expand Down

0 comments on commit 633c051

Please sign in to comment.