note 102295 added to reserved.variables.session

From: Date: Mon, 07 Feb 2011 14:00:29 +0000
Subject: note 102295 added to reserved.variables.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-176726@lists.php.net to get a copy of this message
When accidently assigning a unset variable to $_SESSION, like $_SESSION['foo'] = $bar while $bar was not defined, I got the following error message: "Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. " The errormessage was quite unrelated and got me off-track. The real error was, $bar was not defined. ---- Server IP: 69.147.83.197 Probable Submitter: 92.254.50.195 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.session.php Edit -- https://master.php.net/note/edit/102295 Del: integrated -- https://master.php.net/note/delete/102295/integrated Del: useless -- https://master.php.net/note/delete/102295/useless Del: bad code -- https://master.php.net/note/delete/102295/bad+code Del: spam -- https://master.php.net/note/delete/102295/spam Del: non-english -- https://master.php.net/note/delete/102295/non-english Del: in docs -- https://master.php.net/note/delete/102295/in+docs Del: other reasons-- https://master.php.net/note/delete/102295 Reject -- https://master.php.net/note/reject/102295 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176726) next »