Re: php interactive shell without readline
| From: | Johannes Schlüter | Date: | Sun, 05 Aug 2012 23:37:57 +0000 |
| Subject: | Re: php interactive shell without readline | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62056@lists.php.net to get a copy of this message | ||
On Mon, 2012-08-06 at 00:22 +0100, Andrew Faulds wrote:
> > to tell you the truth I'm just throwing around ideas and waiting for
> > somebody with better understanding the actual implementation to help me
> > out. ;)
I wonder which is the actual problem to solve? ;-)
Probably a better solution is to simply drop the -a mode without
readline and show a nice error message instead. Unix/Linux users should
have either libedit or readline around. For Windows this is still might
not be a complete solutions, last time I tried I failed with providing
inofficial readline builds (don't remember the problem) but maybe the
win folks can provide libedit based builds (we can't provide readline
based builds due to licensing)
> Well if linenoise() isn't that different, you could use #ifdefs to make
> it use the correct lib at compile-time, no?
That won't solve the issue that the extension might not be there (unless
you undo the refactoring in 5.4 which means there's no way to override
using readline anymore, as mentioned in my previous mail)
johannes