Skip to content

Fixed #75220 - Segfault when calling is_callable on parent #2758

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

andrewnester
Copy link
Contributor

@@ -3324,7 +3324,8 @@ ZEND_API zend_bool zend_is_callable_ex(zval *callable, zend_object *object, uint
((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) ||
fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY ||
fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) {
if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) {
if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION &&
fcc->function_handler->common.function_name) {
Copy link
Member

Choose a reason for hiding this comment

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

Similar checks are repeated in a few more places. Maybe they also need to be changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nikic sounds reasonable, thanks. Just updated it.

@andrewnester
Copy link
Contributor Author

@nikic any updates on it?

@krakjoe krakjoe added the Bug label Sep 27, 2017
@krakjoe
Copy link
Member

krakjoe commented Sep 27, 2017

Merged a680d70

Thanks.

@krakjoe krakjoe closed this Sep 27, 2017
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.

3 participants