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
Last revisionBoth sides next revision
rfc:deprecate_ini_set_get_aliases [2015/01/31 01:19] yohgakirfc:deprecate_ini_set_get_aliases [2015/02/01 21:22] 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. +  - 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
  
  
Line 163: Line 173:
 ===== Future Scope ===== ===== Future Scope =====
  
-None. If proposal 3 (Add E_DEPRECATE error) is rejected, adding E_DEPRECATE error will be future decision.+  * If proposal 3 (Add E_DEPRECATE error) is rejected, adding E_DEPRECATE error will be future decision
 +  * All INI values in the manual should be able to be easily searchable.
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
rfc/deprecate_ini_set_get_aliases.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1