rfc:my_rfc

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rfc:my_rfc [2015/01/31 00:49]
yohgaki
rfc:my_rfc [2017/09/22 13:28] (current)
Line 9: Line 9:
  
 There are number of INI set/get functions. This RFC proposes deprecation of these functions. There are number of INI set/get functions. This RFC proposes deprecation of these functions.
 +
 +Use of ini_set()/​ini_get() simplifies/​improves/​cleanups PHP. Some of these alias function names is inconsistent,​ some aliases are missing while similar INI setting may be set/get by aliases. Simple INI set/get alias functions are just making PHP complex, creating more inconsistencies. PHP needs no more INI set/get aliases at least, document use of ini_get()/​ini_set() in the CODING_STANDARDS.
 +
  
 **Pros** **Pros**
Line 35: Line 38:
 ini_set('​display_errors',​ '​Off'​);​ ini_set('​display_errors',​ '​Off'​);​
 ini_set('​default_charset',​ '​UTF-8'​);​ ini_set('​default_charset',​ '​UTF-8'​);​
-mbstring_internal_encoding('​UTF-8'​);​+mb_internal_encoding('​UTF-8'​);​
 </​code>​ </​code>​
  
Line 68: Line 71:
 ===== Proposal ===== ===== Proposal =====
  
-Use of ini_set()/​ini_get() simplifies/​improves PHPPHP needs no more INI set/get aliases at least, document use of ini_get()/​ini_set() in the CODING_STANDARDS. +There are 2 documentation and 1 code change proposal 
  
 1. Add plain ini_get/​set() usage in **CODING_STANDARDS**. In the "Code Implementation"​ session add following standard. 1. Add plain ini_get/​set() usage in **CODING_STANDARDS**. In the "Code Implementation"​ session add following standard.
Line 95: Line 97:
   - And more.   - And more.
  
-3. Add **E_DEPRICATE** errors for INI set/get alias functions.+3. Add **E_DEPRICATED** errors for INI set/get alias functions.
  
  
Line 104: Line 106:
 2. None for deprecation documentation in the PHP manual. 2. None for deprecation documentation in the PHP manual.
  
-3. E_DEPRECATE ​error may be ignored+3. E_DEPRECATED ​error may be ignored
  
  
Line 144: Line 146:
 ===== Open Issues ===== ===== Open Issues =====
  
-None+Decided exceptionsCandidates are 
 + 
 + - Zend/Core functions that changes INI. e.g. gc_enable. 
  
 ===== Unaffected PHP Functionality ===== ===== Unaffected PHP Functionality =====
rfc/my_rfc.1422665389.txt.gz · Last modified: 2017/09/22 13:28 (external edit)