{
AbstractFunction staticFun
= _quercus.findLowerFunctionImpl(name.toLowerCase());
if (staticFun != null)
throw new QuercusException(L.l("can't redefine function {0}", name));
int id = _quercus.getFunctionId(name);
// XXX: anonymous/generated functions(?), e.g. like foo2431
if (_fun.length <= id) {
AbstractFunction []funMap = new AbstractFunction[id + 256];
System.arraycopy(_fun, 0, funMap, 0, _fun.length);
_fun = funMap;
}
if (_fun[id] != null && ! (_fun[id] instanceof UndefinedFunction))
throw new QuercusException(L.l("can't redefine function {0}", name));
_fun[id] = fun;
return BooleanValue.TRUE;
}