Skip to content

Fix warning in getTraceAsString #6768

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

Closed
wants to merge 1 commit into from

Conversation

morrisonlevi
Copy link
Contributor

This is a long-standing and harmless bug.

The error says "Function name" is not a string, but it's actually
investigating the "file" field, not "function".

Simplify line number branches as well.

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

LGTM, but shouldn't this maybe target PHP 7.4 too as it is technically a bug fix?

@morrisonlevi
Copy link
Contributor Author

morrisonlevi commented Mar 17, 2021

@derickr, @sgolemon, @petk , or @carusogabriel: any thoughts on merging this into 7.4 and/or 8.0?

The error says "Function name" is not a string, but it's actually
investigating the "file" field, not "function".
@derickr
Copy link
Member

derickr commented Mar 17, 2021 via email

Copy link
Contributor

@carusogabriel carusogabriel left a comment

Choose a reason for hiding this comment

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

I'm good at having this at PHP 8.0. I've just tagged PHP 8.0.4RC1, so this would only be available in the next release unless we see a need to patch it now :)

@morrisonlevi
Copy link
Contributor Author

No rush, I'll merge it in and it'll go out when it goes out. It's harmless, so no rush,
And yeah, 7.0 was a typo and I caught it, but not until after GitHub had sent you emails :)

@morrisonlevi
Copy link
Contributor Author

I'm now waiting on the updated merge workflow after the move to github.

@cmb69
Copy link
Member

cmb69 commented Mar 30, 2021

The workflow doesn't change; you only have to change your remote to point to Github instead of git.php.net.

@nikic nikic closed this in 6fd13d0 Apr 13, 2021
@nikic
Copy link
Member

nikic commented Apr 13, 2021

Merged into 8.0, as it didn't apply cleanly to 7.4.

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.

6 participants