php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14311 probably bug in readline.c regarding readline_list_history()
Submitted: 2001-12-01 17:06 UTC Modified: 2001-12-02 07:49 UTC
From: royal at altech dot com dot pl Assigned:
Status: Closed Package: Readline related
PHP Version: 4.0.6 OS: FreeBSD 4.4-STABLE
Private report: No CVE-ID: None
 [2001-12-01 17:06 UTC] royal at altech dot com dot 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-02 07:49 UTC] sander@php.net
Seems to be fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC