com php-src: Use object pointers instead of handles: ext/json/json.c
| From: | Dmitry Stogov | Date: | Wed, 04 Feb 2015 09:01:55 +0000 |
| Subject: | com php-src: Use object pointers instead of handles: ext/json/json.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84626@lists.php.net to get a copy of this message | ||
Commit: 2428fd1c8bb97def6eac3fe6d78fde9fc8908e4c
Author: Dmitry Stogov <dmitry@zend.com> Wed, 4 Feb 2015 12:01:55 +0300
Parents: afcaa52c738542245fa19d21e15e2c14c9c1dd17
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2428fd1c8bb97def6eac3fe6d78fde9fc8908e4c
Log:
Use object pointers instead of handles
Changed paths:
M ext/json/json.c
Diff:
diff --git a/ext/json/json.c b/ext/json/json.c
index 69eca65..adeffe1 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 {