1--TEST--
2DBA check behaviour of key as an array with non string elements
3--EXTENSIONS--
4dba
5--SKIPIF--
6<?php
7require_once __DIR__ . '/setup/setup_dba_tests.inc';
8check_skip_any();
9?>
10--FILE--
11<?php
12require_once __DIR__ . '/setup/setup_dba_tests.inc';
13$name = 'array_keys_non_string.db';
14
15$db = get_any_db($name);
16
17$key = [5, 5.21];
18
19var_dump($key);
20var_dump(dba_insert($key, 'Test', $db));
21var_dump($key);
22var_dump(dba_fetch($key, $db));
23var_dump($key);
24
25dba_close($db);
26
27?>
28--CLEAN--
29<?php
30require_once __DIR__ . '/setup/setup_dba_tests.inc';
31$db_name = 'array_keys_non_string.db';
32cleanup_standard_db($db_name);
33?>
34--EXPECTF--
35Using handler: "%s"
36array(2) {
37  [0]=>
38  int(5)
39  [1]=>
40  float(5.21)
41}
42bool(true)
43array(2) {
44  [0]=>
45  int(5)
46  [1]=>
47  float(5.21)
48}
49string(4) "Test"
50array(2) {
51  [0]=>
52  int(5)
53  [1]=>
54  float(5.21)
55}
56