Skip to content

Commit 5d21863

Browse files
bjoriderickr
authored andcommitted
Use ZVAL_COPY_VALUE()
1 parent b7addeb commit 5d21863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ int bson_to_zval_ex(const unsigned char *data, int data_len, php_phongo_bson_sta
13381338
object_init_ex(&obj, state->odm ? state->odm : state->map.root);
13391339
zend_call_method_with_1_params(&obj, NULL, NULL, BSON_UNSERIALIZE_FUNC_NAME, NULL, &state->zchild);
13401340
zval_ptr_dtor(&state->zchild);
1341-
ZVAL_COPY(&state->zchild, &obj);
1341+
ZVAL_COPY_VALUE(&state->zchild, &obj);
13421342
#else
13431343
zval *obj = NULL;
13441344

0 commit comments

Comments
 (0)