-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.2.0
-
Component/s: None
-
None
Opening this as a tracking ticket. We can debate whether it is worth implementing down the line.
With PHPC-460, our BSON types are serializing the same properties reported by var_dump(), since we use the same get_properties handler. Since both Timestamp components are unsigned 32-bit integers, a 64-bit PHP system might report a positive integer (e.g. 4294967295) that cannot be unserialized on a 32-bit platform.
Since UTCDateTime is a 64-bit integer, we'd likely serialize it as a string on 32-bit platforms and an integer on 64-bit platforms.
- depends on
-
PHPC-460 BSON classes should support PHP serialization and var_export()
- Closed
- related to
-
PHPC-788 Timestamp on 32-bit platforms breaks
- Closed
-
PHPC-804 Timestamp and UTCDateTime constructors should accept integers in strict types mode
- Closed
-
PHPLIB-222 Pass UTCDateTime constructor argument as integer
- Closed
-
PHPC-599 Document 32-bit platform limitation for Timestamp arguments
- Closed
-
PHPC-1492 Remove conditional EXPECTF patterns in UTCDateTime tests
- Closed
-
PHPC-731 Parse Timestamp argument as strings to accept large integers
- Closed
-
PHPC-828 Use canonical extended JSON for Timestamp::jsonSerialize()
- Closed
- links to