Skip to content

Commit cdc8be3

Browse files
committed
toJSON() may encode NAN as -nan(ind) on Windows
1 parent 30a8434 commit cdc8be3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/bson/bson-toJSON-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ foreach ($tests as $value) {
3030
?>
3131
===DONE===
3232
<?php exit(0); ?>
33-
--EXPECT--
33+
--EXPECTF--
3434
{ }
3535
{ "null" : null }
3636
{ "boolean" : true }
3737
{ "string" : "foo" }
3838
{ "integer" : 123 }
3939
{ "double" : 1.0 }
40-
{ "nan" : nan }
40+
{ "nan" : %r-?nan(\(ind\))?%r }
4141
{ "pos_inf" : inf }
4242
{ "neg_inf" : -inf }
4343
{ "array" : [ "foo", "bar" ] }

0 commit comments

Comments
 (0)