2002-11-24 15:51:57 +00:00
|
|
|
--TEST--
|
2003-10-20 04:49:18 +00:00
|
|
|
ZE2 A method cannot be redeclared abstract
|
2002-11-24 15:51:57 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
class pass {
|
|
|
|
function show() {
|
|
|
|
echo "Call to function show()\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class fail extends pass {
|
|
|
|
abstract function show();
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "Done\n"; // Shouldn't be displayed
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
|
|
|
|
2004-02-27 09:17:55 +00:00
|
|
|
Fatal error: Class fail contains 1 abstract methods and must therefore be declared abstract (fail::show) in %sabstract_redeclare.php on line %d
|