Fixed PHP-1059: updatedExisting always true

The updatedExisting field should always be set - but only when upserted is not set and n > 1 it is true
Merge pull request #666 from bjori/update-existing

Fixed PHP-1059: updatedExisting always true

* bjori/update-existing:
  Fixed PHP-1059: updatedExisting always true
Fix zts build on PHP5.6 :]
Merge pull request #663 from bjori/php-master-fix

Fix zts build on post PHP5.6 versions :]

* bjori/php-master-fix:
  Fix zts build on PHP5.6 :]
Fixed PHP-928 and PHP-1060: read only properties for inherited classes.
Added two more test cases as per review.
Merged pull request #667
Fixed PHP-1036: Segmentation Fault when querying large collection and the working set is not loaded
Fix similar issues as PHP-1036 by verifying if we actually have a zval before trying to
return it. mongo_rucommand() will throw an exception if its null, so no need to else RETURN_NULL()
Merge pull request #668 from bjori/PHP-1036-distinct-segfault

Php 1036 distinct segfault

* bjori/PHP-1036-distinct-segfault:
  Fix similar issues as PHP-1036 by verifying if we actually have a zval before trying to return it. mongo_rucommand() will throw an exception if its null, so no need to else RETURN_NULL()
  Fixed PHP-1036: Segmentation Fault when querying large collection and the working set is not loaded
PHP-1071: Create Index test can segfault

There is no retval to cleanup when exception is thrown
Merge pull request #671 from bjori/broken-test

There is no retval to cleanup when exception is thrown

* bjori/broken-test:
  PHP-1071: Create Index test can segfault
PHP-1065: Fix double free() when OP_GET_MORE fails

This is a bad copy&paste from the normal MongoCursor ctor
PHP-1065: Don't try to kill cursor that don't have a connection
Add a testcase for PHP-1065
Merge pull request #672 from bjori/PHP-1065-segfault-after-get-more-failure

Php 1065 segfault after get more failure

* bjori/PHP-1065-segfault-after-get-more-failure:
  Add a testcase for PHP-1065
  PHP-1065: Don't try to kill cursor that don't have a connection
  PHP-1065: Fix double free() when OP_GET_MORE fails