diff options
-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 { |