We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b272fe2 commit 215956dCopy full SHA for 215956d
tests/utils/tools.php
@@ -453,12 +453,6 @@ function json_canonicalize($json)
453
{
454
$json = json_encode(json_decode($json));
455
456
- /* Versions of PHP before 7.1 replace empty JSON keys with "_empty_" when
457
- * decoding to a stdClass (see: https://bugs.php.net/bug.php?id=46600). Work
458
- * around this by replacing "_empty_" keys before returning.
459
- */
460
- $json = str_replace('"_empty_":', '"":', $json);
461
-
462
/* Canonicalize string values for $numberDouble to ensure they are converted
463
* the same as number literals in legacy and relaxed output. This is needed
464
* because the printf format in _bson_as_json_visit_double uses a high level
0 commit comments