com php-src: Use or instead of and for libedit and readline: phpdbg_cmd.c
| From: | Bob Weinand | Date: | Sat, 04 Oct 2014 14:31:34 +0000 |
| Subject: | com php-src: Use or instead of and for libedit and readline: phpdbg_cmd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82599@lists.php.net to get a copy of this message | ||
Commit: 490aa1f984ee55bf31ac4f1d49385fbaf5fab0f5
Author: Bob Weinand <bobwei9@hotmail.com> Sat, 4 Oct 2014 16:31:34 +0200
Parents: 323e59adfc2410704261186643d03c2bc01cb870
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=490aa1f984ee55bf31ac4f1d49385fbaf5fab0f5
Log:
Use or instead of and for libedit and readline
Changed paths:
M phpdbg_cmd.c
Diff:
diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c
index 8fb86a5..8ada61a 100644
--- a/phpdbg_cmd.c
+++ b/phpdbg_cmd.c
@@ -807,7 +807,7 @@ disconnect:
return NULL;
}
-#define USE_LIB_STAR (defined(HAVE_LIBREADLINE) && defined(HAVE_LIBEDIT))
+#define USE_LIB_STAR (defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT))
#if !USE_LIB_STAR
if (!(PHPDBG_G(flags) & PHPDBG_IS_REMOTE)) {
if (!phpdbg_write("%s", phpdbg_get_prompt(TSRMLS_C))) {