1--TEST--
2WeakReference no __construct
3--FILE--
4<?php
5new WeakReference();
6?>
7--EXPECTF--
8Fatal error: Uncaught Error: Direct instantiation of WeakReference is not allowed, use WeakReference::create instead in %s:2
9Stack trace:
10#0 %s(2): WeakReference->__construct()
11#1 {main}
12  thrown in %s on line 2
13