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:52:14 +0000 (15:52 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Sun, 20 Sep 2009 15:52:14 +0000 (15:52 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6013 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/cli_dispatch.phpsh

index d97c0fe..0134a2c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
 
        * Fixed bug #12010: Task uid should be displayed in Scheduler's BE module list view
        * Follow-up to UI-Bug #F3282: Changed icon_warning.gif to match flash messages' warning icon
+       * Fixed bug #11995: Prompt for keyboard input does not get displayed in CLI scripts
 
 2009-09-20  Benjamin Mack  <benni@typo3.org>
 
index 000f0c3..03e2f69 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 {