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

Manage E_DEPRECATED #27

Merged
merged 2 commits into from Mar 13, 2024
Merged

Manage E_DEPRECATED #27

merged 2 commits into from Mar 13, 2024

Conversation

remicollet
Copy link
Contributor

raised with 8.3 in pear.php

raised with 8.3 in pear.php
if (defined('E_DEPRECATED')) {
if ($errno & E_DEPRECATED
&& (error_reporting() & E_DEPRECATED) != E_DEPRECATED) {
// Ignore E_STRICT notices unless they have been turned on
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy/paste error: E_DEPRECATED

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What error? They all look spelled correct to me... ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Ignore E_STRICT notices unless they have been turned on
          ^^^^^^^

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see now... I had interpreted E_DEPRECATED as a subset of E_STRICT just looking at the small diff context around this change, but now I can see there is a similar condition block for E_STRICT itself.

@remicollet , could up correct this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

if (defined('E_DEPRECATED')) {
if ($errno & E_DEPRECATED
&& (error_reporting() & E_DEPRECATED) != E_DEPRECATED) {
// Ignore E_STRICT notices unless they have been turned on
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see now... I had interpreted E_DEPRECATED as a subset of E_STRICT just looking at the small diff context around this change, but now I can see there is a similar condition block for E_STRICT itself.

@remicollet , could up correct this comment?

@schengawegga schengawegga merged commit 530fcc8 into pear:trunk Mar 13, 2024
@schengawegga schengawegga added this to the Version 1.12.2 milestone Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants