--TEST-- Casting a stream can lose data and needs to emit a warning --SKIPIF-- --FILE-- $stream, 1 => ['pipe', 'w'], ], $pipes, ); var_dump(stream_get_contents($pipes[1])); ?> --EXPECTF-- Warning: proc_open(): 2 bytes of buffered data lost during stream conversion! in %s on line %d string(0) ""