Req #54450 [Com]: Missing functions with libedit

From: Date: Mon, 08 Feb 2021 07:14:42 +0000
Subject: Req #54450 [Com]: Missing functions with libedit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232003@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54450&edit=1 ID: 54450 Comment by: calvincastil dot lo19845 at gmail dot com Reported by: fedora at famillecollet dot com Summary: Missing functions with libedit 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: I faced similar kind of issue last time. Thanks for the info i will try to figure it out for more https://krogerfeedback.bid/ Previous Comments: ------------------------------------------------------------------------ [2011-09-06 15:09:20] bjori@php.net 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. ------------------------------------------------------------------------ [2011-09-06 15:07:11] bjori@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

« previous php.bugs (#232003) next »