Fixed bug #11995: Prompt for keyboard input does not get displayed in CLI scripts
authorFrancois Suter <francois.suter@typo3.org>
Sun, 20 Sep 2009 15:54:03 +0000 (15:54 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Sun, 20 Sep 2009 15:54:03 +0000 (15:54 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@6014 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/cli_dispatch.phpsh

index 998fa33..95a44a4 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-20  Francois Suter  <francois@typo3.org>
+
+       * Fixed bug #11995: Prompt for keyboard input does not get displayed in CLI scripts
+
 2009-09-19  Rupert Germann  <rupi@gmx.li>
 
        * Fixed bug #11986: dynamic update of translation status im EM is broken
index d75337c..ed6a257 100755 (executable)
@@ -115,6 +115,10 @@ define('TYPO3_cliKey', $_SERVER['argv'][1]);
        // Include init file:
 require(dirname(PATH_thisScript).'/init.php');
 
+       // Make sure output is not buffered,
+       // so that command-line output and interaction can take place
+ob_end_flush();
+
 if (defined('TYPO3_cliInclude')) {
        include(TYPO3_cliInclude);
 } else {