1--TEST--
2Closure 045: Closures created in static methods are not implicitly static
3--FILE--
4<?php
5
6class A {
7 static function foo() {
8 return function () {};
9 }
10}
11
12$a = A::foo();
13$a->bindTo(new A);
14
15echo "Done.\n";
16--EXPECTF--
17Done.
18