Exemplo n.º 1
0
Variant c___PHP_Incomplete_Class::os_invoke_from_eval(const char *c, const char *s, Eval::VariableEnvironment &env, const Eval::FunctionCallExpression *caller, int64 hash, bool fatal) {
  #ifndef NOFMCGEN
  MethodIndex methodIndex = methodIndexExists(s);
  #else
  #endif
  return c_ObjectData::os_invoke_from_eval(c, s, env, caller, hash, fatal);
}
Exemplo n.º 2
0
Variant c_stdclass::o_invoke_from_eval(const char *s, Eval::VariableEnvironment &env, const Eval::FunctionCallExpression *caller, int64 hash, bool fatal) {
#ifdef FMCGEN
  MethodIndex methodIndex = methodIndexExists(s);
#else
#endif
  return c_ObjectData::o_invoke_from_eval(s, env, caller, hash, fatal);
}
Exemplo n.º 3
0
Variant DynamicObjectData::o_root_invoke_mil(const char *s, CArrRef params,
                                             int64 hash,
                                             bool fatal /* = false */) {
  MethodIndex methodIndex(MethodIndex::fail());
  if (RuntimeOption::FastMethodCall) {
    methodIndex = methodIndexExists(s);
    if (methodIndex.isFail()) {
      return root->doCall(s, params, fatal);
    }
  }
  return o_root_invoke(methodIndex, s, params, hash, fatal) ;
}
Exemplo n.º 4
0
Variant DynamicObjectData::o_invoke_few_args_mil(const char *s, int64 hash,
                                                 int count,
                                                 INVOKE_FEW_ARGS_IMPL_ARGS) {
  MethodIndex methodIndex(MethodIndex::fail());
  if (RuntimeOption::FastMethodCall) {
    methodIndex = methodIndexExists(s);
    if (methodIndex.isFail()) {
      return root->doCall(s, collectArgs(count, INVOKE_FEW_ARGS_PASS_ARGS),
                          true);
    }
  }
  return o_invoke_few_args(methodIndex, s, hash, count,
                           INVOKE_FEW_ARGS_PASS_ARGS);
}
Exemplo n.º 5
0
Variant ClassStatics::os_invoke_mil(const char *c,
                                    const char *s,
                                    CArrRef params, int64 hash,
                                    bool fatal /* = true */) {

  MethodIndex methodIndex (MethodIndex::fail());
  if (RuntimeOption::FastMethodCall) {
    methodIndex = methodIndexExists(s);
    if (methodIndex.isFail()) {
      raise_warning("call_user_func to non-existent method %s::%s", c, s);
    }
  }
  // redispatch
  return os_invoke(c, methodIndex, s, params, hash, fatal);
}