File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
UnifiedSpecTests/Constraint Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use MongoDB \BSON \Binary ;
6
6
use MongoDB \BSON \Decimal128 ;
7
+ use MongoDB \BSON \Int64 ;
7
8
use MongoDB \BSON \Javascript ;
8
9
use MongoDB \BSON \MaxKey ;
9
10
use MongoDB \BSON \MinKey ;
18
19
19
20
use function MongoDB \BSON \fromJSON ;
20
21
use function MongoDB \BSON \toPHP ;
21
- use function unserialize ;
22
22
23
23
use const PHP_INT_SIZE ;
24
24
@@ -85,8 +85,8 @@ public function provideBSONTypes()
85
85
$ undefined = toPHP (fromJSON ('{ "x": {"$undefined": true} } ' ))->x ;
86
86
$ symbol = toPHP (fromJSON ('{ "x": {"$symbol": "test"} } ' ))->x ;
87
87
$ dbPointer = toPHP (fromJSON ('{ "x": {"$dbPointer": {"$ref": "db.coll", "$id" : { "$oid" : "5a2e78accd485d55b405ac12" } }} } ' ))->x ;
88
- $ int64 = unserialize ( ' C:18:"MongoDB\BSON\ Int64":28:{a:1:{s:7:"integer";s:1:"1";}} ' );
89
- $ long = PHP_INT_SIZE == 4 ? unserialize ( ' C:18:"MongoDB\BSON\Int64":38:{a:1:{s:7:"integer";s:10:" 4294967296";}} ' ) : 4294967296 ;
88
+ $ int64 = new Int64 ( 1 );
89
+ $ long = PHP_INT_SIZE == 4 ? new Int64 ( ' 4294967296 ' ) : 4294967296 ;
90
90
91
91
return [
92
92
'double ' => ['double ' , 1.4 ],
Original file line number Diff line number Diff line change 4
4
5
5
use MongoDB \BSON \Binary ;
6
6
use MongoDB \BSON \Decimal128 ;
7
+ use MongoDB \BSON \Int64 ;
7
8
use MongoDB \BSON \Javascript ;
8
9
use MongoDB \BSON \MaxKey ;
9
10
use MongoDB \BSON \MinKey ;
22
23
use function fopen ;
23
24
use function MongoDB \BSON \fromJSON ;
24
25
use function MongoDB \BSON \toPHP ;
25
- use function unserialize ;
26
26
27
27
use const PHP_INT_SIZE ;
28
28
@@ -39,8 +39,8 @@ public function provideTypes()
39
39
$ undefined = toPHP (fromJSON ('{ "x": {"$undefined": true} } ' ))->x ;
40
40
$ symbol = toPHP (fromJSON ('{ "x": {"$symbol": "test"} } ' ))->x ;
41
41
$ dbPointer = toPHP (fromJSON ('{ "x": {"$dbPointer": {"$ref": "db.coll", "$id" : { "$oid" : "5a2e78accd485d55b405ac12" } }} } ' ))->x ;
42
- $ int64 = unserialize ( ' C:18:"MongoDB\BSON\ Int64":28:{a:1:{s:7:"integer";s:1:"1";}} ' );
43
- $ long = PHP_INT_SIZE == 4 ? unserialize ( ' C:18:"MongoDB\BSON\Int64":38:{a:1:{s:7:"integer";s:10:" 4294967296";}} ' ) : 4294967296 ;
42
+ $ int64 = new Int64 ( 1 );
43
+ $ long = PHP_INT_SIZE == 4 ? new Int64 ( ' 4294967296 ' ) : 4294967296 ;
44
44
45
45
return [
46
46
'double ' => ['double ' , 1.4 ],
You can’t perform that action at this time.
0 commit comments