Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/windows/prepare-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ runs:
steps:
- name: Setup PHP SDK
id: setup-php
uses: php/setup-php-sdk@v0.10
uses: php/setup-php-sdk@v0.11
with:
version: ${{ inputs.version }}
arch: ${{ inputs.arch }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ jobs:
fail-fast: false
matrix:
# Note: keep this in sync with the Windows matrix in tests.yml
php: [ "8.1", "8.2", "8.3", "8.4" ]
php: [ "8.1", "8.2", "8.3", "8.4", "8.5" ]
arch: [ x64, x86 ]
ts: [ ts, nts ]
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"
mongodb-version:
- "6.0"
topology:
Expand Down Expand Up @@ -125,6 +126,6 @@ jobs:
fail-fast: false
matrix:
# Note: keep this in sync with the Windows matrix in package-release.yml
php: [ "8.1", "8.2", "8.3", "8.4" ]
php: [ "8.1", "8.2", "8.3", "8.4", "8.5" ]
arch: [ x64, x86 ]
ts: [ ts, nts ]
2 changes: 1 addition & 1 deletion src/contrib/php_array_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ char *php_array_zval_to_string(zval *z, int *plen, zend_bool *pfree) {
zval c = *z;
zval_copy_ctor(&c);
convert_to_string(&c);
*pfree = ! IS_INTERNED(Z_STR(c));
*pfree = ! ZSTR_IS_INTERNED(Z_STR(c));
*plen = Z_STRLEN(c);
return Z_STRVAL(c);
}
Expand Down
4 changes: 0 additions & 4 deletions tests/bson/bson-decimal128-002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ MongoDB\BSON\Decimal128 NaN values
<?php

$tests = [
acos(8),
NAN,
'nan',
'Nan',
'NaN',
Expand All @@ -24,6 +22,4 @@ NaN
NaN
NaN
NaN
NaN
NaN
===DONE===
6 changes: 3 additions & 3 deletions tests/bson/bson-decimal128-004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ MongoDB\BSON\Decimal128 debug handler
<?php

$tests = [
1234.5678,
NAN,
INF,
'1234.5678',
'NAN',
'INF',
];

foreach ($tests as $test) {
Expand Down
6 changes: 3 additions & 3 deletions tests/bson/bson-decimal128-serialization-002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ MongoDB\BSON\Decimal128 serialization (__serialize and __unserialize)
$tests = [
'1234.5678',
'-1234.5678',
1234.56e-78,
INF,
NAN,
'1234.56e-78',
'INF',
'NAN',
];

foreach ($tests as $value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $labels = ['test', 'foo'];
$reflection = new ReflectionClass($exception);

$resultDocumentProperty = $reflection->getProperty('errorLabels');
$resultDocumentProperty->setAccessible(true);
$resultDocumentProperty->setValue($exception, $labels);

var_dump($exception->hasErrorLabel('foo'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $labels = 'shouldBeAnArray';
$reflection = new ReflectionClass($exception);

$resultDocumentProperty = $reflection->getProperty('errorLabels');
$resultDocumentProperty->setAccessible(true);
$resultDocumentProperty->setValue($exception, $labels);

var_dump($exception->hasErrorLabel('bar'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $resultDocument = (object) ['x' => 1];
$reflection = new ReflectionClass($exception);

$resultDocumentProperty = $reflection->getProperty('resultDocument');
$resultDocumentProperty->setAccessible(true);
$resultDocumentProperty->setValue($exception, $resultDocument);

var_dump($resultDocument === $exception->getResultDocument());
Expand Down
1 change: 0 additions & 1 deletion tests/exception/commandexception-haserrorlabel-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $labels = ['test', 'foo'];
$reflection = new ReflectionClass($exception);

$resultDocumentProperty = $reflection->getProperty('errorLabels');
$resultDocumentProperty->setAccessible(true);
$resultDocumentProperty->setValue($exception, $labels);

var_dump($exception->hasErrorLabel('foo'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $labels = 'shouldBeAnArray';
$reflection = new ReflectionClass($exception);

$resultDocumentProperty = $reflection->getProperty('errorLabels');
$resultDocumentProperty->setAccessible(true);
$resultDocumentProperty->setValue($exception, $labels);

var_dump($exception->hasErrorLabel('bar'));
Expand Down
1 change: 0 additions & 1 deletion tests/exception/runtimeexception-haserrorlabel-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $labels = ['test', 'foo'];
$reflection = new ReflectionClass($exception);

$resultDocumentProperty = $reflection->getProperty('errorLabels');
$resultDocumentProperty->setAccessible(true);
$resultDocumentProperty->setValue($exception, $labels);

var_dump($exception->hasErrorLabel('foo'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $labels = 'shouldBeAnArray';
$reflection = new ReflectionClass($exception);

$resultDocumentProperty = $reflection->getProperty('errorLabels');
$resultDocumentProperty->setAccessible(true);
$resultDocumentProperty->setValue($exception, $labels);

var_dump($exception->hasErrorLabel('bar'));
Expand Down
2 changes: 1 addition & 1 deletion tests/server/server-construct-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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);

var_dump($server->getHost() == $expectedHost);
var_dump($server->getPort() == $expectedPort);
Expand Down
Loading