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