ian boros
88808910c9
PHPC-754: Remove libmongoc-priv system dependency in config.m4
2016-07-29 18:11:58 -04:00
Jeremy Mikola
ff79f64177
PHPC-758: Disable Decimal128 for bundled libbson and libmongoc 1.4.0
2016-07-29 18:11:41 -04:00
Jeremy Mikola
d8f6ad276f
PHPC-629: Fix $binary and $type field in extended JSON
...
The order of these fields was changed by CDRIVER-1340 (in libbson 1.4.0-beta1).
2016-07-29 17:41:17 -04:00
Jeremy Mikola
b462e2c83a
PHPC-629: Bump libbson and libmongoc to 1.4.0-beta1
2016-07-29 17:41:14 -04:00
Jeremy Mikola
8c45a958bf
Merge pull request #351
2016-07-19 12:39:22 +02:00
Jeremy Mikola
98f02d868c
PHPC-730: Javascript::getCode() and Javascript::getScope()
2016-07-19 11:26:06 +02:00
Jeremy Mikola
46a08496ee
Merge pull request #350
2016-07-15 12:08:58 -04:00
Jeremy Mikola
67bd17c63a
PHPC-729: Implement __toString() for Javascript and Binary
2016-07-15 11:51:42 -04:00
Jeremy Mikola
ba167a32ff
Merge pull request #348
2016-07-15 11:16:11 -04:00
Jeremy Mikola
c3fa0c1f8b
PHPC-748: Fix CursorID::__toString() and var_dump() for 32-bit
2016-07-15 11:15:54 -04:00
Jeremy Mikola
00c093096f
Merge pull request #349
2016-07-15 11:14:59 -04:00
Jeremy Mikola
5fbcef0638
PHPC-746: Default Manager URI to "mongodb://127.0.0.1/"
2016-07-15 11:14:45 -04:00
Jeremy Mikola
0124ecf22d
Merge pull request #347
2016-07-15 11:12:24 -04:00
Jeremy Mikola
e85ba1b550
Declare __wakeup() for ReadConcern, ReadPreference, and WriteConcern
...
These classes do not support serialization, but were missing a declaration for Manager::__wakeup(), which throws.
2016-07-15 11:11:48 -04:00
Jeremy Mikola
4e26b503bd
Declare __wakeup as lowercase for consistency
2016-07-15 11:11:48 -04:00
Jeremy Mikola
f70f2b4a37
Clean up arginfo definitions
2016-07-15 11:11:48 -04:00
Jeremy Mikola
8ec05ccbef
Document actual default Manager URI (see: PHPC-746)
2016-07-15 11:11:48 -04:00
Jeremy Mikola
149ddc4ae3
Clean up MongoDB\Driver method protos
2016-07-15 11:11:48 -04:00
Jeremy Mikola
0f832deea6
Clean up MongoDB\BSON method protos
2016-07-15 11:11:48 -04:00
Jeremy Mikola
1ac174659f
Merge pull request #346
2016-07-14 11:53:11 -04:00
Jeremy Mikola
66822bfb5e
PHPC-724: Do not allow null bytes in Regex pattern or flags
...
These fields are cstrings in the BSON spec, so any null bytes would result in unexpected truncation.
2016-07-14 11:27:18 -04:00
Jeremy Mikola
b6754f6b48
PHPC-721: Do not allow null bytes in Javascript code
...
Even though "code" is not a cstring in the BSON spec, libbson does not support null bytes. Throw early to avoid unexpected truncation during BSON encoding.
2016-07-14 11:27:18 -04:00
Jeremy Mikola
40f2603004
Remove unused STRTOLL() macro
2016-07-14 11:27:18 -04:00
Jeremy Mikola
f1e057d52d
PHPC-741: Consistent exceptions for UTCDateTime init methods
2016-07-14 11:27:18 -04:00
Jeremy Mikola
9c514b5536
PHPC-741: Consistent exceptions for Timestamp init methods
2016-07-14 11:27:18 -04:00
Jeremy Mikola
160c65d38c
PHPC-741: Consistent exceptions for Regex init methods
2016-07-14 11:27:18 -04:00
Jeremy Mikola
04765b41e8
PHPC-741: Consistent exceptions for ObjectID init methods
2016-07-14 11:27:18 -04:00
Jeremy Mikola
6825553da0
Rename MaxKey and MinKey serialization tests
2016-07-14 11:27:18 -04:00
Jeremy Mikola
3cd58578f6
PHPC-741: Consistent exceptions for Javascript init methods
2016-07-14 11:27:18 -04:00
Jeremy Mikola
e38c21d90e
PHPC-741: Consistent exceptions for Decimal128 init methods
2016-07-14 11:27:18 -04:00
Jeremy Mikola
7d3dadb9ed
PHPC-741: Consistent exceptions for Binary init methods
2016-07-14 11:27:18 -04:00
Jeremy Mikola
5c65399eca
Define ZSTR_VAL() for PHP 5 and remove phongo_str() macro
2016-07-14 11:27:18 -04:00
Jeremy Mikola
c7a418f96c
Merge pull request #345
2016-07-13 11:40:35 -04:00
Jeremy Mikola
b3298a0efe
PHPC-739: Rename "javascript" to "code" in Javascript BSON class
...
This changes behavior of var_dump(), var_export(), and serialization.
Additionally, this renames the internal struct fields to be consistent with the publicized property names.
2016-07-13 10:32:45 -04:00
Jeremy Mikola
e6058a9d77
Remove redundant null assignment in create_object handler
...
Objects are already allocated with ecalloc(), which clears memory.
2016-07-13 10:32:45 -04:00
Jeremy Mikola
70b995fb14
Merge pull request #340
2016-07-13 10:05:28 -04:00
Jeremy Mikola
10e1879357
PHPC-460: UTCDateTime serialization and var_export
2016-07-12 16:30:43 -04:00
Jeremy Mikola
0a32ce98fb
PHPC-460: Timestamp serialization and var_export
2016-07-12 16:30:43 -04:00
Jeremy Mikola
dcd1920108
PHPC-460: Regex serialization and var_export
2016-07-12 16:30:43 -04:00
Jeremy Mikola
ef1eee4699
PHPC-460: MaxKey and MinKey serialization and var_export
2016-07-12 16:30:43 -04:00
Jeremy Mikola
41081dae61
PHPC-460: Javascript serialization and var_export
2016-07-12 16:30:43 -04:00
Jeremy Mikola
d68b4a94c0
Fix arg info for Decimal128 constructor
2016-07-12 16:30:43 -04:00
Jeremy Mikola
4be966906a
PHPC-460: Decimal128 serialization and var_export
2016-07-12 16:30:42 -04:00
Jeremy Mikola
06ee8950ef
PHPC-460: Binary serialization and var_export
2016-07-12 16:30:42 -04:00
Jeremy Mikola
9b290494a2
PHPC-460: ObjectID serialization and var_export
2016-07-12 16:30:42 -04:00
Jeremy Mikola
4b24338120
Do not forbid serialization of final exception classes
...
We do not forbid serialization of other exception classes. Serialization was only forbidden for these classes because we used PHONGO_CE_INIT() to declare them final.
2016-07-11 12:28:19 -04:00
Jeremy Mikola
e80ff22125
PHPC-460: Split PHONGO_CE_INIT macro
...
This is prep work for enabling serialization for BSON classes.
2016-07-11 12:28:19 -04:00
Jeremy Mikola
2062a30a80
Merge pull request #342
2016-07-11 12:27:35 -04:00
Jeremy Mikola
85309157b7
Consolidate PHP 5 and 7 struct definitions into one file
2016-07-11 12:25:16 -04:00
Jeremy Mikola
52266fbd51
Remove unused int32, int64, and log class entries
2016-07-11 12:25:16 -04:00