Readline functions undefined

I try to use readline functions and see the error message that some of them are undefined.

Strange that function readline() exists, but another functions, e.g. readline_callback_handler_install() or readline_callback_read_char() - not.

Screenshot from my phpinfo() below…

I guess having this enabled is different than having PHP built with readline in it. They talk a bit about this in the following post…

What does the configure line look like? Does it have the option to include readline?

I have Windows 10 / XAMPP 7.2.34. It needs no command line instalation.

Perhaps that is the problem. It may just not be included with XAMPP. I can’t find any recent stuff saying if it is included or not, but old resources say that XAMPP doesn’t include readline built into the underlying PHP.

Again it may need not just be enabled, but also built into the PHP.

Okey, what should I do to fix it?

Below my info about readline extension. There is no readline_callback_... functions in.

Well if the resources are to be believed, you need to do a straight install of PHP where you can install readline as a config option. Looks like you will need at least PHP 7.1 to use it on windows (just in case you were running an earlier version).

I would start with installation documentation…

https://www.php.net/manual/en/book.readline.php

And just work through the process.

I’ve tried php --with-libedit=C:\xampp\php\ext\libedit This brings nothing. And in libedit I found instruction:

What exactlyshould I do by Windows / XAMPP?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.