TypedValue* tg_12SpoofChecker_setAllowedLocales(HPHP::VM::ActRec *ar) { TypedValue rv; int64_t count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL); if (this_) { if (count == 1LL) { if (IS_STRING_TYPE((args-0)->m_type)) { rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; th_12SpoofChecker_setAllowedLocales((this_), (Value*)(args-0)); frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_12SpoofChecker_setAllowedLocales(&rv, ar, count , this_); frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } } else { throw_wrong_arguments_nr("SpoofChecker::setAllowedLocales", count, 1, 1, 1); } } else { throw_instance_method_fatal("SpoofChecker::setAllowedLocales"); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_12SpoofChecker_setAllowedLocales(ActRec* ar) { TypedValue rvSpace; TypedValue* rv = &rvSpace; int32_t count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr); if (this_) { if (count == 1) { if (IS_STRING_TYPE((args - 0)->m_type)) { rv->m_type = KindOfNull; th_12SpoofChecker_setAllowedLocales((this_), &args[-0].m_data); } else { tg1_12SpoofChecker_setAllowedLocales(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SpoofChecker::setAllowedLocales", count, 1, 1, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SpoofChecker::setAllowedLocales"); } frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg1_12SpoofChecker_setAllowedLocales(TypedValue* rv, HPHP::VM::ActRec* ar, int64_t count, ObjectData* this_) { TypedValue* args UNUSED = ((TypedValue*)ar) - 1; rv->m_data.num = 0LL; rv->m_type = KindOfNull; tvCastToStringInPlace(args-0); th_12SpoofChecker_setAllowedLocales((this_), &args[-0].m_data); return rv; }
void tg1_12SpoofChecker_setAllowedLocales(TypedValue* rv, ActRec* ar, int32_t count, ObjectData* this_) { TypedValue* args UNUSED = ((TypedValue*)ar) - 1; tvCastToStringInPlace(args-0); rv->m_type = KindOfNull; th_12SpoofChecker_setAllowedLocales((this_), &args[-0].m_data); }