php-src/tests/classes/abstract_static.phpt
Antony Dovgal 7c24d8fbee typofix
2006-07-17 10:08:17 +00:00

35 lines
455 B
PHP

--TEST--
ZE2 A static abstract methods
--FILE--
<?php
interface showable
{
static function show();
}
class pass implements showable
{
static function show() {
echo "Call to function show()\n";
}
}
pass::show();
eval('
class fail
{
abstract static function func();
}
');
fail::show();
echo "Done\n"; // shouldn't be displayed
?>
--EXPECTF--
Call to function show()
Fatal error: Static function fail::func() cannot be abstract in %s on line %d