note 124006 rejected from class.weakreference by cmb

From: Date: Wed, 03 Jul 2019 07:18:48 +0000
Subject: note 124006 rejected from class.weakreference by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211466@lists.php.net to get a copy of this message
Note Submitter: mysamraat at gmail dot com ---- I am using PHP 7.3.4-1+ubuntu18.04.1+deb.sury.org+3. Tried the code snippet in the document for WeakReference. $obj=new StdClass(); $weakref =WeakReference::create($obj); var_dump($weakref->get()); // unset($obj); var_dump($weakref->get()); OUTPUT ======= PHP Fatal error: Uncaught Error: Class 'WeakReference' not found in Command line code:1 Stack trace: #0 {main} thrown in Command line code on line 1 Fatal error: Uncaught Error: Class 'WeakReference' not found in Command line code:1 Stack trace: #0 {main} thrown in Command line code on line 1

« previous php.notes (#211466) next »