Your IP : 216.73.216.48


Current Path : /hdd/hdd21/main/php5/php-5.6.6/Zend/tests/
Upload File :
Current File : //hdd/hdd21/main/php5/php-5.6.6/Zend/tests/closure_045.phpt

--TEST--
Closure 045: Closures created in static methods are static, even without the keyword
--FILE--
<?php

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

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

echo "Done.\n";

--EXPECTF--
Warning: Cannot bind an instance to a static closure in %s on line %d
Done.