Project

General

Profile

Actions

Bug #21089

closed

Prompt for keyboard input does not get displayed in CLI scripts

Added by Francois Suter about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2009-09-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When running the lowlevel_cleaner script with --AUTOFIX or -i options, validation is requested from the user. In my setup the prompt does not get displayed.

Simply adding:

ob_flush();

after:

echo $msg.' (Yes/No + return): ';

in class.t3lib_cli.php (around line 225) solves the issue.

This is an example command that I tried to run:

/path/to/php /path/to/website/typo3/cli_dispatch.phpsh lowlevel_cleaner orphan_records -r --refindex update --AUTOFIX

Running this command, you should be prompted with the following question:

NOW Running --AUTOFIX on result. OK? (Yes/No + return):

I don't get anything. I tried with TYPO3 4.1 running PHP 4.4.8 and TYPO3 4.2 and Trunk running PHP 5.2.6. The problem is the same no matter the configuration.
(issue imported from #M11995)


Files

rfc11995.diff (481 Bytes) rfc11995.diff Administrator Admin, 2009-09-19 12:25

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #21236: Add API functions for cleaning and flushing output buffersClosedRupert Germann2009-10-11

Actions
Related to TYPO3 Core - Bug #21325: Output compression breaks prompt for keyboard input in CLI scriptsClosedRupert Germann2009-10-21

Actions
Actions

Also available in: Atom PDF