From:             [EMAIL PROTECTED]
Operating system: cobalt linux 2.2.14C10
PHP version:      4.0.4pl1
PHP Bug Type:     Apache related
Bug description:  stdio stream problem

The following php lines :-

<?PHP
    $fp = fopen("php://stderr", "w");
    fputs($fp, "here's a debug message");
    fclose($fp);
    phpinfo();
?>

work the first time but the second time reply with :-

Warning: fopen("php://stderr","w") - Bad file descriptor in 
/home/sites/site2/users/jbarrett/web/test.php on line 2

Warning: Supplied argument is not a valid File-Handle resource in 
/home/sites/site2/users/jbarrett/web/test.php on line 3

Warning: Supplied argument is not a valid File-Handle resource in 
/home/sites/site2/users/jbarrett/web/test.php on line 4

unless apache is restarted. Called it apache related cos the code works fine on 
console but only fails this way as an apache module. (more than likely something to do 
with PHP "cleaning up" the file pointer)



-- 
Edit Bug report at: http://bugs.php.net/?id=11599&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to