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