rfc:deprecate_ini_set_get_aliases

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:deprecate_ini_set_get_aliases [2015/01/31 01:39] yohgakirfc:deprecate_ini_set_get_aliases [2015/01/31 07:46] yohgaki
Line 15: Line 15:
 **Pros** **Pros**
   - Less API, hence simpler API.   - Less API, hence simpler API.
-  - Modules will be less buggy. i.e. PHP_INI_MH() must handle "state" properly, but it tends to be forgotten, 3rd party modules especially. Even our module change INI setting invisible/inconsistent way. e.g. mb_http_input()+  - Modules will be less buggy. i.e. PHP_INI_MH() must handle "state" properly, but it tends to be forgotten, 3rd party modules especially. Even our module changes INI setting invisible/inconsistent way. e.g. mb_http_input()
   - Consistent coding style/API across modules, both internal and script.   - Consistent coding style/API across modules, both internal and script.
   - Reduced documentations. INI descriptions are only in INI section.   - Reduced documentations. INI descriptions are only in INI section.
Line 40: Line 40:
 ini_set('default_charset', 'UTF-8'); ini_set('default_charset', 'UTF-8');
 mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
 +date_default_time_zone_set('Asia/Tokyo');
 </code> </code>
  
Line 54: Line 55:
 ini_set('default_charset', 'UTF-8'); ini_set('default_charset', 'UTF-8');
 ini_set('mbstring.internal_encoding', 'UTF-8'); ini_set('mbstring.internal_encoding', 'UTF-8');
 +ini_set('date.timezone','Asia/Tokyo');
 </code> </code>
  
Line 97: Line 99:
   - http://php.net/manual/en/function.mb-language.php   - http://php.net/manual/en/function.mb-language.php
   - http://php.net/manual/en/function.iconv-set-encoding.php   - http://php.net/manual/en/function.iconv-set-encoding.php
 +  - http://php.net/manual/en/function.date-default-timezone-set.php
 +  - http://php.net/manual/en/function.date-default-timezone-get.php
   - And more.   - And more.
  
Line 104: Line 108:
  
   - http://php.net/manual/en/function.session-set-save-handler.php Required to resigt callbacks.   - http://php.net/manual/en/function.session-set-save-handler.php Required to resigt callbacks.
 +  - http://php.net/manual/en/datetime.gettimezone.php Class method.
 +  - http://php.net/manual/en/datetime.settimezone.php Class method.
 +  - http://php.net/manual/en/function.assert-options.php Required to regist callbacks.
 +
  
  
Line 117: Line 125:
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
  
- - PHP 7.0+  - PHP 7.0
  
 ===== RFC Impact ===== ===== RFC Impact =====
Line 155: Line 163:
  
   - Zend/Core functions that changes INI. e.g. gc_enable.   - Zend/Core functions that changes INI. e.g. gc_enable.
 +
 +E_DEPRECATED errors may be delayed until PHP 7.1
  
  
rfc/deprecate_ini_set_get_aliases.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1