STDERR not opened with php 5.0.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

on http://www.php.net/manual/en/features.commandline.php is writen:
STDERR - An already opened stream to stderr. This saves opening it with:
<?php
$stderr = fopen('php://stderr', 'w');
?>


But this does not work:
#! /usr/local/bin/php505 -q
<?php
fwrite(STDERR, "error!\n");
?>


This does work:
#! /usr/local/bin/php505 -q
<?php
define('STDERR', fopen('php://stderr', 'w'));
fwrite(STDERR, "error!\n");
?>


Is the manual wrong or does php 5.0.5 have change this property ?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux