1--TEST--
2WeakReference no inheritance
3--FILE--
4<?php
5class Test extends WeakReference {}
6?>
7--EXPECTF--
8Fatal error: Class Test cannot extend final class WeakReference in %s on line %d
9