-
Notifications
You must be signed in to change notification settings - Fork 209
PHPC-2617: Support PHP 8.5 #1871
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
Changes from all commits
d2e2415
dbcb789
c41c003
117fd6e
1ba1732
5583766
8349a73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ MongoDB\BSON\Decimal128 NaN values | |
<?php | ||
|
||
$tests = [ | ||
acos(8), | ||
NAN, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per our earlier Slack conversation, you opted to remove any Decimal128 test cases that depended on type-coercion. I have no objections here, as the documentation has always indicated that the constructor expects a string value. I wasn't able to find any mention of the type-coercion behavioral change in PHP 8.5's UPGRADING file. If you happen to find the change responsible for this I'd be interested in seeing it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The offending commit is php/php-src@320fe29, which is the result of the large PHP 8.5 deprecation vote. |
||
'nan', | ||
'Nan', | ||
'NaN', | ||
|
@@ -24,6 +22,4 @@ NaN | |
NaN | ||
NaN | ||
NaN | ||
NaN | ||
NaN | ||
===DONE=== |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ $bulk->insert(array('foo' => 'bar')); | |
$server = $manager->executeBulkWrite(NS, $bulk)->getServer(); | ||
|
||
$expectedHost = $parsed['host']; | ||
$expectedPort = (integer) (isset($parsed['port']) ? $parsed['port'] : 27017); | ||
$expectedPort = (int) (isset($parsed['port']) ? $parsed['port'] : 27017); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
var_dump($server->getHost() == $expectedHost); | ||
var_dump($server->getPort() == $expectedPort); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted that v0.11 added support for PHP 8.5.