php-src/ext/standard/tests/general_functions/010.phpt
Marcus Boerger 1cc463b88a - Fix tests
2008-02-02 15:19:06 +00:00

20 lines
441 B
PHP

--TEST--
register_shutdown_function() & __call
--FILE--
<?php
class test {
function _foo() {
throw new Exception('test');
}
function __call($name=null, $args=null) {
return test::_foo();
}
}
var_dump(register_shutdown_function(array("test","__call")));
echo "Done\n";
?>
--EXPECTF--
Fatal error: Non-static method test::__call() cannot be called statically in %s on line %d