Both sides previous revisionPrevious revisionNext revision | Previous revision |
rfc:deprecations_php_7_3 [2018/07/09 08:44] – Start voting nikic | rfc:deprecations_php_7_3 [2018/07/21 21:50] (current) – Implemented nikic |
---|
* Date: 2017-08-02 | * Date: 2017-08-02 |
* Author: Nikita Popov <nikic@php.net> | * Author: Nikita Popov <nikic@php.net> |
* Status: Voting | * Status: Implemented (in PHP 7.3) |
* Implementation: https://github.com/php/php-src/pull/3366 (unless other patch linked below) | * Implementation: https://github.com/php/php-src/pull/3366 (unless other patch linked below) |
* Discussion: https://externals.io/message/102394 | * Discussion: https://externals.io/message/102394 |
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="Deprecate (and subsequently remove) uncodumented mbstring function aliases?" auth="nikic" voteType="single" closed="false"> | <doodle title="Deprecate (and subsequently remove) undocumented mbstring function aliases?" auth="nikic" voteType="single" closed="true"> |
* Yes | * Yes |
* No | * No |
Proposed action: Throw a deprecation warning if a non-string is passed as a needle to ''strpos'' or one of the above-listed functions. The deprecation warning should note that an explicit ''chr'' call may be used instead. In PHP 8 the deprecation warning will be removed and the needle parameter will be changed into a string. | Proposed action: Throw a deprecation warning if a non-string is passed as a needle to ''strpos'' or one of the above-listed functions. The deprecation warning should note that an explicit ''chr'' call may be used instead. In PHP 8 the deprecation warning will be removed and the needle parameter will be changed into a string. |
| |
<doodle title="Deprecate (and subsequently remove) integer needles in string search functions?" auth="nikic" voteType="single" closed="false"> | <doodle title="Deprecate (and subsequently remove) integer needles in string search functions?" auth="nikic" voteType="single" closed="true"> |
* Yes | * Yes |
* No | * No |
Proposed action: Mark ''fgetss()'', ''gzgetss()'' and ''SplFileObject::fgetss()'' as deprecated, so that a deprecation notice is emitted on every call. Generate a deprecation notice if the ''string.strip_tags'' stream filter is created. In PHP 8 the functions and the stream filter are removed. | Proposed action: Mark ''fgetss()'', ''gzgetss()'' and ''SplFileObject::fgetss()'' as deprecated, so that a deprecation notice is emitted on every call. Generate a deprecation notice if the ''string.strip_tags'' stream filter is created. In PHP 8 the functions and the stream filter are removed. |
| |
<doodle title="Deprecate (and subsequently remove) fgetss(), it's variations and the string.strip_tags filter?" auth="nikic" voteType="single" closed="false"> | <doodle title="Deprecate (and subsequently remove) fgetss() (and variations) and the string.strip_tags filter?" auth="nikic" voteType="single" closed="true"> |
* Yes | * Yes |
* No | * No |
Proposed action: Generate a compile-time deprecation warning if an ''assert()'' function is declared. In PHP 8 this becomes a compile-error. | Proposed action: Generate a compile-time deprecation warning if an ''assert()'' function is declared. In PHP 8 this becomes a compile-error. |
| |
<doodle title="Deprecate (and subsequently remove) support for defining a free-standing assert() function?" auth="nikic" voteType="single" closed="false"> | <doodle title="Deprecate (and subsequently remove) support for defining a free-standing assert() function?" auth="nikic" voteType="single" closed="true"> |
* Yes | * Yes |
* No | * No |
Implementation: https://github.com/php/php-src/pull/3322 | Implementation: https://github.com/php/php-src/pull/3322 |
| |
<doodle title="Deprecate (and subsequently remove) FILTER_FLAG_(SCHEME|HOST)_REQUIRED flags?" auth="nikic" voteType="single" closed="false"> | <doodle title="Deprecate (and subsequently remove) FILTER_FLAG_(SCHEME|HOST)_REQUIRED flags?" auth="nikic" voteType="single" closed="true"> |
* Yes | * Yes |
* No | * No |
Implementations: https://gist.github.com/KalleZ/424ea78492cd5f4c2198cba6b25403d9 | Implementations: https://gist.github.com/KalleZ/424ea78492cd5f4c2198cba6b25403d9 |
| |
<doodle title="Deprecate (and subsequently remove) pdo_odbc.db2_instance_name php.ini directive?" auth="nikic" voteType="single" closed="false"> | <doodle title="Deprecate (and subsequently remove) pdo_odbc.db2_instance_name php.ini directive?" auth="nikic" voteType="single" closed="true"> |
* Yes | * Yes |
* No | * No |