diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-02-04 12:01:55 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-02-04 12:01:55 +0300 |
commit | 2428fd1c8bb97def6eac3fe6d78fde9fc8908e4c (patch) | |
tree | 03334a6fcd0b961c409bef86532dbd1f638e0047 | |
parent | afcaa52c738542245fa19d21e15e2c14c9c1dd17 (diff) | |
download | php-git-2428fd1c8bb97def6eac3fe6d78fde9fc8908e4c.tar.gz |
Use object pointers instead of handles
-rw-r--r-- | ext/json/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index 69eca65a45..adeffe154c 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -608,7 +608,7 @@ static void json_encode_serializable_object(smart_str *buf, zval *val, int optio } if ((Z_TYPE(retval) == IS_OBJECT) && - (Z_OBJ_HANDLE(retval) == Z_OBJ_HANDLE_P(val))) { + (Z_OBJ(retval) == Z_OBJ_P(val))) { /* Handle the case where jsonSerialize does: return $this; by going straight to encode array */ json_encode_array(buf, &retval, options); } else { |