When I call the function readline_callback_handler_install I get an error:
Fatal error: Call to undefined function readline_callback_handler_install() in /home/me/test.php on line 20
But I have php extension readline installed (and all other readline functions gives no error), and my version of php is greather than 5.1
me@laptop:~$ php -r 'echo extension_loaded("readline") . "\n";'
1
me@laptop:~$ php -v
PHP 5.3.3-1ubuntu9.6 with Suhosin-Patch (cli) (built: Oct 14 2011 22:31:56)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
Does someone know what is happening?
I’ve had this same error on the ubuntu machines I’ve tried to use this on.
Just as a note, I know Ubuntu build php using libedit, instead of readline. This may be one cause of the problem.