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