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