Re: [PHP] Filtering all output to STDERR

[email protected] (Peter Lind)
Newsgroups php.general
Message-ID <[email protected]>
Ahh, I see why my suggestions had no effect - I assumed you were
dealing with normal php errors, not something done customly by the
code.

I'm afraid the only option I see is that of debugging the problem
script to find out where it opens STDERR - if you're certain that the
script specifically outputs messages to STDERR, then it's opening that
stream somewhere before the output.

Regards
Peter

On 23 March 2010 11:28, Marten Lehmann <[email protected]> wrote:
>> Have you tried with
>> http://dk2.php.net/manual/en/function.error-reporting.php or just the
>> @ operator?
>
> Yes. But this does not work, because error levels and the @ operator only
> relate to errors thrown by the PHP runtime and have nothing to do with
> STDERR.
>
> But I need a way to close the STDERR file handle at the beginning of a
> script or at least catch and remove all output sent to STDERR.
>
> Regards
> Marten
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
<hype>
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
</hype>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.