@@ -32,6 +32,7 @@ foreach ($tests as $json) {
3232===DONE===
3333<?php exit (0 ); ?>
3434--EXPECTF--
35+ %a
3536Test { "x": { "$numberLong": "-2147483648" }}
3637object(stdClass)#%d (%d) {
3738 ["x"]=>
@@ -44,15 +45,22 @@ object(stdClass)#%d (%d) {
4445 int(2147483647)
4546}
4647
48+ Test { "x": { "$numberLong": "4294967294" }}
49+ [%s] PHONGO-BSON: WARNING > Integer overflow detected on your platform: 4294967294
50+ object(stdClass)#%d (%d) {
51+ ["x"]=>
52+ string(10) "4294967294"
53+ }
54+
4755Test { "x": { "$numberLong": "4294967295" }}
48- [%s] PHONGO-BSON: WARNING > ENTRY: Integer overflow detected on your platform: 4294967295
56+ [%s] PHONGO-BSON: WARNING > Integer overflow detected on your platform: 4294967295
4957object(stdClass)#%d (%d) {
5058 ["x"]=>
5159 string(10) "4294967295"
5260}
5361
5462Test { "x": { "$numberLong": "9223372036854775807" }}
55- [%s] PHONGO-BSON: WARNING > ENTRY: Integer overflow detected on your platform: 9223372036854775807
63+ [%s] PHONGO-BSON: WARNING > Integer overflow detected on your platform: 9223372036854775807
5664object(stdClass)#%d (%d) {
5765 ["x"]=>
5866 string(19) "9223372036854775807"
@@ -71,20 +79,21 @@ object(stdClass)#%d (%d) {
7179}
7280
7381Test { "longFieldName": { "$numberLong": "4294967294" }}
82+ [%s] PHONGO-BSON: WARNING > Integer overflow detected on your platform: 4294967294
7483object(stdClass)#%d (%d) {
7584 ["longFieldName"]=>
7685 string(10) "4294967294"
7786}
7887
7988Test { "longFieldName": { "$numberLong": "4294967295" }}
80- [%s] PHONGO-BSON: WARNING > ENTRY: Integer overflow detected on your platform: 4294967295
89+ [%s] PHONGO-BSON: WARNING > Integer overflow detected on your platform: 4294967295
8190object(stdClass)#%d (%d) {
8291 ["longFieldName"]=>
8392 string(10) "4294967295"
8493}
8594
8695Test { "longFieldName": { "$numberLong": "9223372036854775807" }}
87- [%s] PHONGO-BSON: WARNING > ENTRY: Integer overflow detected on your platform: 9223372036854775807
96+ [%s] PHONGO-BSON: WARNING > Integer overflow detected on your platform: 9223372036854775807
8897object(stdClass)#%d (%d) {
8998 ["longFieldName"]=>
9099 string(19) "9223372036854775807"
0 commit comments