Exemplo n.º 1
0
    }
    function isCallable()
    {
        return is_callable($this->cb);
    }
    function getNative()
    {
        return $this->cb;
    }
    function __toString()
    {
        is_callable($this->cb, TRUE, $textual);
        return $textual;
    }
}
Callback::$fix520 = version_compare(PHP_VERSION, '5.2.2', '<');
final class LimitedScope
{
    private static $vars;
    final function __construct()
    {
        throw new LogicException("Cannot instantiate static class " . get_class($this));
    }
    static function evaluate()
    {
        if (func_num_args() > 1) {
            extract(func_get_arg(1));
        }
        return eval('?>' . func_get_arg(0));
    }
    static function load()