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 windows only test');
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--EXPECT--
25array(4) {
26  ["line_buffer"]=>
27  string(0) ""
28  ["point"]=>
29  int(0)
30  ["readline_name"]=>
31  string(0) ""
32  ["attempted_completion_over"]=>
33  int(0)
34}
35NULL
36NULL
37string(0) ""
38string(0) ""
39string(0) ""
40string(1) "1"
41int(0)
42int(1)
43