diff --git a/src/libbson b/src/libbson index 01f21fee7..ac20e7223 160000 --- a/src/libbson +++ b/src/libbson @@ -1 +1 @@ -Subproject commit 01f21fee773177a95c830c3c82ec6dfd7b871429 +Subproject commit ac20e7223e8e6a02cbe1fb41740382fc59635b4d diff --git a/tests/bson/bug1067.phpt b/tests/bson/bug1067.phpt new file mode 100644 index 000000000..24dfd6194 --- /dev/null +++ b/tests/bson/bug1067.phpt @@ -0,0 +1,16 @@ +--TEST-- +PHPC-1067: BSON document produces driver segfault with insert +--FILE-- + new MongoDB\BSON\ObjectID('111111111111111111111111'), + '___________________________________' => new MongoDB\BSON\Regex('_______________________________________________________', 'i'), +]; + +$bulk = new MongoDB\Driver\BulkWrite; +$bulk->insert($x); +?> +==DONE== + +--EXPECT-- +==DONE==