[Process] Allow stdin to be a stream
Fix compatibility on PHP 5.3