📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 04:44:51
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php80-pecl-mongodb_1.18.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests
🔄 Refresh
✏️
Editing: manager-serialization_error-001.phpt
Read Only
--TEST-- MongoDB\Driver\Manager does not support serialization (PHP >= 8.1) --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_php_version('<', '8.1'); ?> --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; echo throws(function() { serialize(create_test_manager()); }, Exception::class), "\n"; echo throws(function() { unserialize('C:22:"MongoDB\Driver\Manager":0:{}'); }, Exception::class), "\n"; echo throws(function() { unserialize('O:22:"MongoDB\Driver\Manager":0:{}'); }, Exception::class), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got Exception Serialization of 'MongoDB\Driver\Manager' is not allowed OK: Got Exception Unserialization of 'MongoDB\Driver\Manager' is not allowed OK: Got Exception Unserialization of 'MongoDB\Driver\Manager' is not allowed ===DONE===
💾 Save Changes
❌ Cancel