Commit Graph

3944 Commits

Author SHA1 Message Date
Jeremy Mikola
4e7df722dd PHPC-282: Cursor should not yield multiple iterators
Successive get_iterator handler invocations should throw a LogicException. This avoids situations that might allow the user to iterate over the same cursor multiple times.
2015-05-04 16:15:17 -04:00
Jeremy Mikola
5bf6e2ccfd PHPC-284: Create MongoDB\Driver\Exception\LogicException class 2015-05-04 16:15:17 -04:00
Jeremy Mikola
fdc71b454d Merge pull request #43 from jmikola/phpc-283
PHPC-283: UnexpectedValueException and bsonSerialize() cleanup
2015-05-04 14:48:50 -04:00
Jeremy Mikola
7add8aec00 Use common return for zval_to_bson() bsonSerialize() error path
This also initializes ht_data to NULL just to be safe.
2015-05-04 14:41:23 -04:00
Jeremy Mikola
0b987982fa PHPC-283: UnexpectedValueException for invalid bsonSerialize() return value 2015-05-04 14:34:01 -04:00
Jeremy Mikola
b8b41a5e0f Merge pull request #42 from jmikola/phpc-179
PHPC-179 and PHPC-280: WriteConcern journal/fsync handling
2015-05-04 14:24:46 -04:00
Jeremy Mikola
fa3618e1d0 PHPC-280: WriteConcern should always set journal/fsync boolean args 2015-05-04 14:24:37 -04:00
Jeremy Mikola
70c2b95a19 Document WriteConcern $w param as integer|string 2015-05-04 14:24:37 -04:00
Jeremy Mikola
998c85bfba PHPC-179: Show unset journal/fsync as null in WriteConcern debug handler 2015-05-04 14:24:37 -04:00
Jeremy Mikola
ca8ce7777d Merge pull request #40 from jmikola/phpc-274
PHPC-274: Fix zval_to_bson() encoding of BSON\Serializable objects
2015-05-04 14:23:54 -04:00
Jeremy Mikola
56e55670b4 PHPC-274: Regression test for root BSON\Serializable encoding 2015-05-04 14:23:44 -04:00
Jeremy Mikola
047bea5705 PHPC-275: object_to_bson() handling for invalid bsonSerialize() retval
This also refactors the handling to be consistent with zval_to_bson().
2015-05-04 14:23:44 -04:00
Jeremy Mikola
9e59cee9d0 PHPC-274: Fix zval_to_bson() encoding of BSON\Serializable objects
Previously, only BSON\Persistable objects were handled.
2015-05-04 14:23:44 -04:00
Jeremy Mikola
7399cecffc Merge pull request #41 from jmikola/phpc-278
PHPC-278: nModified may be null for legacy writes
2015-05-04 14:23:14 -04:00
Jeremy Mikola
1fe351fc7a PHPC-278: nModified may be null for legacy writes 2015-04-30 14:37:12 -04:00
Hannes Magnusson
322068c230 PHPC-269: Travis mojo again 2015-04-27 20:24:59 -07:00
Hannes Magnusson
68eba44df5 PHPC-272: Move exceptions into MongoDB\Driver\Exception namespace 2015-04-24 15:40:28 -07:00
Hannes Magnusson
8c8b6a8add Post-release-bump-version 2015-04-24 15:06:00 -07:00
Hannes Magnusson
9b5b7d7f56 Add 0.5.1 release notes 0.5.1 2015-04-24 15:05:07 -07:00
Hannes Magnusson
cde3e32a7f Bump version to 0.5.1-alpha 2015-04-24 14:53:29 -07:00
Hannes Magnusson
889e48717e Include the pre-generated fixtures in the package 2015-04-24 14:53:29 -07:00
Hannes Magnusson
2fd81c0ed2 PHPC-241: Don't try to use local timezone
The user would be forced to get the date.timezone warning
2015-04-24 14:44:35 -07:00
Hannes Magnusson
f43e07be08 Fix extension name -- and recommend the developers flags 2015-04-24 14:40:19 -07:00
Hannes Magnusson
60fdf52e1d PHPC-241: mongodb.debug improvements 2015-04-24 11:51:09 -07:00
Hannes Magnusson
6cbacda4ac Fix unused result warning - and use the localtime in logs 2015-04-24 10:09:49 -07:00
Hannes Magnusson
cb09d0a87a Update testing section and add related section 2015-04-23 21:17:59 -07:00
Hannes Magnusson
f4f1f79f23 Fix coveralls build 2015-04-23 20:06:58 -07:00
Hannes Magnusson
ca04dd6d2c PHPC-270: Several test fail because of missing enableTestCommands 2015-04-23 19:56:37 -07:00
Hannes Magnusson
8364cd4d77 PHPC-270: add TESTCOMMANDS() skipif to confirm mongod is running with required options 2015-04-23 19:56:37 -07:00
Hannes Magnusson
4b1a7ef7d3 PHPC-269: Fix travis setup 2015-04-23 19:56:37 -07:00
Hannes Magnusson
536ec40a9e PHPC-268: Update tests to declare which environments they need 2015-04-23 19:56:37 -07:00
Hannes Magnusson
499bae18b4 PHPC-268: Add NEEDS() function to check if that environment is available 2015-04-23 19:22:14 -07:00
Hannes Magnusson
122d1fd7a7 Object IDs change, fix test 2015-04-23 19:22:14 -07:00
Hannes Magnusson
b52107c378 PHPC-247: Remove 'faker' as prerequisite from running our full test suite 2015-04-23 16:13:36 -07:00
Hannes Magnusson
d2eb4c8634 PHPC-247: Remove on-the-fly composer generated fixtures 2015-04-23 16:13:36 -07:00
Hannes Magnusson
ec91b77e46 PHPC-247: Use the bundled pregenerated fixtures 2015-04-23 16:13:36 -07:00
Hannes Magnusson
a52b7750ea PHPC-89: Bundle generated fixtures and make them easily loadable 2015-04-23 16:13:36 -07:00
Hannes Magnusson
fa1a263cc4 PHPC-260: Allow/use "object" in setTypeMap() as alias/preferred for "stdclass" 2015-04-23 16:13:35 -07:00
Hannes Magnusson
f1d053a767 PHPC-267; _id generated on embedded document 2015-04-23 16:13:35 -07:00
Hannes Magnusson
d64698a60a PHPC-265: BSON encoding unsupoprted types (Resource) should fail 2015-04-23 16:13:35 -07:00
Hannes Magnusson
ebc15aefea PHPC-266: Add MongoDB\Driver\UnexpectedValueException 2015-04-23 16:13:35 -07:00
Hannes Magnusson
8d5e5d87c9 Bump copyright -- happy 2015 2015-04-23 10:16:20 -07:00
Hannes Magnusson
c865d56f93 PHPC-75: Improve code coverage 2015-04-23 10:16:20 -07:00
Hannes Magnusson
700deb30a9 No need for code-coverage for contrib 2015-04-23 10:16:20 -07:00
Hannes Magnusson
40460acbf1 Merge pull request #39 from remicollet/issue-phpc258
PHPC-258: make all filed needed for test as role="test"
2015-04-23 08:52:33 -07:00
Remi Collet
a716038e38 PHPC-258: make all filed needed for test as role="test" 2015-04-23 07:06:07 +02:00
Hannes Magnusson
fc031305b0 Merge branch 'remicollet-issue-libbson'
* remicollet-issue-libbson:
  PHPC-259: add --with-libbson option
2015-04-22 13:02:15 -07:00
Remi Collet
a2770118b9 PHPC-259: add --with-libbson option 2015-04-22 13:01:47 -07:00
Jeremy Mikola
86e046eeef Mongo Orchestration now works with PyMongo 3.0 2015-04-21 17:45:51 -04:00
Hannes Magnusson
cdef381e39 Back to -dev 2015-04-21 14:21:05 -07:00