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