Fixed bug data->fd not set to -1 for open_basedir failure.