Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
root
/
opt
/
php-7.2
/
share
/
test
/
mongodb
/
tests
/
writeConcern
/
//proc/212/root/opt/php-7.2/share/test/mongodb/tests/writeConcern/writeconcern-getwtimeout-002.phpt
--TEST-- MongoDB\Driver\WriteConcern::getWtimeout() emits warning on truncation of 64-bit value --SKIPIF-- <?php if (4 !== PHP_INT_SIZE) { die('skip Only for 32-bit platform'); } ?> --FILE-- <?php require_once __DIR__ . '/../utils/tools.php'; $manager = new MongoDB\Driver\Manager('mongodb://127.0.0.1/?w=2&wtimeoutms=4294967296'); echo raises(function() use ($manager) { var_dump($manager->getWriteConcern()->getWtimeout()); }, E_WARNING), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got E_WARNING Truncating 64-bit value for wTimeoutMS ===DONE===