Lines Matching refs:A
5 /* A non-static closure has a bound instance if it has a scope
8 $nonstaticUnscoped = function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
10 class A {
13 return function() { var_dump(isset(A::$priv)); var_dump(isset($this)); };
17 $a = new A();
29 $d = $nonstaticUnscoped->bindTo(new A, null); $d(); echo "\n";
30 $d = $nonstaticScoped->bindTo(new A, null); $d(); echo "\n";
33 $d = $nonstaticUnscoped->bindTo(null, 'A'); $d(); echo "\n";
34 $d = $nonstaticScoped->bindTo(null, 'A'); $d(); echo "\n";
37 $d = $nonstaticUnscoped->bindTo(new A, 'A'); $d(); echo "\n";
38 $d = $nonstaticScoped->bindTo(new A, 'A'); $d(); echo "\n";