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-8.3
/
share
/
test
/
mongodb
/
tests
/
query
/
//proc/thread-self/root/opt/php-8.3/share/test/mongodb/tests/query/bug2457-001.phpt
--TEST-- PHPC-2457: Query options can be passed reference --FILE-- <?php $collation = ['locale' => 'fr_FR', 'strength' => 2]; $let = ['x' => 1]; $sort = ['_id' => 1]; $query = new MongoDB\Driver\Query([], [ 'collation' => &$collation, 'let' => &$let, 'sort' => &$sort, ]); var_dump($query); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- object(MongoDB\Driver\Query)#1 (3) { ["filter"]=> object(stdClass)#2 (0) { } ["options"]=> object(stdClass)#6 (3) { ["collation"]=> object(stdClass)#3 (2) { ["locale"]=> string(5) "fr_FR" ["strength"]=> int(2) } ["let"]=> object(stdClass)#4 (1) { ["x"]=> int(1) } ["sort"]=> object(stdClass)#5 (1) { ["_id"]=> int(1) } } ["readConcern"]=> NULL } ===DONE===