TypedValue* fg_spl_object_hash(HPHP::VM::ActRec *ar) { TypedValue rv; int64_t count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; if (count == 1LL) { if ((args-0)->m_type == KindOfObject) { rv._count = 0; rv.m_type = KindOfString; fh_spl_object_hash((Value*)(&(rv)), (Value*)(args-0)); if (rv.m_data.num == 0LL) rv.m_type = KindOfNull; frame_free_locals_no_this_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { fg1_spl_object_hash(&rv, ar, count); frame_free_locals_no_this_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } } else { throw_wrong_arguments_nr("spl_object_hash", count, 1, 1, 1); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_no_this_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue * fg1_spl_object_hash(TypedValue* rv, HPHP::VM::ActRec* ar, int64_t count) { TypedValue* args UNUSED = ((TypedValue*)ar) - 1; rv->m_type = KindOfString; tvCastToObjectInPlace(args-0); fh_spl_object_hash((&rv->m_data), &args[-0].m_data); if (rv->m_data.num == 0LL) rv->m_type = KindOfNull; return rv; }
TypedValue * fg1_spl_object_hash(TypedValue* rv, HPHP::VM::ActRec* ar, long long count) { TypedValue* args UNUSED = ((TypedValue*)ar) - 1; rv->_count = 0; rv->m_type = KindOfString; tvCastToObjectInPlace(args-0); fh_spl_object_hash((Value*)(rv), (Value*)(args-0)); if (rv->m_data.num == 0LL) rv->m_type = KindOfNull; return rv; }