Skip to content

Commit 78073a8

Browse files
committed
Merged pull request #735
2 parents 63d205f + cb6d2c1 commit 78073a8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

tests/bson/bug1067.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
PHPC-1067: BSON document produces driver segfault with insert
3+
--FILE--
4+
<?php
5+
$x = [
6+
'_______' => new MongoDB\BSON\ObjectID('111111111111111111111111'),
7+
'___________________________________' => new MongoDB\BSON\Regex('_______________________________________________________', 'i'),
8+
];
9+
10+
$bulk = new MongoDB\Driver\BulkWrite;
11+
$bulk->insert($x);
12+
?>
13+
==DONE==
14+
<?php exit(0); ?>
15+
--EXPECT--
16+
==DONE==

0 commit comments

Comments
 (0)