rfc:deprecations_php_7_3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:deprecations_php_7_3 [2018/07/04 21:23] – Add gzgetss() to the fgetss() point nikic | rfc:deprecations_php_7_3 [2018/07/21 21:50] (current) – Implemented nikic | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Date: 2017-08-02 | * Date: 2017-08-02 | ||
* Author: Nikita Popov < | * Author: Nikita Popov < | ||
- | * Status: | + | * Status: |
+ | * Implementation: | ||
+ | * Discussion: https:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 14: | Line 16: | ||
* '' | * '' | ||
* Defining a free-standing '' | * Defining a free-standing '' | ||
- | * '' | + | * '' |
- | * '' | + | |
* '' | * '' | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Each feature proposed for deprecation is voted separately. Each vote requires a 2/3 majority, independently of whether it is a language or standard library change. All votes refer to deprecation in PHP 7.3 and removal in the next major version (presumably PHP 8.0). | + | Each feature proposed for deprecation is voted separately. Each vote requires a 2/3 majority, independently of whether it is a language or standard library change. All votes refer to deprecation in PHP 7.3 and removal in the next major version (presumably PHP 8.0). The votes close on 2018-07-16. |
==== Undocumented mbstring function aliases ==== | ==== Undocumented mbstring function aliases ==== | ||
Line 27: | Line 28: | ||
Proposed action: Mark the functions as deprecated, so that a deprecation notice is emitted on every call. In PHP 8 these aliases will be removed. | Proposed action: Mark the functions as deprecated, so that a deprecation notice is emitted on every call. In PHP 8 these aliases will be removed. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
==== String search functions with integer needle ==== | ==== String search functions with integer needle ==== | ||
Line 43: | Line 49: | ||
Proposed action: Throw a deprecation warning if a non-string is passed as a needle to '' | Proposed action: Throw a deprecation warning if a non-string is passed as a needle to '' | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
==== fgetss() function and string.strip_tags filter ==== | ==== fgetss() function and string.strip_tags filter ==== | ||
Line 49: | Line 60: | ||
Proposed action: Mark '' | Proposed action: Mark '' | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
==== Defining a free-standing assert() function ==== | ==== Defining a free-standing assert() function ==== | ||
Line 57: | Line 73: | ||
Proposed action: Generate a compile-time deprecation warning if an '' | Proposed action: Generate a compile-time deprecation warning if an '' | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
==== FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED ==== | ==== FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED ==== | ||
Line 66: | Line 87: | ||
Implementation: | Implementation: | ||
- | ==== FILTER_SANITIZE_MAGIC_QUOTES ==== | + | <doodle title=" |
- | + | * Yes | |
- | Magic quotes were deprecated all the way back in PHP 5.3.0 and later removed in PHP 5.4.0, however the FILTER_SANITIZE_MAGIC_QUOTES were never deprecated. This filter basically mimics calling addslashes() to the input in question. | + | * No |
- | + | </doodle> | |
- | Proposed action: Add a deprecation notice for each time the FILTER_SANITIZE_MAGIC_QUOTES is used. | + | |
- | + | ||
- | Implementation: | + | |
==== pdo_odbc.db2_instance_name php.ini directive ==== | ==== pdo_odbc.db2_instance_name php.ini directive ==== | ||
- | As of PHP 5.1.1 '' | + | As of PHP 5.1.1 '' |
- | The side effect here is that this setting is per process wide and also affects the ODBC extension, which can create some hard to debug siturations. Besides this, the PECL package, ibm_db2 seems to implement the exact same behavior which could also conflict. | + | The side effect here is that this setting is process wide and also affects the ODBC extension, which can create some hard to debug situations. Besides this, the PECL package, ibm_db2 seems to implement the exact same behavior which could also conflict. |
Proposed action: Add a deprecation notice if the ini directive has a value at module initialization. | Proposed action: Add a deprecation notice if the ini directive has a value at module initialization. | ||
Implementations: | Implementations: | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 88: | Line 111: | ||
For PHP 7.3 additional deprecation notices will appear. For PHP 8.0 the previously deprecated functionality will no longer be available. | For PHP 7.3 additional deprecation notices will appear. For PHP 8.0 the previously deprecated functionality will no longer be available. | ||
- | ===== Vote ===== | + | ===== Proposed Voting Choices |
Each of the bullet points above will get a separate vote. All votes will require a 2/3 supermajority, | Each of the bullet points above will get a separate vote. All votes will require a 2/3 supermajority, |
rfc/deprecations_php_7_3.1530739412.txt.gz · Last modified: 2018/07/04 21:23 by nikic