Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F631128
writeconcern-bsonserialize-004.phpt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
530 B
Referenced Files
None
Subscribers
None
writeconcern-bsonserialize-004.phpt
View Options
--TEST--
MongoDB\Driver\WriteConcern::bsonSerialize() encodes 64-bit wtimeoutms as Int64 (32-bit)
--SKIPIF--
<?php if (4 !== PHP_INT_SIZE) { die('skip Only for 32-bit platform'); } ?>
--FILE--
<?php
$wc = MongoDB\Driver\WriteConcern::__set_state(['w' => 2, 'wtimeout' => '2147483648']);
var_dump($wc->bsonSerialize());
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(stdClass)#%d (%d) {
["w"]=>
int(2)
["wtimeout"]=>
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(10) "2147483648"
}
}
===DONE===
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 11:13 AM (18 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
142433
Default Alt Text
writeconcern-bsonserialize-004.phpt (530 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline