Commit Graph

3944 Commits

Author SHA1 Message Date
Hannes Magnusson
8087ab6d97 Add -Werror into --enable-developer-flags
I no longer get any warnings from mongoc or libbson using these flags
so lets try this out!
2015-07-15 15:00:18 -07:00
Hannes Magnusson
810ac48dcb Move the php_array to contrib/ and rename to _api
The current name conflicted with PHP own php_array.h :]
2015-07-15 15:00:18 -07:00
Hannes Magnusson
47039b34d3 We are tracking 1.2.0-dev, not master!
ProTip: git submodule update --remote --merge
2015-07-15 15:00:18 -07:00
Jeremy Mikola
c2b2dcd410 Merge pull request #56 2015-07-15 15:36:08 -04:00
Jeremy Mikola
1edcd14256 Use namespace-agnostic BSON (de)serialization functions 2015-07-14 19:52:25 -04:00
Jeremy Mikola
04cd180f33 Fix from/toJSON() protos 2015-07-14 19:52:24 -04:00
Jeremy Mikola
194bbbd164 PHPC-311: Rename from/toArray() functions to from/toPHP() 2015-07-14 19:52:24 -04:00
Jeremy Mikola
965f8c3db4 PHPC-315: Support "root" type mapping for top-level documents 2015-07-14 19:52:24 -04:00
Jeremy Mikola
6eb0944565 PHPC-319: Convert top-level documents to stdClass by default
Update tests to expect stdClass for documents. Debug handlers and the Server getter methods will still decode documents as native arrays.
2015-07-11 00:38:05 -04:00
Jeremy Mikola
9448dd8562 Relax expected class instance in Manager: getServers() test 2015-07-10 23:55:53 -04:00
Jeremy Mikola
d34a09edf1 Use plural property name to store list of Address objects 2015-07-10 23:55:50 -04:00
Jeremy Mikola
e40e31ae34 Fix WriteResult::getWriteConcernError() proto 2015-07-10 23:52:01 -04:00
Hannes Magnusson
48e921ac50 Force 'E' to be present in php.ini so environment variables are picked up
This is needed as run-tests provides its own environment to tests using
proc_open().

Since we use 'make tests', the only way of injecting environment
variable usage is by forcing it for the instanciating php process,
which we can only do via php.ini since we are running run-tests through
the 'tests' make target.
2015-07-08 14:14:17 -07:00
Hannes Magnusson
56d6d3a93d The MongoDB 3.0 repo was moved. 2015-07-07 15:06:20 -07:00
Hannes Magnusson
5a4ca41f43 Don't start/stop servers on travis. We don't use MO here yet 2015-07-07 15:06:01 -07:00
Hannes Magnusson
4ab595ef54 PHPC-304: Enable the test again -- and fix typo in the clean section! 2015-07-07 13:00:49 -07:00
Hannes Magnusson
5c18ea5c0e Add the START() servers to PHONGO-SERVERS, and remove it with DELETE()
This is needed so the $id becomes a constant in the test itself,
not only in the skipif section.
2015-07-07 12:59:51 -07:00
Hannes Magnusson
d8632d6a66 PHPC-303: Cannot connect to healthy Replica Set if seedlist only contains a secondary 2015-07-07 12:43:56 -07:00
Jeremy Mikola
0218c1f523 Merge pull request #57 2015-07-07 15:01:17 -04:00
Jeremy Mikola
041c6caac3 PHPC-325: bson_to_zval() leaks when buffer contains multiple documents 2015-07-07 14:11:13 -04:00
Jeremy Mikola
c261479fd3 Merge pull request #55 2015-07-06 19:14:02 -04:00
Jeremy Mikola
e26fc34b52 PHPC-306: Check for sasl_client_done in config.m4 2015-07-06 19:04:42 -04:00
Jeremy Mikola
06a0f89c98 Update expected float output after libbson bump
bson_to_json() no longer tacks additional zeroes onto floats.
2015-07-06 19:04:42 -04:00
Jeremy Mikola
6894ecc9a5 Bump libbson and libmongoc submodules 2015-07-06 19:04:42 -04:00
Jeremy Mikola
436ca48d96 Merge pull request #51 2015-07-06 15:55:59 -04:00
Jeremy Mikola
adbb54c87c Remove redundant array conversions in phongo_query_init()
The modifiers and selector zvals are both arrays or objects by this point and zval_to_bson() will handle either. Each will be serialized as a BSON document since zval_to_bson() merely appends fields to the structure we initialize with bson_new().
2015-07-06 15:46:50 -04:00
Jeremy Mikola
8cd6db686f PHPC-317: Ensure "sort" query option serializes as BSON object 2015-07-06 15:46:06 -04:00
Hannes Magnusson
45137749c7 PHPC-323: The check for system mongoc checks system bson, not mongoc 2015-06-30 13:58:54 -07:00
Hannes Magnusson
dab05b722b PHPC-322: Wrong bugtracker URL in configure output 2015-06-30 13:56:54 -07:00
Hannes Magnusson
808ee36ca8 PHPC-321: UTCDatetime -> UTCDateTime 2015-06-30 10:30:27 -07:00
Hannes Magnusson
803f4317f1 PHPC-321: UTCDatetime -> UTCDateTime 2015-06-30 10:29:57 -07:00
Hannes Magnusson
ed1cd1e30b PHPC-309: Bump tests 2015-06-30 10:04:36 -07:00
Hannes Magnusson
61c4432921 PHPC-309: Move the BSON namespace under MongoDB\ namespace
Having seperate MongoDB\Driver\ and BSON\ namespace was overruled :(

However, when you install pecl/bson seperately, it can be in the BSON
namespace, as it is a standalone package just wrapping libbson.

Since pecl/bson will be maintained in the same source as phongo, and I'd
like to share the testcases etc, we introduce a compile flag to detect
if we are compiling phongo or just bson, and set the namespace
appropriately
2015-06-30 09:54:21 -07:00
Jeremy Mikola
b47b0b7440 Merge pull request #50 from 10gen-labs/jmikola-patch-1
Update install docs, since we now have a PECL package
2015-06-30 03:10:15 -04:00
Jeremy Mikola
5a59ab7d71 Merge pull request #49 2015-06-29 15:02:52 -04:00
Jeremy Mikola
88e95864e4 LDAP VM does not require python-pip (or epel) 2015-06-29 15:02:34 -04:00
Jeremy Mikola
a3e0305fc2 Merge pull request #53 2015-06-29 15:01:57 -04:00
Jeremy Mikola
00711aa657 PHPC-308: Skip getmore test until libmongoc issues are resolved 2015-06-29 14:30:16 -04:00
Jeremy Mikola
65b464793a Update install docs, since we now have a PECL package 2015-06-21 17:37:02 -04:00
Hannes Magnusson
2ab93e2c5e bump submodule, hopfully fixing build 2015-06-09 20:33:06 -07:00
Hannes Magnusson
02dab9b130 Fix build after some SDAM changes 2015-06-09 16:13:34 -07:00
Hannes Magnusson
6b7081713a install mongo-c-driver required building blocks 2015-06-09 16:13:03 -07:00
Hannes Magnusson
f41dc80601 PHPC-308: Failed getmore should throw exception 2015-06-09 16:12:43 -07:00
Hannes Magnusson
c224d8bc41 There is no need for these tests to be this slow -- safes 2seconds now 2015-05-22 12:56:28 -07:00
Hannes Magnusson
30f51f19c1 Cluster tests are slow 2015-05-22 11:50:33 -07:00
Hannes Magnusson
7d0c043215 Fix test -- this isn't a hardcoded ID 2015-05-22 11:50:33 -07:00
Hannes Magnusson
0e3090460f Move MO host resolving to tools 2015-05-22 11:50:33 -07:00
Hannes Magnusson
abecb2df7e PHPC-304: Add a failGetMore trigger 2015-05-22 11:50:33 -07:00
Hannes Magnusson
bb0552c6ec PHPC-291: New cluster/socket/connection tests 2015-05-22 11:50:33 -07:00
Hannes Magnusson
aace100516 PHPC-291: Add a script to convert mo-tests (JSON) to PHPT
Usage:
	find ./tmp/mo-tests -name \*.json | xargs php scripts/convert-mo-tests.php
2015-05-22 11:50:33 -07:00