Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Oct 15, 2024
1 parent 9e4f24e commit 62229a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/connect/bug0720.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ printf("ping: %d\n", $cursor->toArray()[0]->ok);

unset($manager, $cursor);

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

Expand Down
4 changes: 3 additions & 1 deletion tests/manager/bug0940-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ PHPC-940: php_phongo_free_ssl_opt() attempts to free interned strings
--FILE--
<?php

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

?>
===DONE===
Expand Down

0 comments on commit 62229a2

Please sign in to comment.