uawdijnntqw1x1x1
IP : 3.144.117.19
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
.
/
.
/
opt
/
alt
/
tests
/
alt-php82-pecl-mongodb_1.18.1-1.el8
/
tests
/
bson-packedarray-get-005.phpt
/
/
--TEST-- MongoDB\BSON\PackedArray::get() fixes duplicate keys --FILE-- <?php $degenerateBson = hex2bin('1b000000046100130000001030000a000000103000140000000000'); $packedArray = MongoDB\BSON\Document::fromBSON($degenerateBson)->get('a'); var_dump($packedArray->has(0)); var_dump($packedArray->get(0)); var_dump($packedArray->has(1)); var_dump($packedArray->get(1)); var_dump($packedArray->toPHP()); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- bool(true) int(10) bool(true) int(20) array(2) { [0]=> int(10) [1]=> int(20) } ===DONE===
/home/../././opt/alt/tests/alt-php82-pecl-mongodb_1.18.1-1.el8/tests/bson-packedarray-get-005.phpt