TypedValue* methodWrapper(ActRec* ar) { auto func = ar->m_func; auto numArgs = func->numParams(); auto numNonDefault = ar->numArgs(); bool isStatic = func->isStatic(); assert(!func->hasVariadicCaptureParam()); TypedValue* args = ((TypedValue*)ar) - 1; TypedValue rv; rv.m_type = KindOfNull; if (LIKELY(numNonDefault == numArgs) || LIKELY(nativeWrapperCheckArgs(ar))) { if (coerceFCallArgs(args, numArgs, numNonDefault, func)) { // Prepend a context arg for methods // KindOfClass when it's being called statically Foo::bar() // KindOfObject when it's being called on an instance $foo->bar() TypedValue ctx; if (ar->hasThis()) { if (isStatic) { throw_instance_method_fatal(getInvokeName(ar)->data()); } ctx.m_type = KindOfObject; ctx.m_data.pobj = ar->getThis(); } else { if (!isStatic) { throw_instance_method_fatal(getInvokeName(ar)->data()); } ctx.m_type = KindOfClass; ctx.m_data.pcls = const_cast<Class*>(ar->getClass()); } callFunc(func, &ctx, args, numArgs, rv); } else if (func->attrs() & AttrParamCoerceModeFalse) { rv.m_type = KindOfBoolean; rv.m_data.num = 0; } } assert(rv.m_type != KindOfUninit); if (isStatic) { frame_free_locals_no_this_inl(ar, func->numLocals(), &rv); } else { frame_free_locals_inl(ar, func->numLocals(), &rv); } tvCopy(rv, ar->m_r); return &ar->m_r; }
TypedValue* tg_16EncodingDetector_detectAll(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 == 0LL) { rv.m_type = KindOfArray; th_16EncodingDetector_detectAll((&rv.m_data), (this_)); if (rv.m_data.num == 0LL) rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("EncodingDetector::detectAll", 0, 1); } } else { throw_instance_method_fatal("EncodingDetector::detectAll"); } rv.m_data.num = 0LL; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_10WaitHandle_getWaitHandle(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 == 0LL) { rv.m_type = KindOfObject; th_10WaitHandle_getWaitHandle((Value*)(&(rv)), (this_)); if (rv.m_data.num == 0LL) rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("WaitHandle::getWaitHandle", 0, 1); } } else { throw_instance_method_fatal("WaitHandle::getWaitHandle"); } rv.m_data.num = 0LL; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_12SpoofChecker___construct(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 == 0LL) { rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; th_12SpoofChecker___construct((this_)); frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("SpoofChecker::__construct", 0, 1); } } else { throw_instance_method_fatal("SpoofChecker::__construct"); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_17DummyContinuation_key(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 == 0LL) { rv.m_type = KindOfInt64; rv.m_data.num = (int64_t)th_17DummyContinuation_key((this_)); frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("DummyContinuation::key", 0, 1); } } else { throw_instance_method_fatal("DummyContinuation::key"); } rv.m_data.num = 0LL; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_12Continuation_get_arg(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 ((args-0)->m_type == KindOfInt64) { th_12Continuation_get_arg((&(rv)), (this_), (long)(args[-0].m_data.num)); if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull; frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_12Continuation_get_arg(&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("Continuation::get_arg", count, 1, 1, 1); } } else { throw_instance_method_fatal("Continuation::get_arg"); } rv.m_data.num = 0LL; 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_12DateTimeZone_getTransitions(HPHP::VM::ActRec *ar) { TypedValue rv; long long count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL); if (this_) { if (count == 0LL) { rv._count = 0; rv.m_type = KindOfArray; th_12DateTimeZone_getTransitions((Value*)(&(rv)), (this_)); if (rv.m_data.num == 0LL) rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("DateTimeZone::getTransitions", 0, 1); } } else { throw_instance_method_fatal("DateTimeZone::getTransitions"); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_8DateTime_setTime(HPHP::VM::ActRec *ar) { TypedValue rv; long long count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL); if (this_) { if (count >= 2LL && count <= 3LL) { if ((count <= 2 || (args-2)->m_type == KindOfInt64) && (args-1)->m_type == KindOfInt64 && (args-0)->m_type == KindOfInt64) { rv._count = 0; rv.m_type = KindOfObject; th_8DateTime_setTime((Value*)(&(rv)), (this_), (long long)(args[-0].m_data.num), (long long)(args[-1].m_data.num), (count > 2) ? (long long)(args[-2].m_data.num) : (long long)(0)); if (rv.m_data.num == 0LL) rv.m_type = KindOfNull; frame_free_locals_inl(ar, 3); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_8DateTime_setTime(&rv, ar, count , this_); frame_free_locals_inl(ar, 3); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } } else { throw_wrong_arguments_nr("DateTime::setTime", count, 2, 3, 1); } } else { throw_instance_method_fatal("DateTime::setTime"); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 3); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_13SQLite3Result_fetcharray(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 ((count <= 0 || (args - 0)->m_type == KindOfInt64)) { th_13SQLite3Result_fetcharray(rv, (this_), (count > 0) ? (long)(args[-0].m_data.num) : (long)(k_SQLITE3_BOTH)); if (rv->m_type == KindOfUninit) rv->m_type = KindOfNull; } else { tg1_13SQLite3Result_fetcharray(rv, ar, count, this_); } } else { throw_toomany_arguments_nr("SQLite3Result::fetcharray", 1, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3Result::fetcharray"); } frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_13SQLite3Result_columnname(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 ((args - 0)->m_type == KindOfInt64) { rv->m_type = KindOfString; th_13SQLite3Result_columnname(&(rv->m_data), (this_), (long)(args[-0].m_data.num)); if (rv->m_data.num == 0LL) rv->m_type = KindOfNull; } else { tg1_13SQLite3Result_columnname(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3Result::columnname", count, 1, 1, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3Result::columnname"); } frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_12Continuation_getOrigFuncName(HPHP::VM::ActRec *ar) { EXCEPTION_GATE_ENTER(); TypedValue rv; long long count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL); if (this_) { if (count == 0LL) { rv._count = 0; rv.m_type = KindOfString; th_12Continuation_getOrigFuncName((Value*)(&(rv)), (this_)); if (rv.m_data.num == 0LL) rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("Continuation::getOrigFuncName", 0, 1); } } else { throw_instance_method_fatal("Continuation::getOrigFuncName"); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; EXCEPTION_GATE_RETURN(&ar->m_r); }
TypedValue* tg_12Continuation_send(HPHP::VM::ActRec *ar) { EXCEPTION_GATE_ENTER(); TypedValue rv; long long count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL); if (this_) { if (count == 1LL) { rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; th_12Continuation_send((this_), (args-0)); frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_wrong_arguments_nr("Continuation::send", count, 1, 1, 1); } } else { throw_instance_method_fatal("Continuation::send"); } 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; EXCEPTION_GATE_RETURN(&ar->m_r); }
TypedValue* tg_17DummyContinuation_valid(HPHP::VM::ActRec *ar) { EXCEPTION_GATE_ENTER(); TypedValue rv; long long count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL); if (this_) { if (count == 0LL) { rv._count = 0; rv.m_type = KindOfBoolean; rv.m_data.num = (th_17DummyContinuation_valid((this_))) ? 1LL : 0LL; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("DummyContinuation::valid", 0, 1); } } else { throw_instance_method_fatal("DummyContinuation::valid"); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; EXCEPTION_GATE_RETURN(&ar->m_r); }
TypedValue* tg_16EncodingDetector_setText(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.m_type = KindOfNull; th_16EncodingDetector_setText((this_), &args[-0].m_data); frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_16EncodingDetector_setText(&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("EncodingDetector::setText", count, 1, 1, 1); } } else { throw_instance_method_fatal("EncodingDetector::setText"); } rv.m_data.num = 0LL; 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_13EncodingMatch_isValid(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 == 0LL) { rv.m_type = KindOfBoolean; rv.m_data.num = (th_13EncodingMatch_isValid((this_))) ? 1LL : 0LL; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("EncodingMatch::isValid", 0, 1); } } else { throw_instance_method_fatal("EncodingMatch::isValid"); } rv.m_data.num = 0LL; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_11SQLite3Stmt_bindvalue(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 >= 2 && count <= 3) { if ((count <= 2 || (args - 2)->m_type == KindOfInt64)) { rv->m_type = KindOfBoolean; rv->m_data.num = (th_11SQLite3Stmt_bindvalue((this_), (args-0), (args-1), (count > 2) ? (long)(args[-2].m_data.num) : (long)(k_SQLITE3_TEXT))) ? 1LL : 0LL; } else { tg1_11SQLite3Stmt_bindvalue(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3Stmt::bindvalue", count, 2, 3, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3Stmt::bindvalue"); } frame_free_locals_inl(ar, 3); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_8DateTime_modify(HPHP::VM::ActRec *ar) { TypedValue rv; long long 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._count = 0; rv.m_type = KindOfObject; th_8DateTime_modify((Value*)(&(rv)), (this_), (Value*)(args-0)); if (rv.m_data.num == 0LL) rv.m_type = KindOfNull; frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_8DateTime_modify(&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("DateTime::modify", count, 1, 1, 1); } } else { throw_instance_method_fatal("DateTime::modify"); } 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_7SQLite3_busytimeout(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 ((args - 0)->m_type == KindOfInt64) { rv->m_type = KindOfBoolean; rv->m_data.num = (th_7SQLite3_busytimeout((this_), (long)(args[-0].m_data.num))) ? 1LL : 0LL; } else { tg1_7SQLite3_busytimeout(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3::busytimeout", count, 1, 1, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3::busytimeout"); } frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_12DateTimeZone_getOffset(HPHP::VM::ActRec *ar) { TypedValue rv; long long count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL); if (this_) { if (count == 1LL) { if ((args-0)->m_type == KindOfObject) { rv._count = 0; rv.m_type = KindOfInt64; rv.m_data.num = (long long)th_12DateTimeZone_getOffset((this_), (Value*)(args-0)); frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_12DateTimeZone_getOffset(&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("DateTimeZone::getOffset", count, 1, 1, 1); } } else { throw_instance_method_fatal("DateTimeZone::getOffset"); } 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_7SQLite3_prepare(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)) { th_7SQLite3_prepare(rv, (this_), &args[-0].m_data); if (rv->m_type == KindOfUninit) rv->m_type = KindOfNull; } else { tg1_7SQLite3_prepare(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3::prepare", count, 1, 1, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3::prepare"); } frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_12Continuation___construct(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 >= 2LL && count <= 4LL) { if ((count <= 3 || (args-3)->m_type == KindOfArray) && IS_STRING_TYPE((args-1)->m_type) && (args-0)->m_type == KindOfInt64) { rv.m_data.num = 0LL; rv.m_type = KindOfNull; Variant defVal2; th_12Continuation___construct((this_), (long)(args[-0].m_data.num), &args[-1].m_data, (count > 2) ? (args-2) : (TypedValue*)(&defVal2), (count > 3) ? &args[-3].m_data : (Value*)(&null_array)); frame_free_locals_inl(ar, 4); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_12Continuation___construct(&rv, ar, count , this_); frame_free_locals_inl(ar, 4); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } } else { throw_wrong_arguments_nr("Continuation::__construct", count, 2, 4, 1); } } else { throw_instance_method_fatal("Continuation::__construct"); } rv.m_data.num = 0LL; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 4); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_11SQLite3Stmt___construct(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 == 2) { if (IS_STRING_TYPE((args - 1)->m_type) && (args - 0)->m_type == KindOfObject) { rv->m_type = KindOfNull; th_11SQLite3Stmt___construct((this_), &args[-0].m_data, &args[-1].m_data); } else { tg1_11SQLite3Stmt___construct(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3Stmt::__construct", count, 2, 2, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3Stmt::__construct"); } frame_free_locals_inl(ar, 2); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_12Continuation_raise(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) { rv.m_data.num = 0LL; rv.m_type = KindOfNull; th_12Continuation_raise((this_), (args-0)); frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_wrong_arguments_nr("Continuation::raise", count, 1, 1, 1); } } else { throw_instance_method_fatal("Continuation::raise"); } rv.m_data.num = 0LL; 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_7SQLite3_querysingle(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 && count <= 2) { if ((count <= 1 || (args - 1)->m_type == KindOfBoolean) && IS_STRING_TYPE((args - 0)->m_type)) { th_7SQLite3_querysingle(rv, (this_), &args[-0].m_data, (count > 1) ? (bool)(args[-1].m_data.num) : (bool)(false)); if (rv->m_type == KindOfUninit) rv->m_type = KindOfNull; } else { tg1_7SQLite3_querysingle(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3::querysingle", count, 1, 2, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3::querysingle"); } frame_free_locals_inl(ar, 2); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_12SpoofChecker_setChecks(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 ((args-0)->m_type == KindOfInt64) { rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; th_12SpoofChecker_setChecks((this_), (int)(args[-0].m_data.num)); frame_free_locals_inl(ar, 1); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_12SpoofChecker_setChecks(&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::setChecks", count, 1, 1, 1); } } else { throw_instance_method_fatal("SpoofChecker::setChecks"); } 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_7SQLite3___construct(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 && count <= 3) { if ((count <= 2 || IS_STRING_TYPE((args - 2)->m_type)) && (count <= 1 || (args - 1)->m_type == KindOfInt64) && IS_STRING_TYPE((args - 0)->m_type)) { rv->m_type = KindOfNull; th_7SQLite3___construct((this_), &args[-0].m_data, (count > 1) ? (long)(args[-1].m_data.num) : (long)(k_SQLITE3_OPEN_READWRITE|k_SQLITE3_OPEN_CREATE), (count > 2) ? &args[-2].m_data : (Value*)(&null_string)); } else { tg1_7SQLite3___construct(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3::__construct", count, 1, 3, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3::__construct"); } frame_free_locals_inl(ar, 3); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_12SpoofChecker_isSuspicious(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 && count <= 2LL) { if (IS_STRING_TYPE((args-0)->m_type)) { rv._count = 0; rv.m_type = KindOfBoolean; VRefParamValue defVal1 = null; rv.m_data.num = (th_12SpoofChecker_isSuspicious((this_), (Value*)(args-0), (count > 1) ? (args-1) : (TypedValue*)(&defVal1))) ? 1LL : 0LL; frame_free_locals_inl(ar, 2); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { tg1_12SpoofChecker_isSuspicious(&rv, ar, count , this_); frame_free_locals_inl(ar, 2); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } } else { throw_wrong_arguments_nr("SpoofChecker::isSuspicious", count, 1, 2, 1); } } else { throw_instance_method_fatal("SpoofChecker::isSuspicious"); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 2); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; return &ar->m_r; }
TypedValue* tg_7SQLite3_createfunction(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 >= 2 && count <= 3) { if ((count <= 2 || (args - 2)->m_type == KindOfInt64) && IS_STRING_TYPE((args - 0)->m_type)) { rv->m_type = KindOfBoolean; rv->m_data.num = (th_7SQLite3_createfunction((this_), &args[-0].m_data, (args-1), (count > 2) ? (long)(args[-2].m_data.num) : (long)(-1))) ? 1LL : 0LL; } else { tg1_7SQLite3_createfunction(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3::createfunction", count, 2, 3, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3::createfunction"); } frame_free_locals_inl(ar, 3); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }
TypedValue* tg_13EncodingMatch___destruct(HPHP::VM::ActRec *ar) { EXCEPTION_GATE_ENTER(); TypedValue rv; long long count = ar->numArgs(); TypedValue* args UNUSED = ((TypedValue*)ar) - 1; ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL); if (this_) { if (count == 0LL) { th_13EncodingMatch___destruct((&(rv)), (this_)); if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; } else { throw_toomany_arguments_nr("EncodingMatch::__destruct", 0, 1); } } else { throw_instance_method_fatal("EncodingMatch::__destruct"); } rv.m_data.num = 0LL; rv._count = 0; rv.m_type = KindOfNull; frame_free_locals_inl(ar, 0); memcpy(&ar->m_r, &rv, sizeof(TypedValue)); return &ar->m_r; EXCEPTION_GATE_RETURN(&ar->m_r); }
TypedValue* tg_7SQLite3_openblob(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 >= 3 && count <= 4) { if ((count <= 3 || IS_STRING_TYPE((args - 3)->m_type)) && (args - 2)->m_type == KindOfInt64 && IS_STRING_TYPE((args - 1)->m_type) && IS_STRING_TYPE((args - 0)->m_type)) { rv->m_type = KindOfBoolean; rv->m_data.num = (th_7SQLite3_openblob((this_), &args[-0].m_data, &args[-1].m_data, (long)(args[-2].m_data.num), (count > 3) ? &args[-3].m_data : (Value*)(&null_string))) ? 1LL : 0LL; } else { tg1_7SQLite3_openblob(rv, ar, count, this_); } } else { throw_wrong_arguments_nr("SQLite3::openblob", count, 3, 4, 1); rv->m_data.num = 0LL; rv->m_type = KindOfNull; } } else { throw_instance_method_fatal("SQLite3::openblob"); } frame_free_locals_inl(ar, 4); memcpy(&ar->m_r, rv, sizeof(TypedValue)); return &ar->m_r; }