Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
opt
/
php-8.2
/
share
/
test
/
mongodb
/
tests
/
manager
/
//proc/self/root/opt/php-8.2/share/test/mongodb/tests/manager/manager-serialization_error-001.phpt
--TEST-- MongoDB\Driver\Manager does not support serialization (PHP >= 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===