rfc:magicquotes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rfc:magicquotes [2008/04/16 05:18] – initial commit of MQ RFC philiprfc:magicquotes [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 2: Line 2:
   * Version: 1.0   * Version: 1.0
   * Date: April 15, 2008   * Date: April 15, 2008
 +  * Last updated: April 16, 2008
   * Author: Philip Olson <philip@roshambo.org>   * Author: Philip Olson <philip@roshambo.org>
-  * Status: Under Discussion+  * Status: Accepted 
 +  * Note: //This RFC is about PHP 6.0 (our old HEAD/Trunk) and NOT PHP 5.4//
   * First Published at: http://wiki.php.net/rfc/magicquotes   * First Published at: http://wiki.php.net/rfc/magicquotes
 +  * Followed up by: [[rfc/magicquotes_finale]] for PHP 5.4
  
 ===== Introduction ===== ===== Introduction =====
Line 38: Line 41:
 ?> ?>
 </code> </code>
 +
 +Also, as currently done, setting magic quotes via the directive (like in php.ini) to //on// should produce a fatal error in PHP 6, but continue to do nothing if set to //off//. In PHP 5.3 this is to produce an //E_DEPRECATED// when set to //on//, but do nothing when setting to //off//.
  
 ===== Required changes from today ===== ===== Required changes from today =====
 +
   * Remove E_DEPRECATED warnings from the 5.3 branch for get_*   * Remove E_DEPRECATED warnings from the 5.3 branch for get_*
   * Restore get_* functions to PHP 6, and return false   * Restore get_* functions to PHP 6, and return false
  
 ===== Why do this? ===== ===== Why do this? =====
 +
 Because programmers enjoy writing portable version friendly code, and have done so for many years both past, present, and future. The idea presented in this RFC is the original decision[1], and as such is still mentioned in NEWS[2] today. Because programmers enjoy writing portable version friendly code, and have done so for many years both past, present, and future. The idea presented in this RFC is the original decision[1], and as such is still mentioned in NEWS[2] today.
 +
 +===== Questions =====
 +
 +The main concern with this RFC is how we default magic_quotes_gpc to On in PHP 5.2 but suddenly set it to off with an E_DEPRECATED error in PHP 5.3. If this remains then an extremely strong education effort must be executed.
  
 ===== References ===== ===== References =====
 +
   * [1] http://marc.info/?t=114170222600003&r=1&w=2   * [1] http://marc.info/?t=114170222600003&r=1&w=2
   * [2] http://php.net/php6news   * [2] http://php.net/php6news
rfc/magicquotes.1208323096.txt.gz · Last modified: 2017/09/22 13:28 (external edit)