Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit ede909f

Browse files
committed
In between libmongoc version changes, it started using Infinity instead of Inf
1 parent 3c4be34 commit ede909f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/MongoDBBSONDecimal128_set_state-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ MongoDB\BSON\Decimal128::__set_state(array(
3131
))
3232

3333
MongoDB\BSON\Decimal128::__set_state(array(
34-
'dec' => 'Inf',
34+
'dec' => 'Infinity',
3535
))
3636

3737
MongoDB\BSON\Decimal128::__set_state(array(
38-
'dec' => 'Inf',
38+
'dec' => 'Infinity',
3939
))
4040

4141
MongoDB\BSON\Decimal128::__set_state(array(

tests/bson-serialize-types.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Decimal128 Exponent (float)
8585
a:1:{s:5:"value";C:23:"MongoDB\BSON\Decimal128":35:{a:1:{s:3:"dec";s:11:"1.23456E-75";}}}: equal
8686

8787
Decimal128 Infinity
88-
a:1:{s:5:"value";C:23:"MongoDB\BSON\Decimal128":26:{a:1:{s:3:"dec";s:3:"Inf";}}}: equal
88+
a:1:{s:5:"value";C:23:"MongoDB\BSON\Decimal128":31:{a:1:{s:3:"dec";s:8:"Infinity";}}}: equal
8989

9090
Decimal128 NAN
9191
a:1:{s:5:"value";C:23:"MongoDB\BSON\Decimal128":26:{a:1:{s:3:"dec";s:3:"NaN";}}}: equal

0 commit comments

Comments
 (0)