Skip to content

The E_STRICT constant is deprecated in PHP 8.4.0 RC1 on Windows. #16082

Closed as not planned

Description

@dlsrc

Description

The following code tests on PHP 8.4 RC1 on Windows:

<?php
print E_STRICT;

Resulted in this output:

Deprecated: Constant E_STRICT is deprecated in D:\Host\www\pub\experimental.dl\test84.php on line 2
2048

On RHEL this test gives the expected result:

2048

For PHP 8.4 Beta 5 on Windows the result is also expected;

2048

PHP Version

PHP 8.4.0 RC1

Operating System

Windows

Activity

  1. DanielEScherzer commented on Sep 27, 2024

    @DanielEScherzer
    Member

    The constant is deprecated, see https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant.

    This was implemented in #13053 on September 18, while PHP 8.4 beta 5 was released on September 12, per https://www.php.net/archive/2024.php#2024-09-12-1. Thus, the 8.4RC1 and 8.4beta5 on windows are both expected. Beta 5 was released before the implementation, so it wouldn't have the notice.

    What is odd is that on RHEL there is no deprecation notice - can you confirm that the RHEL environment is on 8.4RC1?

  2. remicollet commented on Sep 27, 2024

    @remicollet
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions