Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Debug] workaround BC break in PHP 7.3#32090

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.4fromnicolas-grekas:debug-php73
Jun 19, 2019

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketshttps://github.com/symfony/symfony-standard/issues/1138symfony/website-skeleton#231
LicenseMIT
Doc PR-

A new warning has been added in PHP 7.3 that is breaking BC with Symfony, since we turn warnings into exceptions.
This PR turns the new warning into a deprecation, so that we will be able to remove the added "if" in 5.0.

I noticed a few other similar BC breaks in 7.1 and 7.2, butunless someone reports that they block them, I don't think we need to care.

  • 7.1 A non well formed numeric value encountered E_NOTICE
  • 7.1 A non-numeric value encountered E_WARNING
  • 7.2 count() now raises a warning when an invalid parameter is passed.

Seehttps://github.com/php/php-src/blob/PHP-7.1/UPGRADING + same in upper branches.

derrabus reacted with thumbs up emojiderrabus and ostrolucky reacted with confused emoji
@dzuelke
Copy link
Contributor

Is there anything inhttps://github.com/php/php-src/blob/PHP-7.4/UPGRADING that could use addressing maybe? It seems like nested ternary operators would be in some library somewhere...

@derrabus
Copy link
Member

This PR turns the new warning into a deprecation, so that we will be able to remove the added "if" in 5.0.

Wouldn't it be enough if we don't upmerge this workaround to 4.x?

conradkirschner reacted with laugh emoji

@derrabus
Copy link
Member

It seems like nested ternary operators would be in some library somewhere...

Symfony itself has quite a few. ;-) But a nested ternary should only trigger aE_DEPRECATED iirc.

@nicolas-grekas
Copy link
MemberAuthor

nicolas-grekas commentedJun 19, 2019
edited
Loading

We can remove in 4, but there's no hurry, and new BC breaks are for 5, that's why I added this comment.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commitd8d43e6 intosymfony:3.4Jun 19, 2019
fabpot added a commit that referenced this pull requestJun 19, 2019
This PR was merged into the 3.4 branch.Discussion----------[Debug] workaround BC break in PHP 7.3| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |https://github.com/symfony/symfony-standard/issues/1138symfony/website-skeleton#231| License       | MIT| Doc PR        | -A new warning has been added in PHP 7.3 that is breaking BC with Symfony, since we turn warnings into exceptions.This PR turns the new warning into a deprecation, so that we will be able to remove the added "if" in 5.0.I noticed a few other similar BC breaks in 7.1 and 7.2, but *unless someone reports that they block them*, I don't think we need to care.- 7.1 A non well formed numeric value encountered E_NOTICE- 7.1 A non-numeric value encountered E_WARNING- 7.2 count() now raises a warning when an invalid parameter is passed.Seehttps://github.com/php/php-src/blob/PHP-7.1/UPGRADING + same in upper branches.Commits-------d8d43e6 [Debug] workaround BC break in PHP 7.3
@nicolas-grekasnicolas-grekas deleted the debug-php73 branchJune 19, 2019 10:37
This was referencedJun 26, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

6 participants

@nicolas-grekas@dzuelke@derrabus@fabpot@Simperfit@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp