Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dlsrc opened this issue Sep 27, 2024 · 2 comments
Closed

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

dlsrc opened this issue Sep 27, 2024 · 2 comments

Comments

@dlsrc
Copy link

dlsrc commented Sep 27, 2024

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

@DanielEScherzer
Copy link
Contributor

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?

@remicollet
Copy link
Member

remicollet commented Sep 27, 2024 via email

@cmb69 cmb69 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants