Skip to content

Commit 62229a2

Browse files
committed
Fix test failures
1 parent 9e4f24e commit 62229a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/connect/bug0720.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ printf("ping: %d\n", $cursor->toArray()[0]->ok);
2222

2323
unset($manager, $cursor);
2424

25-
$manager = create_test_manager(URI, [], $driverOptions);
25+
$manager = create_test_manager(URI, $uriOptions);
2626
$cursor = $manager->executeCommand(DATABASE_NAME, new MongoDB\Driver\Command(['ping' => 1]));
2727
printf("ping: %d\n", $cursor->toArray()[0]->ok);
2828

tests/manager/bug0940-001.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ PHPC-940: php_phongo_free_ssl_opt() attempts to free interned strings
66
--FILE--
77
<?php
88

9-
var_dump(new MongoDB\Driver\Manager(null, ['tlsCAFile' => false]));
9+
/* Note: an empty string is interned, but php_phongo_fetch_string() calls
10+
* estrndup() for pfree=false so php_phongo_free_ssl_opt() will still efree() */
11+
var_dump(new MongoDB\Driver\Manager(null, [], ['ca_dir' => '']));
1012

1113
?>
1214
===DONE===

0 commit comments

Comments
 (0)