Page MenuHomePhabricator (Chris)

binary-decodeError-004.phpt
No OneTemporary

Authored By
Unknown
Size
494 B
Referenced Files
None
Subscribers
None

binary-decodeError-004.phpt

--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

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)

Event Timeline