33/*
44 * This file is part of the pake package.
55 * (c) 2004, 2005 Fabien Potencier <[email protected] > 6- *
6+ *
77 * For the full copyright and license information, please view the LICENSE
88 * file that was distributed with this source code.
99 */
@@ -46,18 +46,18 @@ function render($e)
4646
4747 $ messages [] = str_repeat (' ' , $ len );
4848
49- fwrite (STDERR , "\n" );
49+ fwrite (pake_STDERR () , "\n" );
5050 foreach ($ messages as $ message )
5151 {
52- fwrite (STDERR , pakeColor::colorize ($ message , 'ERROR ' , STDERR )."\n" );
52+ fwrite (pake_STDERR () , pakeColor::colorize ($ message , 'ERROR ' , pake_STDERR () )."\n" );
5353 }
54- fwrite (STDERR , "\n" );
54+ fwrite (pake_STDERR () , "\n" );
5555
5656 $ pake = pakeApp::get_instance ();
5757
5858 if ($ pake ->get_trace ())
5959 {
60- fwrite (STDERR , "exception trace: \n" );
60+ fwrite (pake_STDERR () , "exception trace: \n" );
6161
6262 $ trace = $ this ->trace ($ e );
6363 for ($ i = 0 , $ count = count ($ trace ); $ i < $ count ; $ i ++)
@@ -68,11 +68,11 @@ function render($e)
6868 $ file = isset ($ trace [$ i ]['file ' ]) ? $ trace [$ i ]['file ' ] : 'n/a ' ;
6969 $ line = isset ($ trace [$ i ]['line ' ]) ? $ trace [$ i ]['line ' ] : 'n/a ' ;
7070
71- fwrite (STDERR , sprintf (" %s%s%s at %s:%s \n" , $ class , $ type , $ function , pakeColor::colorize ($ file , 'INFO ' , STDERR ) , pakeColor::colorize ($ line , 'INFO ' , STDERR )));
71+ fwrite (pake_STDERR () , sprintf (" %s%s%s at %s:%s \n" , $ class , $ type , $ function , pakeColor::colorize ($ file , 'INFO ' , pake_STDERR ()) , pakeColor::colorize ($ line , 'INFO ' , pake_STDERR () )));
7272 }
7373 }
7474
75- fwrite (STDERR , "\n" );
75+ fwrite (pake_STDERR () , "\n" );
7676 }
7777
7878 function trace ($ exception )
0 commit comments