Commit Graph

3944 Commits

Author SHA1 Message Date
Hannes Magnusson
b682206c80 Fix zts builds 2014-11-21 20:39:24 -08:00
Hannes Magnusson
138e4ab8dd Use my libmongoc fork for now 2014-11-21 20:26:39 -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
55e6be8f55 Fix some compiler warnings: (de-)constify 2014-11-21 09:46:41 -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
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
7e923e674c Fix arginfo and proto 2014-11-20 15:47:20 -08:00
Hannes Magnusson
2fddcd6e0a Fix test: Whoopsy. Missed the DONE section 2014-11-20 15:46:09 -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
Hannes Magnusson
bf13da3857 Fixed PHP-1232: Implement the TODO 2014-11-19 10:27:48 -08:00
Hannes Magnusson
554c4105d1 Do not test the error messages from the server
The error message vary depending on the server version
2014-11-19 10:21:42 -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
Hannes Magnusson
7445744c55 Make sure we have something to free 2014-11-19 10:07:01 -08:00
Jeremy Mikola
4cf9105cc0 Merge pull request #22 from hannesvdvreken/patch-1
Typo in readme? "admit" instead of "admin"
2014-11-04 16:11:45 -05:00
Hannes Van De Vreken
4447c07c27 Typo in readme? "admit" instead of "admin"
Correct me if I'm wrong. English is not my native language.
2014-11-03 22:22:52 +01:00
Hannes Magnusson
6f0d99c400 Merge pull request #21 from christkv/master
Fixed build for OSX and llvm
2014-10-20 10:04:33 -04:00
Christian Kvalheim
ccc4bf8923 Fixed build for OSX and llvm 2014-10-20 11:26:25 +02:00
Jeremy Mikola
9c68291b4b Rewrite README and document install/test process 2014-10-19 13:38:15 -04:00
Jeremy Mikola
92f10dda71 Merge pull request #18 from bjori/php1236-test-fixtures
PHP-1236: Add data fixtures to test suite
2014-10-17 14:31:13 -05:00
Jeremy Mikola
4086691a3e PHP-1180: Create make target to install Composer dependencies (for tests)
Due to how the Makefile is generated, it's non-trivial to add the "composer" target as a dependency of "test". As a compromise, we'll skip tests which require unavailable dependencies.
2014-10-16 20:45:39 -04:00
Jeremy Mikola
f24e900fca Functional tests for sorted queries 2014-10-16 16:02:26 -04:00
Jeremy Mikola
d6f181710f Use Faker to create user data fixtures 2014-10-16 16:02:26 -04:00
Jeremy Mikola
ec30b7dccf Use require_once in skip test includes 2014-10-16 16:02:26 -04:00
Jeremy Mikola
426976c62a Use "phongo_test" as default test database 2014-10-16 16:02:26 -04:00
Jeremy Mikola
35067cf017 Use preg_replace() for generating collection name from test file
This builds on what already existed in the current driver and adds the ".skip" removal. It also replaces hyphens with underscores to ensure that the collection is easy to access from the shell.
2014-10-16 16:02:26 -04:00
Jeremy Mikola
7f1e190c95 Clean up hex_dump() source and add citation 2014-10-16 16:02:26 -04:00
Jeremy Mikola
becc3378fb Merge pull request #20 2014-10-03 16:10:22 -04: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
c6da714829 Remove unused class properties in WriteConcern 2014-10-03 13:30:39 -04:00
Jeremy Mikola
5784929f02 Merge pull request #19 from bjori/php1230-take-two
PHP-1230: Clean up WriteResult property storage on WriteException
2014-10-02 13:50:07 -05:00
Jeremy Mikola
efb777255f PHP-1230: Clean up WriteResult property storage on WriteException 2014-10-02 14:43:12 -04:00
Jeremy Mikola
deafb8d9dc Merge branch 'dry-run' 2014-09-30 10:23:54 -04:00
Jeremy Mikola
1887759251 Merge pull request #16 2014-09-30 10:19:32 -04:00
Jeremy Mikola
ad0f50d27d Use correct return types for WriteResult-related init functions
We never check whether WriteResult init succeeds, which is fine as it sets whatever it can on the corresponding object. For the error inits, we actually do care if they succeed or fail so that we can free up the zvals; however, the return types should be booleans.
2014-09-29 11:37:47 -04:00