mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
Use ZVAL_COPY_DEREF()
This commit is contained in:
parent
0db8c974a5
commit
7da042cbd8
@ -915,8 +915,7 @@ ZEND_API int zend_std_has_dimension(zval *object, zval *offset, int check_empty)
|
||||
int result;
|
||||
|
||||
if (EXPECTED(instanceof_function_ex(ce, zend_ce_arrayaccess, 1) != 0)) {
|
||||
ZVAL_DEREF(offset);
|
||||
ZVAL_COPY(&tmp_offset, offset);
|
||||
ZVAL_COPY_DEREF(&tmp_offset, offset);
|
||||
ZVAL_COPY(&tmp_object, object);
|
||||
zend_call_method_with_1_params(&tmp_object, ce, NULL, "offsetexists", &retval, &tmp_offset);
|
||||
if (EXPECTED(Z_TYPE(retval) != IS_UNDEF)) {
|
||||
|
Loading…
Reference in New Issue
Block a user