-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 0.5.0
-
Component/s: None
-
None
<?php $a = array(fopen("README.md", "a+")); $b = BSON\fromArray($a); var_dump($a, $b); ?>
I DON'T SUPPORT THAT TYPE! array(1) { [0]=> resource(5) of type (stream) } string(5) ""
The old driver used to silently ignore this - but I imagine we'd want to throw an exception since it is very unexpected value and sign of bad user error.
- related to
-
PHPC-266 Add MongoDB\Driver\UnexpectedValueException
- Closed