Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 10, 2023

PHP 8.3 | RemovedIniDirectives: recognize assert.* (RFC)

  • assert.*
    . The assert.* INI settings have been deprecated.
    This comprises the following INI settings:
    • assert.active
    • assert.bail
    • assert.callback
    • assert.exception
    • assert.warning
      If the value of the setting is equal to the default value, no deprecation
      notice is emitted.
      The zend.assertions INI setting should be used instead.

Refs:

PHP 8.3 | RemovedFunctions: recognize assert_options() (RFC)

. The assert_option() function is now deprecated.

Refs:

PHP 8.3 | RemovedConstants: recognize ASSERT_* constants (RFC)

. The ASSERT_ACTIVE, ASSERT_BAIL, ASSERT_CALLBACK, ASSERT_EXCEPTION and
ASSERT_WARNING constants have been deprecated.

Refs:

Related to #1589

jrfnl added 3 commits August 10, 2023 22:57
> - assert.*
>   . The assert.* INI settings have been deprecated.
>     This comprises the following INI settings:
>      - assert.active
>      - assert.bail
>      - assert.callback
>      - assert.exception
>      - assert.warning
>     If the value of the setting is equal to the default value, no deprecation
>     notice is emitted.
>     The zend.assertions INI setting should be used instead.

Refs:
* https://wiki.php.net/rfc/assert-string-eval-cleanup
* https://github.com/php/php-src/blob/548fc6a8185625bf50c708a9337db01f14860ba1/UPGRADING#L519-L529
* php/php-src 11671
* php/php-src@3d4ff5a

Related to 1589
>   . The ASSERT_ACTIVE, ASSERT_BAIL, ASSERT_CALLBACK, ASSERT_EXCEPTION and
>     ASSERT_WARNING constants have been deprecated.

Refs:
* https://wiki.php.net/rfc/assert-string-eval-cleanup
* https://github.com/php/php-src/blob/548fc6a8185625bf50c708a9337db01f14860ba1/UPGRADING#L164-L166
* php/php-src 11671
* php/php-src@3d4ff5a

Related to 1589
@jrfnl jrfnl added Type: enhancement PR: quick merge PR only contains relatively simple changes PR: ready for review labels Aug 10, 2023
@jrfnl jrfnl added this to the 10.0.0 milestone Aug 10, 2023
@jrfnl jrfnl requested a review from wimg August 10, 2023 21:09
@jrfnl jrfnl changed the title ### PHP 8.3 | Various sniffs: deprecate remains of string evaluated code assertions (RFC) PHP 8.3 | Various sniffs: deprecate remains of string evaluated code assertions (RFC) Aug 10, 2023
@wimg wimg merged commit 9fbdfff into develop Aug 10, 2023
@wimg wimg deleted the php-8.3/deprecate-string-assertions-artifacts-rfc branch August 10, 2023 21:34
@github-actions github-actions bot removed PR: quick merge PR only contains relatively simple changes PR: ready for review labels Aug 10, 2023
@jrfnl jrfnl added the PHP: 8.3 label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants