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.