1--TEST--
2readline_info(): Basic test
3--SKIPIF--
4<?php if (!extension_loaded("readline")) die("skip"); ?>
5--FILE--
6<?php
7
8var_dump(readline_info());
9var_dump(readline_info(1));
10var_dump(readline_info(1,1));
11var_dump(readline_info('line_buffer'));
12var_dump(readline_info('readline_name'));
13var_dump(readline_info('readline_name', 1));
14var_dump(readline_info('readline_name'));
15var_dump(readline_info('attempted_completion_over',1));
16var_dump(readline_info('attempted_completion_over'));
17
18?>
19--EXPECTF--
20array(11) {
21  ["line_buffer"]=>
22  string(0) ""
23  ["point"]=>
24  int(0)
25  ["end"]=>
26  int(0)
27  ["mark"]=>
28  int(0)
29  ["done"]=>
30  int(0)
31  ["pending_input"]=>
32  int(0)
33  ["prompt"]=>
34  string(0) ""
35  ["terminal_name"]=>
36  string(0) ""
37  ["library_version"]=>
38  string(%d) "%s"
39  ["readline_name"]=>
40  string(5) "other"
41  ["attempted_completion_over"]=>
42  int(0)
43}
44NULL
45NULL
46string(0) ""
47string(5) "other"
48string(5) "other"
49string(1) "1"
50int(0)
51int(1)
52