126 Commits

Author SHA1 Message Date
Hannes Magnusson
79d9bd5906 Fix typo in persistent hash 2014-12-22 11:50:12 -08:00
Hannes Magnusson
6abfa11ea1 PHPC-104: Throw MongoDB\AuthenticationException on auth failure 2014-12-19 10:01:11 -08:00
Hannes Magnusson
d32f0083cb PHPC-2: Persist connection by the dsn 2014-12-18 17:46:47 -08:00
Hannes Magnusson
95774b10d2 PHPC-101: throw MongoDB\DuplicateKeyException 2014-12-18 17:39:23 -08:00
Hannes Magnusson
ffa8006bce PHON-99: Add & Implement SSLConnectionException 2014-12-17 11:52:39 -08:00
Hannes Magnusson
390ef25949 PHON-100: Implement connectiontimeoutms 2014-12-17 11:51:57 -08:00
Hannes Magnusson
0bfb534c66 PHON-31: Do not overload the stream_initiator with tsrm, we want it for stream context later 2014-12-17 11:51:53 -08:00
Hannes Magnusson
2aa41c0eaa PHON-98: Implement and properly throw MongoDB\ConnectionException 2014-12-17 11:47:41 -08:00
Hannes Magnusson
1606f518d4 PHON-97: Add MongoDB\RuntimeException
This exception extends SPL RuntimeException - and implements
MongoDB\Exception

This makes it easy to catch "all MongoDB exceptions" and/or
RuntimeExceptions
2014-12-17 11:22:40 -08:00
Hannes Magnusson
f1031fe246 PHON-96: Create MongoDB\Exception interface 2014-12-17 11:20:58 -08:00
Hannes Magnusson
e24d69979e Call the bson module init 2014-12-12 15:54:57 -08:00
Hannes Magnusson
b2f29d887d PHP-1338: There is actually no DBRef BSON type, its a convention 2014-12-12 15:51:56 -08:00
Hannes Magnusson
518e2b4664 I have no idea what made me make BSON\Pool 2014-12-09 16:39:43 -08:00
Hannes Magnusson
991d8476cb PHP-1329: Remove ssl=prefer option 2014-12-09 14:19:49 -08:00
Hannes Magnusson
41f8b82e65 PHP-1319: Convert this into normalish cursor 2014-12-08 10:20:33 -08:00
Hannes Magnusson
ba8378e1fd PHP-1319: Implement command cursors 2014-12-08 10:17:17 -08:00
Hannes Magnusson
c36442013e We are throwing exception here, doesn't matter if we are assigning return value 2014-12-05 11:38:07 -08:00
Hannes Magnusson
407fa910c8 Throw exception on failure
This prevents a broken Query object that can lead to segfaults
2014-12-05 11:38:07 -08:00
Hannes Magnusson
a3ee5d626d Make phongo_throw_exception variadic to improve error messages 2014-12-05 11:38:07 -08:00
Hannes Magnusson
67040bde2b Integer IDs can also be int32 2014-12-02 17:21:57 -08:00
Hannes Magnusson
c7d3666d03 Differenciate the connection type by the SSL option 2014-12-02 16:13:16 -08:00
Hannes Magnusson
1b4e5ac11e Bail out when we cannot connect to the server! 2014-12-02 16:12:58 -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
da3754432f PHP-1175: Add Support for SSL=true and SSL=prefer 2014-12-02 14:29:41 -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
bccdd2771f PHP-1294: Emtpy Query Result should still return QueryResult 2014-11-26 13:04:28 -08:00
Hannes Magnusson
89cd4faaf5 PHP-1293: Writing all debug info is not a good default 2014-11-26 12:25:19 -08:00
Hannes Magnusson
05e30cfcac Add missing arginfo for the BSON encoding functions 2014-11-26 12:23:51 -08:00
Hannes Magnusson
afb531055e Compiler warnings 2014-11-25 16:05:39 -08:00
Hannes Magnusson
3a7285ea73 Expose version constants and stability 2014-11-25 15:12:41 -08:00
Hannes Magnusson
35b19c45d5 Fix ZTS - and all the segfaults
We were reading it like good puppies.. But never assigning it! :D
2014-11-24 10:16:12 -08:00
Hannes Magnusson
9561a7426a Attempt to fix stream closing in zts 2014-11-21 21:05:10 -08:00
Hannes Magnusson
b682206c80 Fix zts builds 2014-11-21 20:39:24 -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
Hannes Magnusson
f5b5d6ddef PHP-1187: Implement BSON binary type 2014-11-21 09:51:27 -08:00
Hannes Magnusson
55e6be8f55 Fix some compiler warnings: (de-)constify 2014-11-21 09:46:41 -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
56435950b3 Fixed zts macros 2014-11-20 17:08:55 -08:00
Hannes Magnusson
4a8b86c1a2 PHP-1191: Implement BSON timestamp type 2014-11-20 15:47:43 -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
5dc733469b PHP-1183: Implement default Iterator class for QueryResult & CommandResult 2014-11-19 12:55:38 -08:00
Hannes Magnusson
bf13da3857 Fixed PHP-1232: Implement the TODO 2014-11-19 10:27:48 -08:00
Hannes Magnusson
ffc489636f Tell PHP this is indeed an exposed stream that it doesn't have to worry about 2014-11-19 10:07:01 -08:00
Hannes Magnusson
ef5a23cc32 Fix memory leak when splitting a ns 2014-11-19 10:07:01 -08:00