Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F624453
binary-decodeError-002.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
493 B
Referenced Files
None
Subscribers
None
binary-decodeError-002.phpt
View Options
--TEST--
Binary type: Negative length
--DESCRIPTION--
Generated by scripts/convert-bson-corpus-tests.php
DO NOT EDIT THIS FILE
--FILE--
<?php
require_once __DIR__ . '/../utils/basic.inc';
$bson = hex2bin('0D000000057800FFFFFFFF0000');
throws(function() use ($bson) {
MongoDB\BSON\Document::fromBSON($bson)->toPHP();
}, '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
Sat, Nov 14, 10:22 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
137786
Default Alt Text
binary-decodeError-002.phpt (493 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline