Skip to content

Fix preloading of constants containing enums - #8373

Closed
iluuu1994 wants to merge 1 commit into
php:PHP-8.1from
iluuu1994:gh-8133
Closed

iluuu1994 wants to merge 1 commit into
php:PHP-8.1from
iluuu1994:gh-8133

Conversation

@iluuu1994

Copy link
Copy Markdown
Member

Fixes GH-8133

Comment thread Zend/zend_ast.c
: NULL;

zend_class_entry *ce = zend_lookup_class(class_name);
if (!ce) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not 100% sure if this can be removed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You could always add ZEND_ASSERT(ce); which would crash if such a case exists

@iluuu1994
iluuu1994 requested a review from nikic April 14, 2022 13:56
Comment thread ext/opcache/ZendAccelerator.c
@iluuu1994

Copy link
Copy Markdown
Member Author

Merged as 4397811

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