public function getMessage();
}
-class Exception implements Throwable {
+class Exception_foo implements Throwable {
public $foo = "foo";
public function getMessage() {
}
}
-$foo = new Exception;
+$foo = new Exception_foo;
echo $foo->getMessage() . "\n";
?>
public function getErrno();
}
-class Exception implements Throwable {
+class Exception_foo implements Throwable {
public $foo = "foo";
public function getMessage() {
}
// this should die -- Exception class must be abstract...
-$foo = new Exception;
+$foo = new Exception_foo;
echo $foo->getMessage() . "\n";
?>
--EXPECTF--
-Fatal error: Class exception contains abstract methods and must be declared abstract in %s on line %d
+Fatal error: Class exception_foo contains abstract methods and must be declared abstract in %s on line %d