protected override PhpCallable BindCore(Context ctx) => ctx.GetDeclaredFunction(_function)?.PhpCallable;
/// <summary> /// Checks the list of defined functions, both built-in and user-defined. /// </summary> /// <returns>Whether the function is declared.</returns> public static bool function_exists(Context ctx, string name) { return ctx.GetDeclaredFunction(name) != null; }