Skip to content

Conversation

@nikita2206
Copy link
Contributor

zend_class_constant *c;

ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->constants_table, key, c) {
zval_update_constant_ex(&c->value, c->ce);
Copy link
Member

Choose a reason for hiding this comment

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

Why did you remove this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was called twice - first here, and then in the _class_const_string. In my understanding there needs to be only one call to resolve the validity of this graph, right?

@nikita2206 nikita2206 force-pushed the fix-bug72222-reflection-array-const-export branch 2 times, most recently from b0c954f to a4d1fbc Compare May 16, 2016 13:35
@nikic
Copy link
Member

nikic commented Jul 13, 2016

Merged as eb190b4, thanks!

@nikic nikic closed this Jul 13, 2016
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