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


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to