Besides true and false socket_set_block might return NULL if you're not too careful. That would happen when passing non socket resource as first parameter.
E.g. socket_set_block(false)) would return NULL and emit warning that you're trying to do things with non-socket.