summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_prompt.c
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2014-06-23 10:04:40 +0200
committerRemi Collet <remi@php.net>2014-06-23 10:04:40 +0200
commit86bafec836b81070547399b890c5b01897250a31 (patch)
tree36d14adfe37aa9960410ba6df5a53b5832db86c9 /sapi/phpdbg/phpdbg_prompt.c
parentf08a5bfadc360cb53574bdb2f4dc32ac30636133 (diff)
downloadphp-git-86bafec836b81070547399b890c5b01897250a31.tar.gz
Fix https://github.com/krakjoe/phpdbg/issues/91
Enable edit feature when build with libedit. Notice: coloured prompt only enable with READLINE
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r--sapi/phpdbg/phpdbg_prompt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c
index 5379e77586..d91ef3f3f5 100644
--- a/sapi/phpdbg/phpdbg_prompt.c
+++ b/sapi/phpdbg/phpdbg_prompt.c
@@ -732,6 +732,11 @@ PHPDBG_COMMAND(print) /* {{{ */
#else
phpdbg_writeln("Readline\tno");
#endif
+#ifdef HAVE_LIBEDIT
+ phpdbg_writeln("Libedit\t\tyes");
+#else
+ phpdbg_writeln("Libedit\t\tno");
+#endif
phpdbg_writeln("Exec\t\t%s", PHPDBG_G(exec) ? PHPDBG_G(exec) : "none");
phpdbg_writeln("Compiled\t%s", PHPDBG_G(ops) ? "yes" : "no");