mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use ZVAL_COPY_DEREF()
This commit is contained in:
parent
0db8c974a5
commit
7da042cbd8
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue