Project

General

Profile

Actions

Bug #19900

closed

stdout always buffered in CLI mode

Added by Daniel Matuschek almost 16 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-01-24
Due date:
% Done:

0%

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

Description

After upgrading from 4.2.3 to 4.2.4 output of CLI scripts is always buffered. Until 4.2.3 the output was not buffered.

Example (some code removed)

#!/usr/local/bin/php -n

// *********************************
// Standard initialization of a CLI module:
// *********************************

// Defining circumstances for CLI mode:
define('TYPO3_cliMode', TRUE);

// Defining PATH_thisScript here: Must be the ABSOLUTE path of this script in the right context:
// This will work as long as the script is called by it's absolute path!
//define('PATH_thisScript',$_ENV['_']?$_ENV['_']:$_SERVER['_']);
define('PATH_thisScript',".......");

define('TYPO3_MOD_PATH', '../typo3conf/ext/xxx/');
$BACK_PATH = '../../../typo3/';
$MCONF['name'] = '_CLI_xxx';
require_once(dirname(PATH_thisScript).'/'.$BACK_PATH.'init.php');

  1. HERE you run your application!
  2. do something ...
    ?>

(issue imported from #M10248)

Actions #1

Updated by Daniel Matuschek almost 16 years ago

problem still exists in 4.2.5

Actions #2

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #3

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF