note 123817 added to language.references.pass

From: Date: Thu, 02 May 2019 16:34:31 +0000
Subject: note 123817 added to language.references.pass
Groups: php.notes 
Request: Send a blank email to php-notes+get-210887@lists.php.net to get a copy of this message
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(). ---- Server IP: 208.43.231.9 Probable Submitter: 82.199.157.34 (proxied: 2603:3026:303:d100:f043:fd70:8039:8f01) ---- Manual Page -- http://php.net/manual/en/language.references.pass.php Edit -- https://master.php.net/note/edit/123817 Del: integrated -- https://master.php.net/note/delete/123817/integrated Del: useless -- https://master.php.net/note/delete/123817/useless Del: bad code -- https://master.php.net/note/delete/123817/bad+code Del: spam -- https://master.php.net/note/delete/123817/spam Del: non-english -- https://master.php.net/note/delete/123817/non-english Del: in docs -- https://master.php.net/note/delete/123817/in+docs Del: other reasons-- https://master.php.net/note/delete/123817 Reject -- https://master.php.net/note/reject/123817 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210887) next »