note 123817 deleted from language.references.pass by cmb

From: Date: Thu, 02 May 2019 17:56:20 +0000
Subject: note 123817 deleted from language.references.pass by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210889@lists.php.net to get a copy of this message
Note Submitter: php at djmail dot org ---- As of 7.x, the way that objects are handled in pass-by-reference has changed: function foo(&$bar) { // The function need not do anything } $test = null; foo($test->var); // $test is now an object with a ->var property, even though it hasn't been set anywhere In 5.x, $test was left unset after the call to foo().

« previous php.notes (#210889) next »