return NullValue.NULL;
}
}
}
AbstractFunction fun = env.findFunction(_funId);
if (fun == null) {
env.error(getLocationLine(), L.l("'{0}' is an unknown function.", _name));
return NullValue.NULL;
}
Value []args = evalArgs(env, _args);
env.pushCall(this, NullValue.NULL, args);
// php/0249
QuercusClass oldCallingClass = env.setCallingClass(null);
// XXX: qa/1d14 Value oldThis = env.setThis(UnsetValue.NULL);
try {
env.checkTimeout();
/*
if (isRef)
return fun.callRef(env, args);
else if (isCopy)
return fun.callCopy(env, args);
else
return fun.call(env, args);
*/
if (isRef)
return fun.callRef(env, args);
else if (isCopy)
return fun.call(env, args).copyReturn();
else {
return fun.call(env, args).toValue();
}
//} catch (Exception e) {
// throw QuercusException.create(e, env.getStackTrace());
} finally {
env.popCall();