diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-05-28 20:10:02 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-05-28 20:10:02 +0300 |
commit | 83804519dffcbb23ef689b37816ee28f2c3192e0 (patch) | |
tree | 52b774b523002e442a938cefed6476e63188405e /ext/gmp/gmp.c | |
parent | 071b389bc6da9c6dc33e798806a0da63fc1cedf6 (diff) | |
download | php-git-83804519dffcbb23ef689b37816ee28f2c3192e0.tar.gz |
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
Diffstat (limited to 'ext/gmp/gmp.c')
-rw-r--r-- | ext/gmp/gmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index 862f23c29e..716165078f 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -605,7 +605,7 @@ static int gmp_unserialize(zval *object, zend_class_entry *ce, const unsigned ch /* The "object" variable may be modified during the execution of this unserialize handler * (it may turn into a reference). Keep the original object around for further operations. */ - ZVAL_COPY_VALUE(&object_copy, object); + ZVAL_OBJ(&object_copy, Z_OBJ_P(object)); p = buf; max = buf + buf_len; |