mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
13 lines
303 B
PHP
13 lines
303 B
PHP
--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
|