|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: royal at altech dot com dot pl
New email:
PHP Version: OS:


 [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:

PHP_FE(readline_list_history,NULL)#else                                                       PHP_FALIAS(readline_list_history, warn_not_available, NULL)
#endif                                                                                                                  probably it should read:

PHP_FE(readline_list_history,NULL)#else                                                       PHP_FALIAS(readline_list_history, warn_not_available, NULL)

at least it worked for me.

I think the other HAVE_READLINE should be changed to HAVE_LIBREADLINE.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-02 07:49 UTC]
Seems to be fixed in CVS.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 11:01:31 2024 UTC