Hannes Magnusson
fc2fd4a165
Add 0.5.0 release notes
0.5.0
2015-04-21 14:20:01 -07:00
Hannes Magnusson
b7168ff743
Bump stability
2015-04-21 14:19:52 -07:00
Hannes Magnusson
6e31d2f116
Fix tests on 5.3 -- and use consistent db/collection
2015-04-21 13:53:47 -07:00
Hannes Magnusson
41e0323f25
Fix test - set my favorite ini option: date.timezone
2015-04-21 13:30:03 -07:00
Hannes Magnusson
c4e57d299e
Fix tests
2015-04-21 13:24:21 -07:00
Hannes Magnusson
c286209cae
PHPC-241: Include lib versions and uri in the logs
2015-04-21 12:44:21 -07:00
Hannes Magnusson
bcf3d9b96b
Use the pretty MONGOC macros
2015-04-21 12:44:21 -07:00
Hannes Magnusson
d5223ec5c1
Remove dead code
2015-04-21 12:44:20 -07:00
Hannes Magnusson
6d7193d2c1
Move the init function to where all the others are and add folding markers
2015-04-21 12:44:20 -07:00
Jeremy Mikola
0232784045
Merge pull request #37
2015-04-21 14:35:51 -04:00
Jeremy Mikola
70b711000f
Current element is already freed in php_phongo_cursor_free()
...
php_phongo_cursor_iterator_dtor() should not need to free the current element, which is stored on our cursor struct. If the cursor is only used by one iterator, zval_ptr_dtor() on the iterator's intern.data property (i.e. our Cursor zval) will implicitly call the free_object handler, which will invoke php_phongo_cursor_free() and clear the current element.
2015-04-21 14:23:16 -04:00
Jeremy Mikola
f176cb7d91
Test Cursor iteration handlers and ensure rewind doesn't reset position
2015-04-21 14:23:16 -04:00
Jeremy Mikola
80e6951028
Tests for multiple iterators sharing the same Cursor
2015-04-21 14:23:16 -04:00
Jeremy Mikola
c7b7891697
PHPC-240: Rely on libmongoc for command cursor iteration
...
libmongoc already provides a mechanism to upgrade a cursor with a single command result document into a command cursor, which will seamlessly iterate through the first batch and documents returned by successive getmore ops.
This allows us to remove our own "first batch" handling and simplify the move_forward and rewind iteration handlers.
2015-04-21 14:23:16 -04:00
Jeremy Mikola
cb3e96d961
PHPC-240: Regression tests for command cursor getmore
2015-04-21 14:23:16 -04:00
Hannes Magnusson
f40aa95670
PHPC-254: Remove unused RINIT and RSHUTDOWN handlers
2015-04-21 10:30:25 -07:00
Hannes Magnusson
6d1e2b7f59
PHPC-253: bump mongoc after CDRIVER-611 fix
2015-04-21 10:23:55 -07:00
Hannes Magnusson
0afcb348dd
PHPC-249: empty array should be serialized as array
2015-04-16 13:46:58 -07:00
Hannes Magnusson
c162c29215
PHPC-248: Allow ->setTypeMap() to set 'array' and 'stdclass'
2015-04-16 13:21:58 -07:00
Hannes Magnusson
3c57497760
PHPC-245: Allow embedding objects in updates
2015-04-15 13:54:07 -07:00
Hannes Magnusson
e147fd3f7f
PHPC-245: executeUpdate() converts objects to arrays
...
Multiple things here -- we shouldn't be injecting __pclass every time
we serialize an object -- only when we are preparing it to be inserted.
Otherwise, for example when executing an update, it will be injected
into the update document too -- which b0rks the update statement.
We also need to bail out when we don't get an array from the serialize
callback -- and rather then pretend the return array from the callback
is the data we got passed in in the get-go, keep the original zval
intact so we don't accidentally convert it to array
2015-04-15 11:27:19 -07:00
Hannes Magnusson
2154934938
PHPC-244: Cannot use object of type Person as array
2015-04-14 20:00:37 -07:00
Hannes Magnusson
f4de8a4249
PHPC-243: Manager->executeUpdate() option is supposed to be 'multi'
2015-04-14 15:15:35 -07:00
Hannes Magnusson
4da1efd49d
Merge pull request #35 from bjori/PHPc-239
...
PHPC-239: Cursor refcount issues
2015-04-14 11:45:45 -07:00
Hannes Magnusson
251ed3ef39
PHPC-239: Cursor refcount issues
...
This also fixes re-iterating over a cursor where we would not free the
firstBatch properly, so the last result was still there.
2015-04-14 11:45:33 -07:00
Hannes Magnusson
11997ffe7b
Merge pull request #36 from derickr/align-and-missing-break-comment
...
Align code and added the "break intentionally ommitted" comment
2015-04-14 11:45:12 -07:00
Derick Rethans
2315f78a0d
Align code and added the "break intentionally ommitted" comment
2015-04-14 11:30:04 +01:00
Hannes Magnusson
c7528b53ef
PHPC-237: Update PHP version requirement in package.xml
...
Also add Derick and Jeremy as leads as developers apparently cannot
release on pecl.php.net
2015-04-13 10:23:52 -07:00
Hannes Magnusson
14bc287dd6
post-release pump
2015-04-10 16:15:57 -07:00
Hannes Magnusson
229c3ae92c
Add 0.4.1 release notes
0.4.1
2015-04-10 16:14:24 -07:00
Jeremy Mikola
fbd37dfdb1
Prep 0.4.1 release
2015-04-10 18:57:33 -04:00
Hannes Magnusson
930ff02098
PHPC-236: 5.3-zts build broken
2015-04-10 15:51:48 -07:00
Hannes Magnusson
f8be3a71f7
Back to -dev
2015-04-10 14:04:23 -07:00
Hannes Magnusson
69d2e010f2
prep 0.4.0 release
0.4.0
2015-04-10 14:03:00 -07:00
Hannes Magnusson
36e8f57c07
Add 0.4.0 release notes
2015-04-10 14:00:08 -07:00
Hannes Magnusson
58833def10
Install ext/zlib so we can pecl install .tgz
2015-04-10 13:55:38 -07:00
Hannes Magnusson
53852be641
mo will automatically upgrade pymongo -- we need to downgrade
2015-04-10 11:54:33 -07:00
Hannes Magnusson
22fad87e5c
mongo-orchestration isn't happy about the recent pymongo3.0 release
...
See https://github.com/10gen/mongo-orchestration/issues/188
2015-04-10 11:36:15 -07:00
Jeremy Mikola
314518f203
Update description for Cursor::getServer()
2015-04-10 11:17:40 -04:00
Hannes Magnusson
1b256699df
PHPC-234: Run test suite automatically on FreeBSD 10.1
2015-04-09 21:00:17 -07:00
Hannes Magnusson
7dfc4c0aa2
PHPC-235: Fix out-of-src builds on FreeBSD
2015-04-09 20:58:48 -07:00
Hannes Magnusson
3951055319
Initial script to provision on FreeBSD
2015-04-09 15:31:03 -07:00
Hannes Magnusson
cb9c823b01
Initial script to provision on Windows
2015-04-09 15:30:23 -07:00
Hannes Magnusson
6492ea9030
Fix windows build
2015-04-09 15:30:01 -07:00
Hannes Magnusson
0562092ef1
Simplify hash and fix windows build
2015-04-09 15:17:35 -07:00
Hannes Magnusson
d1e937794d
Rename the compat header - its much more then PHP5.3 issues now
2015-04-09 15:11:59 -07:00
Hannes Magnusson
a77a833833
Fix build on windows -- no strtoll()
2015-04-09 15:10:00 -07:00
Hannes Magnusson
c6d29b3220
Fix warning, return in noreturn function
2015-04-09 15:09:30 -07:00
Hannes Magnusson
68caa686ba
Fix zts build
2015-04-09 15:09:19 -07:00
Hannes Magnusson
19df2d7557
Fix php_flock() warning on windows
2015-04-09 15:08:07 -07:00