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:15] 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 35: Line 35:
 session_name('MYSESS'); session_name('MYSESS');
 session_save_path('/var/php/session'); session_save_path('/var/php/session');
 +ini_set('session.cache_expire', 10);
 ini_set('max_execution_time', 15); ini_set('max_execution_time', 15);
 ini_set('display_errors', 'Off'); ini_set('display_errors', 'Off');
 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 48: Line 50:
 ini_set('session.name', 'MYSESS'); ini_set('session.name', 'MYSESS');
 ini_set('session.save_path', '/var/php/session'); ini_set('session.save_path', '/var/php/session');
 +ini_set('session.cache_expire', 10);
 ini_set('max_execution_time', 15); ini_set('max_execution_time', 15);
 ini_set('display_errors', 'Off'); ini_set('display_errors', 'Off');
 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 95: 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.
  
 3. Add **E_DEPRICATED** errors for INI set/get alias functions. 3. Add **E_DEPRICATED** errors for INI set/get alias functions.
 +
 +Exceptions: These are not simple INI set/get aliases.
 +
 +  - 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 111: Line 125:
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
  
- - PHP 7.0+  - PHP 7.0
  
 ===== RFC Impact ===== ===== RFC Impact =====
Line 150: Line 164:
   - Zend/Core functions that changes INI. e.g. gc_enable.   - Zend/Core functions that changes INI. e.g. gc_enable.
  
-These are not simple INI set/get aliases. +E_DEPRECATED errors may be delayed until PHP 7.1
-  - http://php.net/manual/en/function.session-set-save-handler.php Required to resigt callbacks.+
  
  
Line 160: 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