1--TEST--
2readline_completion_function(): Basic test
3--SKIPIF--
4<?php if (!extension_loaded("readline")) die("skip"); ?>
5--FILE--
6<?php
7
8function foo() { }
9
10$data = array(
11	'foo',
12	'strtolower',
13	1,
14	1.1231
15);
16
17foreach ($data as $callback) {
18	readline_completion_function($callback);
19}
20
21?>
22--EXPECTF--
23Warning: readline_completion_function(): 1 is not callable in %s on line %d
24
25Warning: readline_completion_function(): 1.1231 is not callable in %s on line %d
26