From 2428fd1c8bb97def6eac3fe6d78fde9fc8908e4c Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 4 Feb 2015 12:01:55 +0300 Subject: [PATCH] Use object pointers instead of handles --- ext/json/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.49.0