Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F631617
bson-int64-serialization_error-003.phpt
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
503 B
Referenced Files
None
Subscribers
None
bson-int64-serialization_error-003.phpt
View Options
--TEST--
MongoDB\BSON\Int64 unserialization requires "int" string field (__serialize and __unserialize)
--FILE--
<?php
require_once __DIR__ . '/../utils/basic.inc';
echo throws(function() {
unserialize('O:18:"MongoDB\BSON\Int64":1:{s:7:"integer";i:0;}');
}, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n";
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
MongoDB\BSON\Int64 initialization requires "integer" string field
===DONE===
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sun, Nov 15, 12:23 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152321
Default Alt Text
bson-int64-serialization_error-003.phpt (503 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline