mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
d30cd7d7e7
Closes GH-5590
13 lines
301 B
PHP
13 lines
301 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
|