761 Commits

Author SHA1 Message Date
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
Hannes Magnusson
b5b160cd36 PHPC-213: Disable extra bson type alignment 2015-04-09 15:06:18 -07:00
Hannes Magnusson
f0cd8d1e3a Bumpidy bump 2015-04-09 10:26:40 -07:00
Hannes Magnusson
cd2660bc1a PHPC-233: Mark the ctor as private for internally created value objects 2015-04-09 09:16:42 -07:00
Hannes Magnusson
569c01eb02 PHPC-80: Create distcheck target 2015-04-08 17:49:23 -07:00
Hannes Magnusson
b63315086b Convert int64 that overflow 32bit long to strings
This fixes PHPC-197 along with running the `serverStatus` command
2015-04-08 17:38:17 -07:00
Hannes Magnusson
a222e39869 Convert overflown int64 to strings and print a warning 2015-04-08 17:13:52 -07:00
Hannes Magnusson
815876050f Fix path to tests when executed through pecl run-tests 2015-04-08 15:45:20 -07:00
Hannes Magnusson
98ca229d3f Ignore untracked files in these repos 2015-04-08 14:50:07 -07:00
Hannes Magnusson
3e6ebf54f1 libbson & mongoc seem to have fixed a lot of warnings -- enable all of ours 2015-04-08 14:43:38 -07:00
Hannes Magnusson
73a510d946 Workaround CDRIVER-610 2015-04-08 14:42:56 -07:00
Hannes Magnusson
5494b86255 Apparently there is a function for this! 2015-04-08 14:40:45 -07:00
Hannes Magnusson
6d8f7e9ed2 Fix zts build.. TSRMLS_FETCH_FROM_CTX declares variables and therefore must come first 2015-04-08 12:59:38 -07:00
Hannes Magnusson
69fe06ace8 Remove noop log handler 2015-04-08 12:58:05 -07:00
Hannes Magnusson
0ea1c5e863 PHPC-231: Manager instances should not free streams that are still in use 2015-04-08 12:58:05 -07:00
Hannes Magnusson
d294b60391 bump dependencies for PHPC-231 & PHPC-213 2015-04-08 12:58:05 -07:00
Jeremy Mikola
005d92beb1 PHPC-232: Fix capitalization for WriteResult::getWriteConcern() 2015-04-07 16:37:59 -04:00
Jeremy Mikola
32bdb2b2ed PHPC-231: Regression test for Manager destruct stream freeing 2015-04-07 15:06:36 -04:00
Jeremy Mikola
e5cdd3713a Merge pull request #33 2015-04-06 22:53:41 -04:00
Jeremy Mikola
c32a7cc646 Remove unnecessary php_phongo_cursor_free_current() call
The current element is already freed at the top of this function. After that point, the element could only be intialized from first_batch_iter (after which we return immediately) or if mongoc_cursor_next() returns true (in which case we wouldn't be in this else clause).
2015-04-06 17:31:56 -04:00
Jeremy Mikola
efd91816da Re-use cursor_free_current() in cursor_free()
With this change, all visitor_data.zchild freeing is now done through the same function.
2015-04-06 17:30:21 -04:00
Jeremy Mikola
c454d27d95 PHPC-215: Fix Cursor iteration through IteratorIterator
This removes the invalidate_current handler. Due to SPL's implementation, our handler was being invoked between rewinding and checking if the current position was valid. Given that our validity check depends on inspecting a pointer to the current element (like MySQLi's result iterator), we cannot use invalidate_current.

The current element must still be freed during iteration, so we will instead call a php_phongo_cursor_free_current() function as needed. Additionally, we should track a reference to the Cursor object zval on the iterator itself, which will ensure it is not garbage-collected during iteration (demonstrated in the segfault backtrace in PHPC-215).

Lastly, this commit renames the Cursor object and iterator structs and related functions to be more consistent with implementions in PHP core.
2015-04-06 15:45:19 -04:00
Jeremy Mikola
e2e9d89cb2 PHPC-225: Test Cursor::isDead() and kill on destruct
Testing for kill on destruct is based on PyMongo (see: https://jira.mongodb.org/browse/SERVER-5816?focusedCommentId=201245).
2015-04-06 15:45:19 -04:00
Jeremy Mikola
66193e83bc PHPC-224: Consolidate Result and Cursor classes into one
This class is now simply Traversable (no longer IteratorAggregate) and adds isDead() and getId() methods from the original Cursor class.
2015-04-06 15:45:19 -04:00
Jeremy Mikola
34fff68d85 PHPC-224: Remove Cursor class, which implements Iterator 2015-04-06 15:37:48 -04:00
Hannes Magnusson
266de5c3cf PHPC-207: Correct serialized data examples for ODS documentation 2015-04-03 16:42:37 -07:00
Hannes Magnusson
81de2ca8ff PHPC-210 & PHPC-209 & PHPC-207 Fix BSON ODM/ODS 2015-04-03 16:06:46 -07:00
Hannes Magnusson
86d3a8f798 PHPC-208: Restrict ODS to "__pclass" fieldnames 2015-04-03 15:17:59 -07:00
Hannes Magnusson
848acb01ba PHPC-194: Implement Manager::selectServer() method to wrap SDAM server selection 2015-04-03 14:29:05 -07:00
Hannes Magnusson
b3b3322cb4 In PHP5.3 we hit the __wakeUp() which has slightly different exception 2015-04-03 13:44:53 -07:00
Hannes Magnusson
32ca098154 Merge pull request #34 from serebro/patch-1
Docs small fix
2015-04-03 13:25:25 -07:00
Sergey
bf3befb561 Docs small fix 2015-04-03 23:17:48 +03:00
Hannes Magnusson
69bc19724d PHPC-190: Provide __wakeUp() to disable unserialize() 2015-04-03 13:02:19 -07:00
Hannes Magnusson
45bf77cb2d This apt-get update is slow -- no need to execute it all the time 2015-04-03 12:36:02 -07:00