--TEST-- message body to stream --SKIPIF-- --FILE-- toStream($f = fopen("php://temp", "w")); fseek($f, 0, SEEK_SET); var_dump(file_get_contents(__FILE__) === stream_get_contents($f)); ?> DONE --EXPECT-- Test bool(true) DONE