示例#1
0
Variant invoke_file(const String& s, bool once, const char *currentDir) {
  Variant r;
  if (invoke_file_impl(r, s, once, currentDir)) {
    return r;
  }
  return throw_missing_file(s.c_str());
}
示例#2
0
Variant invoke_file(CStrRef s,
                    bool once,
                    LVariableTable* variables,
                    const char *currentDir) {
  assert(!variables); // this LVariableTable is unused in HHVM
  {
    Variant r;
    if (eval_invoke_file_hook(r, s, once, variables, currentDir)) {
      return r;
    }
  }
  if (s.empty()) return vm_default_invoke_file(once);
  return throw_missing_file(s.c_str());
}
示例#3
0
Variant invoke_file(CStrRef s, bool once /* = false */, LVariableTable* variables /* = NULL */,const char *currentDir /* = NULL */) {
  pm_t ptr = findFile(s.c_str(), s->hash());
  if (ptr) return ptr(once, variables, get_globals());
  return throw_missing_file(s.c_str());
}