Exemplo n.º 1
0
 protected override PhpCallable BindCore(Context ctx) => ctx.GetDeclaredFunction(_function)?.PhpCallable;
Exemplo n.º 2
0
 protected override PhpCallable BindCore(Context ctx) => ctx.GetDeclaredFunction(_function)?.PhpCallable;
Exemplo n.º 3
0
 /// <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;
 }