Elements in array could be reference

This commit is contained in:
Xinchen Hui 2014-03-03 17:44:21 +08:00
parent 5de87fe680
commit ca146a6e14

View file

@ -3165,7 +3165,13 @@ ZEND_API zend_bool zend_is_callable_ex(zval *callable, zval *object_ptr, uint ch
if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) {
obj = zend_hash_index_find(Z_ARRVAL_P(callable), 0);
if (UNEXPECTED(Z_ISREF_P(obj))) {
obj = Z_REFVAL_P(obj);
}
method = zend_hash_index_find(Z_ARRVAL_P(callable), 1);
if (UNEXPECTED(Z_ISREF_P(method))) {
method = Z_REFVAL_P(method);
}
}
if (obj && method &&
(Z_TYPE_P(obj) == IS_OBJECT ||