mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-26 01:42:10 +01:00
17 lines
438 B
PHP
17 lines
438 B
PHP
--TEST--
|
|
PHPC-1067: BSON document produces driver segfault with insert
|
|
--FILE--
|
|
<?php
|
|
$x = [
|
|
'_______' => new MongoDB\BSON\ObjectID('111111111111111111111111'),
|
|
'___________________________________' => new MongoDB\BSON\Regex('_______________________________________________________', 'i'),
|
|
];
|
|
|
|
$bulk = new MongoDB\Driver\BulkWrite;
|
|
$bulk->insert($x);
|
|
?>
|
|
==DONE==
|
|
<?php exit(0); ?>
|
|
--EXPECT--
|
|
==DONE==
|