Skip to content

Commit ff2b44f

Browse files
committed
1 parent 3eb00aa commit ff2b44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/readline/readline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ PHP_FUNCTION(readline_info)
186186
if (!try_convert_to_string(value)) {
187187
RETURN_THROWS();
188188
}
189-
#ifndef PHP_WIN32
189+
#if !defined(PHP_WIN32) && !HAVE_LIBEDIT
190190
if (!rl_line_buffer) {
191191
rl_line_buffer = malloc(Z_STRLEN_P(value) + 1);
192192
} else if (strlen(oldstr) < Z_STRLEN_P(value)) {

0 commit comments

Comments
 (0)