Skip to content

Fixes due to some inconsistencies in HHVM vs PHP #66

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

Merged
merged 2 commits into from
Jul 28, 2015

Conversation

derickr
Copy link
Contributor

@derickr derickr commented Jul 28, 2015

No description provided.

@@ -62,7 +62,7 @@ Test#2 { "0" : null }
OK
Test#3 { "0" : 123 }
OK
Test#4 { "0" : 4.23 }
Test#4 { "0" : 4.23%d }
Copy link
Member

Choose a reason for hiding this comment

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

AFAIK, this shouldn't be necessary if you bump libbson. Older versions printed more precision than was necessary.

Also, %d doesn't have a "zero or more" variant (like %s and %S), so this could fail for newer libbson versions that only print 4.23, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, perhaps. Hadn't realize this was a libbson version. Will try that.

derickr added 2 commits July 28, 2015 17:44
HHVM has the __pclass property last, and not first. That doesn't matter
functionality wise, but it impacts the hexdump.
@jmikola
Copy link
Member

jmikola commented Jul 28, 2015

Two failures for PHP 5.5 and 5.6:

Fatal error: Cannot use object of type MyClass as array in /home/travis/build/10gen-labs/mongo-php-driver-prototype/tests/bson/bug0334.php on line 20

That should be resolved with #64.

@jmikola jmikola merged commit fddd88f into mongodb:master Jul 28, 2015
jmikola added a commit that referenced this pull request Jul 28, 2015

?>
===DONE===
<?php exit(0); ?>
Copy link
Member

Choose a reason for hiding this comment

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

IIRC, we discussed ===DONE=== previously and it should stick around.

@bjori
Copy link
Contributor

bjori commented Jul 28, 2015

This change seems to have broken travis:

========DIFF========

001+ Fatal error: Cannot use object of type MyClass as array in /home/travis/build/10gen-labs/mongo-php-driver-prototype/tests/bson/bug0334.php on line 20

001- string(7) "MyClass"

========DONE========

FAIL PHPC-334: Injected __pclass should override a __pclass key in bsonSerialize() return value [tests/bson/bug0334.phpt]

@jmikola
Copy link
Member

jmikola commented Jul 29, 2015

@bjori: Correct. I mentioned that in #66 (comment).

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.

3 participants