Hannes Magnusson
b5c3810070
PHP-1322 Rename count methods in WriteResults
2014-12-08 14:34:35 -08:00
Hannes Magnusson
2a6e5d1261
PHP-1320: $batch->update() fails when replacing entire document
...
Doesn't seem to be much point in providing a special replaceOne
method. Thats something userland can do ontop of $batch->update()
2014-12-08 13:58:06 -08:00
Hannes Magnusson
ba8378e1fd
PHP-1319: Implement command cursors
2014-12-08 10:17:17 -08:00
Hannes Magnusson
a3ee5d626d
Make phongo_throw_exception variadic to improve error messages
2014-12-05 11:38:07 -08:00
Hannes Magnusson
9fbc609df8
Fix reference counting of nested bson objects
2014-12-05 10:20:57 -08:00
Hannes Magnusson
29bfcd96cc
Fix 32bit builds
2014-12-02 17:21:04 -08:00
Hannes Magnusson
4635cf875f
PHP-1195: Error out on 32bit platforms if we cannot represent the int
2014-12-02 16:12:05 -08:00
Hannes Magnusson
fa414d1018
PHP-1195: Remove Int32 and Int64 classess
...
Keeping these would force everyone to use them, which is not cool when
the majority of users shouldn't have to
2014-12-02 14:54:16 -08:00
Hannes Magnusson
ef5afd98d6
Remove misterious BSON\Log class
2014-12-02 14:53:37 -08:00
Hannes Magnusson
18448953ca
bump libmongoc with ssl fix
2014-12-02 14:30:57 -08:00
Hannes Magnusson
6283fe2a96
Improve API consistency between WriteConcern and ReadPreference
...
Also fixes a segfault when no WriteConcern is provided
2014-12-01 13:55:49 -08:00
Hannes Magnusson
a0f2e15126
PHP-1296: Implement WriteConcerns
2014-11-26 14:04:30 -08:00
Hannes Magnusson
c17001ac30
PHP-1295: Memory leak when generating ID for inserts
2014-11-26 13:37:09 -08:00
Hannes Magnusson
07d317c468
WS
2014-11-26 12:23:51 -08:00
Hannes Magnusson
6b247416fe
We only allow object/array here, not need for this extra code
2014-11-26 12:23:51 -08:00
Hannes Magnusson
28ae4f9491
PHP-1292: BSON Arrays should be... PHP Arrays
2014-11-26 12:23:51 -08:00
Hannes Magnusson
344b6070bc
PHP-1291: memleak when serializing nested objects/array
2014-11-26 12:23:51 -08:00
Hannes Magnusson
a7cbc49a43
Initialize to NULL
2014-11-26 12:23:51 -08:00
Hannes Magnusson
ea5b101576
Enable the corrupt BSON handler for debugging
2014-11-26 12:23:51 -08:00
Hannes Magnusson
f4fd188910
Fixed CID-60852: Pointer to local outside scope
...
Pointer to local outside scope:
`key` points to an out-of-scope variable `numbuf` :]
2014-11-24 11:29:02 -08:00
Hannes Magnusson
b682206c80
Fix zts builds
2014-11-21 20:39:24 -08:00
Hannes Magnusson
66781d12b0
bump libmongoc in my fork
2014-11-21 17:32:36 -08:00
Hannes Magnusson
27ae67c5e2
Fixed various memory leaks and compiler warnings
2014-11-21 17:30:58 -08:00
Hannes Magnusson
23bb9a63ff
PHP-1189: Implement BSON regex type
2014-11-21 10:53:10 -08:00
Hannes Magnusson
75ee2248e4
Fixed couple of constify, and renamed a functino to be consistent with'em all
2014-11-21 10:52:10 -08:00
Jeremy Mikola
76d49f792b
PHP-1189: BSON Regex type
2014-11-21 10:05:29 -08:00
Hannes Magnusson
f5b5d6ddef
PHP-1187: Implement BSON binary type
2014-11-21 09:51:27 -08:00
Hannes Magnusson
2b46636a52
Move the helpers up rather then in the middle of the vtable
2014-11-21 09:48:42 -08:00
Hannes Magnusson
efce484a55
bump libbson
2014-11-20 17:34:07 -08:00
Hannes Magnusson
dfbef380a5
PHP-1188: Implement BSON code and code with scope types
...
NOTE: This type is not supported by Extended JSON :(
2014-11-20 17:33:10 -08:00
Hannes Magnusson
4a8b86c1a2
PHP-1191: Implement BSON timestamp type
2014-11-20 15:47:43 -08:00
Hannes Magnusson
7e923e674c
Fix arginfo and proto
2014-11-20 15:47:20 -08:00
Hannes Magnusson
057469c997
PHP-1194: Implement BSON MaxKey and MinKey types
2014-11-20 15:01:46 -08:00
Hannes Magnusson
6f11856857
Bump libmongoc, and temporary switch to my fork with the needed patches
2014-11-20 14:18:31 -08:00
Hannes Magnusson
3af48555f5
Fixed PHP-1174: Implement WriteBatch::count()
2014-11-20 14:14:39 -08:00
Hannes Magnusson
c439fbcc67
PHP-1190: Implement BSON\UTCDateTime
2014-11-19 17:07:13 -08:00
Hannes Magnusson
7636ed4e76
PHP-1185: Add more Cursor related methods
2014-11-19 17:05:10 -08:00
Hannes Magnusson
0d68cea77d
Fixed PHP-1185: Implement Cursor class
2014-11-19 13:35:02 -08:00
Hannes Magnusson
5dc733469b
PHP-1183: Implement default Iterator class for QueryResult & CommandResult
2014-11-19 12:55:38 -08:00
Hannes Magnusson
b8a0e0cb3d
Avoid compiler warnings
2014-11-19 12:51:13 -08:00
Jeremy Mikola
773bc909cb
PHP-1173: Use string "majority" for WriteConcern::MAJORITY
...
The purpose is two-fold: abstract libmongo'c constant (defined as -3) from our users and ensure the string "majority" is sets the struct's "w" field properly even if our constant is not used.
2014-10-03 16:02:53 -04:00
Jeremy Mikola
efb777255f
PHP-1230: Clean up WriteResult property storage on WriteException
2014-10-02 14:43:12 -04:00
Jeremy Mikola
e6fc9b0624
PHP-1142: Support upserted ids in WriteResult
...
Renamed getGeneratedIdsForUpsert() to getUpsertedIds().
2014-09-29 11:37:46 -04:00
Jeremy Mikola
7358ac7f6c
PHP-1142: Implement WriteResult getter for meta information
...
This getter is intended to return situational fields (e.g. lastOp, electionId), which are not currently supported by libmongoc (see: CDRIVER-428).
2014-09-25 16:02:45 -04:00
Jeremy Mikola
22b3622ab8
PHP-1142: Memory cleanup and getters for WriteResult error zvals
2014-09-25 15:57:49 -04:00
Jeremy Mikola
7a1c18dbc9
Fix tab indentation for generated C code
2014-09-25 15:57:49 -04:00
Jeremy Mikola
9aaa2de17b
PHP-1230: Implement WriteException class
2014-09-25 15:57:48 -04:00
Jeremy Mikola
12cc8616dc
PHP-1142: Init WriteError and WriteConcernError arrays for WriteResult
...
When initializing a WriteResult, we should initialize the corresponding WriteError and WriteConcernError classes, too. This moves all of the initialization code into php_phongoc, as was done with the error classes.
Additionally, phongo_execute_write() has been changed to not construct a bson_t reply unnecessarily (i.e. return value will not be used).
2014-09-25 15:57:48 -04:00
Jeremy Mikola
9e5b4167fe
PHP-1171: Move WriteConcernError init function to php_phongo.c
...
The functions in each class file are not exported (since we don't have headers), and this ultimately needs to be called by the WriteResult initialization function. Therefore, it's best placed in php_phongo.c for now, as we did with WriteError's function.
2014-09-24 15:50:37 -04:00
Jeremy Mikola
b1b5568edd
PHP-1172: Implement WriteError class
...
Removed getter for bulk operation corresponding to the index, since that would require reconstructing zvals from the libmongoc structs.
2014-09-24 15:48:32 -04:00