Файловый менеджер - Редактировать - /opt/alt/tests/alt-php82-pecl-mongodb_1.18.1-1.el8/tests/bug1045.phpt
Назад
--TEST-- PHPC-1045: Segfault if username is not provided for SCRAM-SHA-1 authMechanism --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_libmongoc_crypto(); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; echo throws(function() { // URI may or may not support auth, but that is not necessary for the test create_test_manager('mongodb://127.0.0.1/', ['authMechanism' => 'SCRAM-SHA-1']); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Failed to parse URI options: 'SCRAM-SHA-1' authentication mechanism requires username ===DONE===
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка