Browse Source

- Fixed bug #50209 (Compiling with libedit cannot find readline.h)

(patch by tcallawa at redhat dot com)
experimental/the_5_4_that_isnt_5_4
Felipe Pena 17 years ago
parent
commit
4411621217
  1. 2
      NEWS
  2. 2
      ext/readline/config.m4
  3. 4
      ext/readline/readline.c
  4. 4
      sapi/cli/php_cli.c
  5. 4
      sapi/cli/php_cli_readline.c

2
NEWS

@ -62,6 +62,8 @@ PHP NEWS
(Pierrick)
- Fixed bug #50212 (crash by ldap_get_option() with LDAP_OPT_NETWORK_TIMEOUT).
(Ilia, shigeru_kitazaki at cybozu dot co dot jp)
- Fixed bug #50209 (Compiling with libedit cannot find readline.h).
(tcallawa at redhat dot com)
- Fixed bug #50207 (segmentation fault when concatenating very large strings on
64bit linux). (Ilia)
- Fixed bug #50195 (pg_copy_to() fails when table name contains schema. (Ilia)

2
ext/readline/config.m4

@ -65,7 +65,7 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
elif test "$PHP_LIBEDIT" != "no"; then
for i in $PHP_LIBEDIT /usr/local /usr; do
test -f $i/include/readline/readline.h && LIBEDIT_DIR=$i && break
test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
done
if test -z "$LIBEDIT_DIR"; then

4
ext/readline/readline.c

@ -33,8 +33,10 @@
#define rl_completion_matches completion_matches
#endif
#ifdef HAVE_LIBEDIT
#include <editline/readline.h>
#else
#include <readline/readline.h>
#ifndef HAVE_LIBEDIT
#include <readline/history.h>
#endif

4
sapi/cli/php_cli.c

@ -76,8 +76,10 @@
#endif
#if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE)
#if HAVE_LIBEDIT
#include <editline/readline.h>
#else
#include <readline/readline.h>
#if !HAVE_LIBEDIT
#include <readline/history.h>
#endif
#include "php_cli_readline.h"

4
sapi/cli/php_cli_readline.c

@ -49,8 +49,10 @@
#include <unixlib/local.h>
#endif
#if HAVE_LIBEDIT
#include <editline/readline.h>
#else
#include <readline/readline.h>
#if !HAVE_LIBEDIT
#include <readline/history.h>
#endif

Loading…
Cancel
Save