if(!defined('STDOUT')){ ... }
The strings 'STDOUT' and 'STDERR' are literal strings and not file handles. Strings are always defined. Even '' (the empty string) and '0', both of which are false, are both defined.
I'm not sure of the best way to test if a file handle is functional, nor am I quite sure what "functional" means in this context.
Give a man a fish: <%-{-{-{-<
In reply to Re^5: STDERR Restore after redirect
by AnomalousMonk
in thread STDERR Restore after redirect
by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |