<?php //chan configure stdout -buffering none //chan configure stderr -buffering none //io.stderr:setvbuf("no") //puts -nonewline stderr "1 hello on stderr with crlf newline\r\n" fwrite(STDERR, "1 hello on stderr from PHP with crlf newline\r\n"); //flush stderr //io.stderr:flush() //puts -nonewline stdout "2 hello on stdout with crlf newline\r\n" fwrite(STDOUT, "2 hello on stdout from PHP with crlf newline\r\n"); //flush stdout //io.stdout:flush() //puts -nonewline stderr "3 hello on stderr with unix newline\n" fwrite(STDERR, "3 hello on stderr from PHP with unix newline\n"); //flush stderr //io.stderr:flush() //puts -nonewline stdout "4 hello on stdout with unix newline\n" fwrite(STDOUT, "4 hello on stdout from PHP with unix newline\n"); //flush stdout //io.stdout:flush() //puts -nonewline stderr "5 hello on stderr no line-ending" fwrite(STDERR, "5 hello on stderr from PHP no line-ending"); //flush stderr //flush(); //puts -nonewline stdout "6 hello on stdout no line-ending" fwrite(STDOUT, "6 hello on stdout from PHP no line-ending"); //flush stdout //flush(); //io.stdout:flush() ?>