Support HHVM

In HHVM, stream_get_meta_data returns empty string in uri property for resource of tmpfile().