Skip to content

PHPLIB-118: Fix compatibility with extension's BSON typemaps #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

derickr
Copy link
Contributor

@derickr derickr commented Jul 27, 2015

derickr added 2 commits July 27, 2015 15:21
And we need to use assertEquals as assertSame means it needs to be the same
internal object
@@ -29,9 +29,9 @@ public function testFindOne()
'sort' => array('x' => -1),
);

$expected = array('_id' => 3, 'x' => 33);
$expected = (object) array('_id' => 3, 'x' => 33);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for now. I opened PHPLIB-113 to track creation of a typeMap option for findOne().

@jmikola
Copy link
Member

jmikola commented Jul 27, 2015

LGTM. This will fail until PHPC 0.7.0 is released.

@jmikola jmikola changed the title Typemap fixes PHPLIB-118: Fix compatibility with extension's BSON typemaps Aug 26, 2015
jmikola added a commit that referenced this pull request Aug 26, 2015
@jmikola
Copy link
Member

jmikola commented Aug 26, 2015

Manually merged and rebased in 81477df.

I did come across a segfault in PHPLIB-117, which I'll look into later in the sprint.

@jmikola jmikola closed this Aug 26, 2015
@derickr derickr deleted the typemap-fixes branch August 21, 2018 10:27
GromNaN added a commit to GromNaN/mongo-php-library that referenced this pull request Sep 9, 2024
* PHPLIB-1335 Add tests on Element Query Operators

* Make $type query operator variadic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants