mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Elements in array could be reference
This commit is contained in:
parent
5de87fe680
commit
ca146a6e14
1 changed files with 6 additions and 0 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue