mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Use object pointers instead of handles
This commit is contained in:
parent
afcaa52c73
commit
2428fd1c8b
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ static void json_encode_serializable_object(smart_str *buf, zval *val, int optio
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((Z_TYPE(retval) == IS_OBJECT) &&
|
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 */
|
/* Handle the case where jsonSerialize does: return $this; by going straight to encode array */
|
||||||
json_encode_array(buf, &retval, options);
|
json_encode_array(buf, &retval, options);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue