Skip to content

Commit 1c0fccf

Browse files
committed
fix readline build error bugsnet #66576
1 parent 2e4aed3 commit 1c0fccf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

config.m4

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ if test "$PHP_PHPDBG" != "no"; then
2020
PHP_PHPDBG_CFLAGS="-D_GNU_SOURCE"
2121
PHP_PHPDBG_FILES="phpdbg.c phpdbg_prompt.c phpdbg_help.c phpdbg_break.c phpdbg_print.c phpdbg_bp.c phpdbg_opcode.c phpdbg_list.c phpdbg_utils.c phpdbg_info.c phpdbg_cmd.c phpdbg_set.c phpdbg_frame.c"
2222

23+
if test "$PHP_READLINE" != "no"; then
24+
PHPDBG_EXTRA_LIBS="-lreadline"
25+
fi
26+
2327
PHP_SUBST(PHP_PHPDBG_CFLAGS)
2428
PHP_SUBST(PHP_PHPDBG_FILES)
25-
29+
PHP_SUBST(PHPDBG_EXTRA_LIBS)
30+
2631
PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/phpdbg/Makefile.frag])
2732
PHP_SELECT_SAPI(phpdbg, program, $PHP_PHPDBG_FILES, $PHP_PHPDBG_CFLAGS, [$(SAPI_PHPDBG_PATH)])
2833

phpdbg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
#define PHPDBG_AUTHORS "Felipe Pena, Joe Watkins and Bob Weinand" /* Ordered by last name */
150150
#define PHPDBG_URL "http://phpdbg.com"
151151
#define PHPDBG_ISSUES "http://github.com/krakjoe/phpdbg/issues"
152-
#define PHPDBG_VERSION "0.3.1"
152+
#define PHPDBG_VERSION "0.3.2"
153153
#define PHPDBG_INIT_FILENAME ".phpdbginit"
154154
/* }}} */
155155

0 commit comments

Comments
 (0)