📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 23:12:22
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php84-pecl-mongodb_1.20.0-2.el8
/
tests
📍 /opt/alt/tests/alt-php84-pecl-mongodb_1.20.0-2.el8/tests
🔄 Refresh
✏️
Editing: bug1701-001.phpt
Read Only
--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===
💾 Save Changes
❌ Cancel