ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
File manager
File manager - Edit - /opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests/bug1701-001.phpt
Back
--TEST-- PHPC-1701: prep_authmechanismproperties may leak if Manager ctor errors --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; echo throws(function () { // Using a stream context without SSL options causes an exception in the constructor, triggering the potential leak create_test_manager( null, ['username' => 'username', 'authMechanism' => 'GSSAPI', 'authMechanismProperties' => ['canonicalize_host_name' => true]], ['context' => stream_context_create([])] ); }, "MongoDB\Driver\Exception\InvalidArgumentException"), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Stream-Context resource does not contain "ssl" options array ===DONE===
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.2 |
proxy
|
phpinfo
|
Settings