Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
php-7.1
/
share
/
test
/
mongodb
/
tests
/
query
/
//proc/thread-self/root/opt/php-7.1/share/test/mongodb/tests/query/bug0430-003.phpt
--TEST-- PHPC-430: Query constructor arguments are modified --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; function buildQuery($filter, $options) { $options["cursorFlags"] = 0; return new MongoDB\Driver\Query($filter, $options); } $filter = []; $options = ['sort' => []]; $query = buildQuery($filter, $options); var_dump($options); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- array(1) { ["sort"]=> array(0) { } } ===DONE===