Use STD* constants instead of opening new streams.

PHP provides STDIN, STDOUT and STDERR constants in CLI mode.