if (false === stream_select($r, $w, $e = NULL, 0)) {echo "stream_select() failed\n";}
참고: Be sure to use the === operator when checking for an error. Since the stream_select() may return 0 the comparison with == would evaluate to TRUE: