note 102149 added to function.ini-restore

From: Date: Sat, 29 Jan 2011 21:13:22 +0000
Subject: note 102149 added to function.ini-restore
Groups: php.notes 
Request: Send a blank email to php-notes+get-176498@lists.php.net to get a copy of this message
In regards to eli at ski-forums dot com's conern: I appears that this function restores the setting to whatever is set in the INI file, as opposed to the PHP defaults. For example, if you set the session.use_cookies value to false, and then wanted to put it back, ini_restore() would set it to whatever the value is in the INI file. Therefore, if that hunk of code was run on a server that had its INI file configured to resist that attack, the code would do nothing. (I'm not 100% on this, but that's what appears to be going on. Somebody please correct me if I'm wrong.) ---- Server IP: 69.147.83.197 Probable Submitter: 71.186.27.47 ---- Manual Page -- http://www.php.net/manual/en/function.ini-restore.php Edit -- https://master.php.net/note/edit/102149 Del: integrated -- https://master.php.net/note/delete/102149/integrated Del: useless -- https://master.php.net/note/delete/102149/useless Del: bad code -- https://master.php.net/note/delete/102149/bad+code Del: spam -- https://master.php.net/note/delete/102149/spam Del: non-english -- https://master.php.net/note/delete/102149/non-english Del: in docs -- https://master.php.net/note/delete/102149/in+docs Del: other reasons-- https://master.php.net/note/delete/102149 Reject -- https://master.php.net/note/reject/102149 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176498) next »