file_get_contents return a null string if you call read on a directory

not sure it's a bug, file_get_contents works like this but I think it's not clean.