Skip to content

Commit 21fba20

Browse files
committed
PHPC-2475: bson_as_legacy_extended_json replaces bson_as_json
1 parent b080adf commit 21fba20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phongo_bson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ bool php_phongo_bson_to_json(zval* return_value, const bson_t* bson, php_phongo_
14461446
size_t json_len;
14471447

14481448
if (mode == PHONGO_JSON_MODE_LEGACY) {
1449-
json = bson_as_json(bson, &json_len);
1449+
json = bson_as_legacy_extended_json(bson, &json_len);
14501450
} else if (mode == PHONGO_JSON_MODE_CANONICAL) {
14511451
json = bson_as_canonical_extended_json(bson, &json_len);
14521452
} else if (mode == PHONGO_JSON_MODE_RELAXED) {

0 commit comments

Comments
 (0)