Req #54450 [NEW]: Missing functions with libedit
| From: | fedora at famillecollet dot com | Date: | Sat, 02 Apr 2011 07:34:41 +0000 |
| Subject: | Req #54450 [NEW]: Missing functions with libedit | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-159906@lists.php.net to get a copy of this message | ||
From:
Operating system: GNU/Linux (Fedora 14)
PHP version: 5.3.6
Package: Readline related
Bug Type: Feature/Change Request
Bug description:Missing functions with libedit
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 bug report at http://bugs.php.net/bug.php?id=54450&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54450&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54450&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54450&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54450&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54450&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54450&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54450&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54450&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54450&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54450&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54450&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54450&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54450&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54450&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54450&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54450&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54450&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54450&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54450&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54450&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54450&r=mysqlcfg