1--TEST--
2ZE2 A final method may not be overwritten
3--SKIPIF--
4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
5--FILE--
6<?php
7
8class pass {
9	final function show() {
10		echo "Call to function pass::show()\n";
11	}
12}
13
14$t = new pass();
15
16class fail extends pass {
17	function show() {
18		echo "Call to function fail::show()\n";
19	}
20}
21
22echo "Done\n"; // Shouldn't be displayed
23?>
24--EXPECTF--
25Fatal error: Cannot override final method pass::show() in %s on line %d
26