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