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