Skip to content

Conversation

@SammyK
Copy link
Owner

@SammyK SammyK commented Nov 4, 2017

This is the implementation for the RFC to allow a trailing comma in function/method calls which targets PHP 7.3. The RFC passed on 2017-11-04 18:30 UTC with a 30 to 10 vote.

trailing-comma-all-the-things

@SammyK
Copy link
Owner Author

SammyK commented Nov 4, 2017

That moment you realize you sent a PR to your own fork:

@SammyK SammyK closed this Nov 4, 2017
SammyK pushed a commit that referenced this pull request Apr 3, 2021
explode(): Passing null to parameter #2 ($string) of type string is
deprecated

Closes phpGH-6698.
SammyK pushed a commit that referenced this pull request Apr 11, 2021
When encountering the following SSA graph:

    BB1:
    #2.T1 [string] = COALESCE #1.CV0($str) [null, string] BB2

    BB2:
    php#5.T1 [string] = QM_ASSIGN string("")

    BB3:
    php#7.X1 [string] = Phi(#2.X1 [string], php#5.X1 [string])
    FREE php#7.T1 [string]

We would currently determine that php#7, php#5 are dead, and eliminate
the FREE and QM_ASSIGN. However, we cannot eliminate #2, as
COALESCE is also responsible for control flow.

Fix this my marking all non-CV phis as live to start with. This
can be relaxed to check the kind of the source instruction, but
I couldn't immediately come up with a case where it would be
useful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants