Commit Graph

9 Commits

Author SHA1 Message Date
Jeremy Mikola bd10948415 PHPC-1849: Handle deprecation of Serializable in PHP 8.1 (#1246)
* Add __serialize and __unserialize methods to Serializable classes

These methods will be used on PHP 7.4+ when available. Implementing them is required to suppress a deprecation notice on PHP 8.1+.

This commit also renames is_debug parameter for get_properties_hash utility functions (and related macros) to more accurately reflect its purpose of allocating a new HashTable instead of using an internal props table.

* Explicitly handle serialize output in php_phongo_cursorid_get_properties_hash

* Explicitly handle serialize output in php_phongo_writeconcern_get_properties_hash

* Note maxStalenessSeconds handling in php_phongo_readpreference_get_properties_hash

* CursorId should always serialize id as string
2021-08-31 22:13:11 -04:00
Jeremy Mikola 94ee50e5ef PHPC-1004: Rename ObjectID to ObjectId 2017-08-30 10:12:22 -04:00
Jeremy Mikola aef71068a8 Revert "Use canonical ObjectID class name in tests"
This reverts commit 991cbe887e.
2017-08-30 10:02:17 -04:00
Jeremy Mikola 991cbe887e Use canonical ObjectID class name in tests 2017-08-29 09:47:50 -04:00
Derick Rethans 8ee86a15eb PHPC-779: Switch ObjectID from O to C type serialization 2016-09-13 14:05:56 +01:00
Derick Rethans 9ccbea5a69 PHPC-779: Switch Javascript from O to C type serialization 2016-09-13 14:05:56 +01:00
Derick Rethans 2e89b1cfb2 PHPC-769: Javascript serialization, export, and dump should always include scope field 2016-09-07 14:53:01 +01:00
Jeremy Mikola 35d53d4504 Remove unnecessary SKIPIFs from BSON tests 2016-08-04 14:03:37 -04:00
Jeremy Mikola 3cd58578f6 PHPC-741: Consistent exceptions for Javascript init methods 2016-07-14 11:27:18 -04:00