Edit report at https://bugs.php.net/bug.php?id=54450&edit=1
ID: 54450 Updated by: bj...@php.net Reported by: fedora at famillecollet dot com Summary: Missing functions with libedit -Status: Assigned +Status: Closed Type: Feature/Change Request Package: Readline related Operating System: GNU/Linux (Fedora 14) PHP Version: 5.3.6 Assigned To: bjori Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-09-06 15:07:11] bj...@php.net Automatic comment from SVN on behalf of bjori Revision: http://svn.php.net/viewvc/?view=revision&revision=316265 Log: Fixed bug#54450 (callback function when built against libedit) ------------------------------------------------------------------------ [2011-04-02 09:34:40] fedora at famillecollet dot com Description: ------------ libedit (tested with version 3.0) provides "callback" functions, but php doesn't detects/provides them. The attached patched - add detection for "rl_callback_read_char" when build with "--with-readline" - add detection for "rl_on_new_line" which is only available when build "--with-readline" Exemple from http://www.php.net/readline_callback_handler_install works. Test script: --------------- php -r 'print_r(get_extension_funcs("readline"));' Expected result: ---------------- Array ( [0] => readline [1] => readline_info [2] => readline_add_history [3] => readline_clear_history [4] => readline_read_history [5] => readline_write_history [6] => readline_completion_function [7] => readline_callback_handler_install [8] => readline_callback_read_char [9] => readline_callback_handler_remove [10] => readline_redisplay ) Actual result: -------------- Array ( [0] => readline [1] => readline_info [2] => readline_add_history [3] => readline_clear_history [4] => readline_read_history [5] => readline_write_history [6] => readline_completion_function ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54450&edit=1