1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/Zend/tests/closure_045.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

19 lines
248 B
PHP

--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";
?>
--EXPECT--
Done.