Bug #14311 Updated: probably bug in readline.c regarding readline_list_history()
| From: | sander@php.net | Date: | Sun, 02 Dec 2001 12:49:41 +0000 |
| Subject: | Bug #14311 Updated: probably bug in readline.c regarding readline_list_history() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72267@lists.php.net to get a copy of this message | ||
ID: 14311
Updated by: sander
Reported By: royal@altech.com.pl
Old Status: Open
Status: Closed
Bug Type: Readline related
Operating System: FreeBSD 4.4-STABLE
PHP Version: 4.0.6
New Comment:
Seems to be fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2001-12-01 17:06:05] royal@altech.com.pl
PHP 4.0.6 compiled as CGI
./configure '--with-config-file-path=/usr/local/etc/php.standalone'
'--disable-pear' '--enable-versioning' '--with-system-regex'
'--disable-debug' '--enable-track-vars' '--without-gd'
'--without-mysql' '--with-gd=/usr/local'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-zlib' '--with-mcrypt=/usr/local'
'--with-mhash=/usr/local' '--with-imap=/usr/local'
'--with-mysql=/usr/local' '--with-sybase=/usr/local'
'--with-ldap=/usr/local' '--with-xml' '--with-expat-dir=/usr/local'
'--with-sablot=/usr/local' '--with-expat-dir=/usr/local'
'--enable-ftp' '--with-curl=/usr/local' '--with-gettext=/usr/local'
'--with-iconv=/usr/local' '--with-pspell=/usr/local'
'--with-ming=/usr/local' '--enable-sockets' '--enable-trans-sid'
'--with-readline=/usr' '--prefix=/usr/local' 'i386--freebsd4.4'
executing: readline_list_history() produces warnin_not_available error
in file php-4.0.6/ext/readline/readline.c we read:
#ifdef HAVE_READLINE
PHP_FE(readline_list_history,NULL)#else
PHP_FALIAS(readline_list_history, warn_not_available, NULL)
#endif
probably it should read:
#ifdef HAVE_LIBREADLINE
PHP_FE(readline_list_history,NULL)#else
PHP_FALIAS(readline_list_history, warn_not_available, NULL)
#endif
at least it worked for me.
I think the other HAVE_READLINE should be changed to HAVE_LIBREADLINE.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14311&edit=1