HOT_FUNC_HPHP CVarRef VectorArray::get(int64 k, bool error /* = false */) const { if (LIKELY(inRange(k, m_size))) { return tvAsCVarRef(&m_elems[k]); } return error ? getNotFound(k) : null_variant; }
CVarRef SharedMap::get(int64 k, bool error /* = false */) const { int index = m_arr->getIndex(k); if (index == -1) { return error ? getNotFound(k) : null_variant; } return getValueRef(index); }
CVarRef SharedMap::get(const StringData* k, bool error /* = false */) const { int index = getIndex(k); if (index == -1) { return error ? getNotFound(k) : null_variant; } return getValueRef(index); }
const Variant& ArrayData::getNotFound(const StringData* k, bool error) const { if (error && !useWeakKeys()) { throwOOBArrayKeyException(k); } return error && kind() != kGlobalsKind ? getNotFound(k) : null_variant; }
CVarRef VectorArray::get(const StringData* k, bool error /* = false */) const { return error ? getNotFound(k) : null_variant; }
const Variant& ArrayData::getNotFound(const StringData* k, bool error) const { return error && m_kind != kNvtwKind ? getNotFound(k) : null_variant; }
CVarRef ArrayData::getNotFound(int64_t k, bool error) const { return error && m_kind != kNvtwKind ? getNotFound(k) : null_variant; }