PHP RFC: Deprecate INI functions


There session_module_name(), mb_regex_encoding(), etc that get/set INI values. These functions are duplicate of ini_get()/ini_set(). In addition, INI name and function name does not match in many cases.


Deprecate INI functions:

  1. Document deprecation in the manual now.
  2. Add E_DEPRECATED error for PHP 5.x+
  3. Remove deprecated functions PHP 6+

Backward Incompatible Changes

  1. None for documentation.
  2. E_DEPRECATED for PHP 5.x+
  3. No function for PHP 6+

Proposed PHP Version(s)

  1. E_DEPRECATED for PHP 5.x+
  2. Remove INI functions for PHP 6+

Impact to Existing Extensions

  1. session
  2. mbstring
  3. (more modules)

Open Issues

  1. None

Proposed Voting Choices

VOTE: 2014/XX/XX - 2014/XX/XX

Deprecate INI functions
Real name Yes No
Final result: 0 0
This poll has been closed.

Patches and Tests



After the project is implemented, this section should contain

  1. the version(s) it was merged to
  2. a link to the git commit(s)
  3. a link to the PHP manual entry for the feature


Links to external references, discussions or RFCs

Rejected Features

Keep this updated with features that were discussed on the mail lists.

rfc/deprecate-ini-functions.txt · Last modified: 2021/08/06 10:39 by cmb