Skip to content

Conversation

ekinhbayar
Copy link
Contributor

@ekinhbayar ekinhbayar commented Jan 28, 2019

Hi! This PR hopes to fix bug: https://bugs.php.net/bug.php?id=77530
Class name was assumed to be a string. The PR checks whether it is a string before type fetch, and throws a fatal error in case it is not.

@krakjoe
Copy link
Member

krakjoe commented Jan 28, 2019

This looks right to me.

I've assigned to Nikita, because I'm not sure if anywhere else makes the same sort of assumption that might need to be fixed ?

@nikic
Copy link
Member

nikic commented Jan 28, 2019

Merged as ef68cd3 into 7.2+. From a cursory look I didn't see other cases where this is an issue. Most code-paths use compile_class_ref.

@nikic nikic closed this Jan 28, 2019
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.

3 participants