Development

Changeset 10952

You must first sign up to be able to contribute.

Changeset 10952

Show
Ignore:
Timestamp:
08/19/08 17:04:33 (11 months ago)
Author:
fabien
Message:

[1.1, 1.2] fixed STDOUT only exists with php-cli (closes #4203)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/log/sfConsoleLogger.class.php

    r7452 r10952  
    2424  public function initialize(sfEventDispatcher $dispatcher, $options = array()) 
    2525  { 
    26     $options['stream'] = STDOUT
     26    $options['stream'] = defined('STDOUT') ? STDOUT : fopen('php://stdout', 'w')
    2727 
    2828    return parent::initialize($dispatcher, $options); 
  • branches/1.2/lib/log/sfConsoleLogger.class.php

    r7452 r10952  
    2424  public function initialize(sfEventDispatcher $dispatcher, $options = array()) 
    2525  { 
    26     $options['stream'] = STDOUT
     26    $options['stream'] = defined('STDOUT') ? STDOUT : fopen('php://stdout', 'w')
    2727 
    2828    return parent::initialize($dispatcher, $options); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.