summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_045.phpt
blob: 3a9720eaf525add5029ce357ee4052571118fcea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Closure 045: Closures created in static methods are not implicitly static
--FILE--
<?php

class A {
    static function foo() {
        return function () {};
    }
}

$a = A::foo();
$a->bindTo(new A);

echo "Done.\n";
--EXPECTF--
Done.