From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.4-STABLE
PHP version:      4.0.6
PHP Bug Type:     Readline related
Bug description:  probably bug in readline.c regarding readline_list_history()

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 bug report at: http://bugs.php.net/?id=14311&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to