2003-03-03 11:13:56 +00:00
--TEST--
2006-07-17 10:08:17 +00:00
ZE2 A static abstract methods
2003-03-03 11:13:56 +00:00
--FILE--
<?php
2006-05-10 21:19:37 +00:00
interface showable
{
static function show();
2003-03-03 11:13:56 +00:00
}
2006-05-10 21:19:37 +00:00
class pass implements showable
{
2003-03-03 11:13:56 +00:00
static function show() {
echo "Call to function show()\n";
}
}
pass::show();
2006-05-10 21:19:37 +00:00
eval('
class fail
{
abstract static function func();
}
');
2003-03-03 11:13:56 +00:00
fail::show();
echo "Done\n"; // shouldn't be displayed
?>
--EXPECTF--
Call to function show()
2007-04-18 08:06:29 +00:00
Strict Standards: Static function fail::func() should not be abstract in %sabstract_static.php(%d) : eval()'d code on line %d
2006-10-20 02:44:26 +00:00
2007-04-18 08:06:29 +00:00
Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (fail::func) in %sabstract_static.php(%d) : eval()'d code on line %d