1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/Zend/tests/weakrefs/weakrefs_005.phpt
T
2019-03-12 00:35:35 +01:00

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