Skip to content

Commit a496e62

Browse files
committed
Merge branch 'PHP-5.5'
* PHP-5.5: Fix #65108 (is_callable() triggers Fatal Error)
2 parents 8e4e38a + ecd9d76 commit a496e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,7 @@ static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fca
28422842
}
28432843
if ((check_flags & IS_CALLABLE_CHECK_NO_ACCESS) == 0 &&
28442844
(fcc->calling_scope &&
2845-
(fcc->calling_scope->__call ||
2845+
((fcc->calling_scope->__call && fcc->object_ptr) ||
28462846
fcc->calling_scope->__callstatic))) {
28472847
if (fcc->function_handler->op_array.fn_flags & ZEND_ACC_PRIVATE) {
28482848
if (!zend_check_private(fcc->function_handler, fcc->object_ptr ? Z_OBJCE_P(fcc->object_ptr) : EG(scope), lmname, mlen TSRMLS_CC)) {

0 commit comments

Comments
 (0)