Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629688
binary-decodeError-004.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
494 B
Referenced Files
None
Subscribers
None
binary-decodeError-004.phpt
View Options
--TEST--
Binary type: subtype 0x02 length too short
--DESCRIPTION--
Generated by scripts/convert-bson-corpus-tests.php
DO NOT EDIT THIS FILE
--FILE--
<?php
require_once __DIR__ . '/../utils/basic.inc';
$bson = hex2bin('13000000057800060000000201000000FFFF00');
throws(function() use ($bson) {
var_dump(toPHP($bson));
}, 'MongoDB\Driver\Exception\UnexpectedValueException');
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
OK: Got MongoDB\Driver\Exception\UnexpectedValueException
===DONE===
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sun, Nov 15, 7:32 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152158
Default Alt Text
binary-decodeError-004.phpt (494 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline